Skip to content

A build opens with the user's text itself: the extend_prompt wrapper is gone (#1683 review) - #1691

Merged
suleimansh merged 1 commit into
mainfrom
drop-extend-prompt
Aug 24, 2026
Merged

A build opens with the user's text itself: the extend_prompt wrapper is gone (#1683 review)#1691
suleimansh merged 1 commit into
mainfrom
drop-extend-prompt

Conversation

@suleimansh

Copy link
Copy Markdown
Contributor

🤖 automated — follows the prompts review on #1683 (#1347).

What

  • prompts/extend_prompt.md + spec, src/steps.ts + spec + test: deleted.
  • agent.ts openingPrompt: a build and a prompt session open the same way — the user's text rendered through system_prompt.md's # User prompt slot (renderSystemPrompt(...).user). Vanilla, transparent and continuations stay verbatim, as before.
  • agent.SPEC.md: the opening-prompt section rewritten; the two greenfield sections Remove the greenfield flow: a build always extends the existing codebase #1689 left behind ("framed for the workspace it lands in", "produced nothing is pushed once") removed. agent.test.SPEC.md, cli.SPEC.md, prompts/SPEC.md, prompts/README.md follow.
  • Tests: the seven fake-driver matchers that recognised a build's opening turn by the wrapper text now match the intent itself; the Support running against an existing project (not just from-scratch) #185 test asserts the opening prompt is the intent.

Why

With greenfield gone, the wrapper was a second place where the user prompt gets framed, beside the slot Rom's own document already provides for exactly that — and it said nothing the system prompt did not: "in this workspace" is the Workspace section, "existing codebase" is what a project is, and the closing summary it asked for feeds nothing (the PR body comes from the open-pr block). One framing place, and it is the document a person reviews: any "existing codebase" wording that is wanted goes into # User prompt in system_prompt.md.

Verified

  • pnpm build, typecheck, test: 1580 + 834 green (one fewer test: steps.test.ts is gone).
  • Break-check: re-adding a wrapper in openingPrompt fails 7 of the 39 agent tests; reverted, 39/39.
  • No user-facing feature changes: FEATURES-SPEC.md untouched (no line named the wrapper).

Draft on purpose — a prompt change gets its review round before it lands.

…is gone (#1683 review)

With the greenfield flow removed (#1689), `prompts/extend_prompt.md` was a second place
where the user prompt got framed — beside the `# User prompt` slot that
`prompts/system_prompt.md` already provides for exactly that — and it said nothing the
system prompt did not: "in this workspace" is the Workspace section, "existing codebase"
is what a project is, and the closing summary it asked for feeds nothing (the PR body
comes from the `open-pr` block).

A build and a prompt session now open the same way: the text rendered through the
system prompt's user-prompt slot (`renderSystemPrompt(...).user`); vanilla, transparent
and continuations stay verbatim. `steps.ts` and the prompt file go with their specs;
`agent.SPEC.md` also drops the greenfield sections #1689 left behind.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@suleimansh

Copy link
Copy Markdown
Contributor Author

@brillout reviewed the prompts — I'd drop extend_prompt.md and open builds from your # User prompt slot, same as presets. This draft does that. Your second pass?

@suleimansh
suleimansh marked this pull request as ready for review August 24, 2026 15:44
@brillout

Copy link
Copy Markdown
Contributor

Sounds good

@brillout

Copy link
Copy Markdown
Contributor

What about the other prompts of:

@suleimansh

Copy link
Copy Markdown
Contributor Author

What about the other prompts of:

build/scaffold already went with greenfield in #1689 — this drops the last one, none of #1683's prompts survive.

@suleimansh
suleimansh merged commit 619e886 into main Aug 24, 2026
2 checks passed
@suleimansh
suleimansh deleted the drop-extend-prompt branch August 24, 2026 17:23
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