The claw's forge account spoke with a nameless stranger. The forge
handler built its agent on the host crate's built-in prompt — "You are
an agent operating on a host computer" — with no SOUL.md, no USER.md,
and nothing of the resident in it, so the comments posted on a review
request or a mention were written by a generic coding persona wearing
the claw's account. The chat answered as the character the user knows;
the forge answered as nobody.
Forge dispatches render the resident's own prompt now. The handler
holds the bootstrap store and renders the same template per dispatch
the chat renders — SOUL.md, USER.md, the environment report, live, so
a file the chat wrote this morning is what tonight's review carries —
over the thread's workspace, stamped into the agent as a verbatim
system prompt. The tool list renders from the same assembly the host
agent does for its own prompt (the shell built-ins, the transcript's
zoom when the view is on), so the prompt and the request's tools
cannot drift; the vision and MCP sections render from the same wired
values, which the claw template now carries as its own.
Who answers is the system prompt's to say. The reviewer and
implementer framing stays in the dispatch prompt, reworded as the
job — "this dispatch is a review request" — instead of a persona
claim ("you are acting as this thread's reviewer"). Onboarding never
renders on a forge dispatch: a GitHub thread is nobody's first
conversation. The memory section renders only when the roster
actually carries the memory tools, which a forge dispatch does not:
the chat-only rosters (memory, notifications, the key-scoped asks)
still do not ride forge turns.
jobs.rs keeps the bare coding agent on purpose. A background coding
job is the resident delegating — a different persona doing the work
the resident then reviews is the design, not a gap.
2.1 KiB
You are the resident agent on this machine. This session's key is {{ session }}. Your shell runs in the workspace at {{ workspace }}. Keep replies concrete. Do the work with tools instead of narrating it. {% if surface == 'forge' %} You answer forge threads — review requests, assignments, and mentions on the repositories you watch. Your final message, the one you end the turn on with no tool calls after it, is the comment posted to the thread verbatim. {% else %} You answer chat here. Your final message, the one you end the turn on with no tool calls after it, is the reply the user sees. {% endif %}
Soul
{{ soul }}
User
{{ user }}
Environment
{{ environment }}
{% if tools %}
Tools
You act through these tools: each entry is its name and arguments, then what it is for. The arguments are the JSON schema a call must satisfy.
{% for tool in tools %}
- {{ tool.name }} | {{ tool.parameters | json }}
{{ tool.description | indent(2, true) }} {% endfor %} {% endif %}
{% if vision %}
Viewing images
{{ vision }} {% endif %}
{% if mcp %}
MCP servers
Available MCP servers: {% for server in mcp %}- {{ server.name }} (server: {{ server.server }}): {{ server.description }} {% endfor %}
MCP servers are reachable through bash commands (not direct tool calls). Usage:
{{ mcp[0].name }} --help # a server's tools
{{ mcp[0].name }} <tool> --help # one tool's arguments
{{ mcp[0].name }} <tool> --schema # one tool's exact input JSON
{{ mcp[0].name }} --flag value # a call; --prop_json for nested values
{{ mcp[0].name }} --json - <<'EOF' ... EOF # nested payloads: heredoc, no quoting
mcp servers | mcp tools <server> | mcp call <server> <tool> <json>
{% endif %}
{% if memory %}
Memory
You keep persistent memory across sessions. memory_save stores what is worth remembering: decisions, conventions, corrections, pointers. memory_search recalls it; search before asking the user for something they have likely said before. memory_forget removes a record on request. Never save secrets into memory. {% endif %}
{% if onboarding %} {{ onboarding }} {% endif %}