The build-opening prompts live in prompts/ as markdown (#1347) - #1683
Conversation
…ery other agent-facing prompt (#1347) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
DRY check — two duplications in this PR:
Not counting: the 🤖 curated |
…per renders all three (#1347) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Pushed the dedup: the three SPECs now carry only when-sent + rationale (the prompt file beside each is the prose of what the agent is told), and 🤖 curated |
| The workspace may be empty — if so, scaffold the whole project from scratch: | ||
| create package.json with scripts, all config, and every source file, install | ||
| the dependencies, and make the app run. | ||
| When done, summarize what you built in one short paragraph. |
There was a problem hiding this comment.
I don't understand the goal of this prompt. Can we remove it and tree-shake (remove all code related to it)?
| @@ -0,0 +1,13 @@ | |||
| The greenfield build prompt: the opening prompt of a build agent whose workspace holds no app yet. | |||
There was a problem hiding this comment.
Let's remove all of the greenfield stuff for now (and tree-shake)
|
@suleimansh Up for reviewing the prompts? I'll do a second review after yours. |
|
It was the ai-autopilot greenfield flow (empty-folder builds) — dead path today. Agreed — removal PR incoming. Prompts review next. |
…is gone (#1683 review) (#1691) 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>
Closes #1347.
prompts/README.mdpromised that nothing agent-facing is written in TypeScript, butsteps.tsstill built three prompts as string arrays (the issue counted four —improvePromptwas already removed with the production-grade gate). Changing what we tell an agent in those cases meant editing code (#1224 was a one-word prompt edit through a TypeScript file).What changed
prompts/build_prompt.md,prompts/extend_prompt.md,prompts/scaffold_prompt.md— the prompt text moved verbatim, with${{ tf.prompt }}for the user's intent (the same name the system prompt gives it). Each with its SPEC.md sibling carrying the rationale that lived in the code comments (Support running against an existing project (not just from-scratch) #185's naming-the-workspace point, Loop can't recover an empty/unbuilt workspace: 'improve' framing blocks scaffolding #182's don't-refuse retry, [The Framework] Remove meta-select + the architect #545's stack-is-the-agent's-call).steps.tskeeps the three functions andisWorkspaceEmpty— the functions are now one-linerenderTemplatefills over the generated constants, so call sites are untouched.steps.test.tscontent assertions all still pass unchanged. Break-checked: editingextend_prompt.md's first line fails the test.prompts/README.mdtable row added;prompts/SPEC.mdandsteps.SPEC.mdupdated — the prompt-content spec now lives with the prompts, steps.SPEC keeps only the choice + fill and the emptiness check.Tests
Full suite green: 1586 node tests + 817 dashboard tests;
pnpm typecheckclean. No behavior change intended, and the byte-identity check says none happened.🤖 automated