]> git.giacomolli.uk - onechat/commit
Let the agent keep user instructions
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 18:37:08 +0000 (15:37 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 18:37:08 +0000 (15:37 -0300)
commitd302957c09b192d0fbc09287ba7dcb7c32426556
treecbe7e296556fc1ae2d51192741c08b5522489f78
parent786c2b0551517d4befaa35be2c7743f65bd5f1c4
Let the agent keep user instructions

Include the instructions file path and the approval rule in every main
agent prompt, even when the file does not exist. The agent proposes
exact changes and waits for the user to agree, and messages from other
people cannot request a change. Subagents keep their task prompt, and
probes use a fixed placeholder path to keep the prompt stable.
agent.go
agent_test.go
compactor_test.go
probe.go
prompt.go
prompt_test.go