Skip to content

Commit 8498a62

Browse files
committed
chore(agents): add Windows path and mise-trust rules from retrospective
Capture two recurring frictions: POSIX paths like /tmp/ do not resolve in Read/Edit/Write/Grep/Glob on Windows, and new worktrees with a mise.toml need `mise trust` before any `mise x --` call works.
1 parent 08e400d commit 8498a62

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

home/dot_agents/AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ When updating any memory file: review nearby rules for contradictions, duplicati
5757
- Do not check whether a directory exists before using it. Attempt the operation; create the directory if it fails.
5858
- On Windows, when admin rights are required, launch elevated commands with `Start-Process -Verb RunAs` instead of failing back to manual instructions.
5959
- On Windows, use the Bash tool (not PowerShell) for POSIX-style commands like `grep`, `find`, `head`, `tail`, and path operations that use forward slashes. Use PowerShell only when you need Windows-native cmdlets, `$env:` variables, or paths with backslashes that POSIX tools cannot handle.
60+
- On Windows, POSIX-style paths like `/tmp/...` resolve only inside the Bash tool. `Read`, `Edit`, `Write`, `Grep`, and `Glob` use Windows file APIs and need Windows-style paths (`C:\...` or `C:/...`). When a Bash command reports a canonical path (e.g. `Cloning into 'C:/Users/.../Temp/repo'`), use that path for subsequent tool calls; do not reuse the `/tmp/` shortcut.
6061

6162
---
6263

6364
## Toolchain
6465

6566
- When a CLI can be managed by `mise`, run it through `mise x -- <command>`. Do not invoke managed tools directly.
67+
- When entering a new worktree that has a `mise.toml`, run `mise trust <worktree-path>/mise.toml` before any `mise x --` call. Otherwise every mise invocation fails with `Config files in <path> are not trusted`.

0 commit comments

Comments
 (0)