Repository navigation
Keep leaf.page's hosted-agent instructions in a Markdown file, without the reply clause's copy - #4884
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The developer instructions that leaf.page's hosted Codex agent starts with were a triple-quoted string in
leaf_website. They now live inworker/leaf_website/hosted-agent.md, whichCODEX_INSTRUCTIONSreads, 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, andskills/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: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".