Keep context
and code together.
By Alvin
07 / Why is my agent suggesting an idea we ruled out?
Write the decision in one small file beside the work and point the agent to it. For rules you want every session to use, put them in your tool’s project instructions, such as AGENTS.md or CLAUDE.md.
Under the hood. The context window is the amount of information a model can use in one request. A long chat may be compacted into a smaller representation. Small details can lose prominence. An exact file and acceptance check give the next turn something concrete to read and test. [17] [18] [23] [28]
08 / The agent says it changed a file. Where is it?
Start with the working folder shown in the chat. Type pwd in its terminal if you need the exact path. With Git, git status shows the branch and pending changes. A worktree can hold a second copy of the project.
Under the hood. A worktree is a separate checkout of a Git repository. A fork starts another conversation from saved history. File isolation depends on the environment or worktree you select. Two chats aimed at one folder can touch the same files. [24] [35] [36]
