]> git.giacomolli.uk - onechat/commit
Hold the agent prompt and tools in one place
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 17:43:12 +0000 (14:43 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 17:43:12 +0000 (14:43 -0300)
commit581a88014e0acaf9e91de6d0a7037f9077bfe288
tree00de7de085b4abd6d4a1046ad1187165e76370e2
parent74583992d2939791ef74155c99eb194269ac3721
Hold the agent prompt and tools in one place

The system prompt of the UniiChat design and the zoom and date tools
live in prompt.go, so the turns and the compactions send the same bytes
and share one prompt cache. The prompt is the spec text with the agent's
name in place of Unii and the kind reply in place of unii. It holds no
date and no state.

The prompt describes only what OneChat can do, so it leaves out the spec
text on images, the name form of zoom, subagents, background tasks, the
user's computers, and the user's instructions. Each part returns with
the issue that adds its feature. The tool schemas are strict, with every
property required, and encode to the same bytes on each call.

Issue: b14d537
prompt.go [new file with mode: 0644]
prompt_test.go [new file with mode: 0644]