Skip to content

Keep leaf.page's hosted-agent instructions in a Markdown file, without the reply clause's copy - #4884

Merged
max-sixty merged 3 commits into
mainfrom
prose-out-of-strings
Nov 1, 2026
Merged

max-sixty merged 3 commits into
mainfrom
prose-out-of-strings

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The developer instructions that leaf.page's hosted Codex agent starts with were a triple-quoted string in leaf_website. They now live in worker/leaf_website/hosted-agent.md, which CODEX_INSTRUCTIONS reads, so an edit to them diffs as prose.

The file also drops one sentence: "Your opening commentary shows in the thread at once as your progress line, and your final answer is your reply to the user." Every hosted delivery that owes a reply carries the App Server answering clause in browser/runtime/kernel-registry.json, which says the same, and skills/leaf/references/harness-codex.md, "Replies", says it a third time. The copy here had to be rewritten in step with the clause when #3358 changed how the opening posts.

evals/website-replies, three repeats on Codex:

Instructions Hosted runs passing every check Follow-ups answered without a preamble
main 6/6 3/3
whole reply paragraph cut 5/6 (one opening read "I'll inspect the current Leaf page and its guidance…") 1/3
this PR (mechanics sentence cut) 6/6 2/3

So the paragraph's other sentence, on a brief acknowledgement and no preamble for an immediate answer, stays; it now says "the user" where it said "them".

This was written by Claude Code on behalf of max-sixty

The developer instructions leaf.page's Codex agent starts with were a
triple-quoted string in leaf_website. They now live in
worker/leaf_website/hosted-agent.md, which `CODEX_INSTRUCTIONS` reads, so
an edit diffs as prose. The text the agent receives is byte-identical;
the App Server snapshot test confirms it.
hosted-agent.md said how a turn's opening and final message post, which
the App Server answering clause every hosted delivery carries already
says, as does harness-codex.md "Replies". The sentence on a brief
acknowledgement and no preamble for an immediate answer stays: cutting it
too let one of six website-replies runs open with internal planning and
added preambles before follow-ups base answered at once.
@max-sixty
max-sixty merged commit de0aa95 into main Nov 1, 2026
4 checks passed
@max-sixty
max-sixty deleted the prose-out-of-strings branch November 1, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants