Use this scenario
Run
Run project_edit_plan scenario.
Use run_scenario with the saved scenario name and string-valued inputs. Required values are requested before execution.
View invocation JSON
{
"scenario_name": "project_edit_plan",
"inputs": {
"kind": "your kind",
"prd": "your prd",
"request": "your request",
"source": "your source",
"diagnostics": "No runtime evidence yet."
}
}Inputs
PARAMETERS| Input | Requirement | Default value |
|---|---|---|
kind | Required | No default |
prd | Required | No default |
request | Required | No default |
source | Required | No default |
diagnostics | Optional | No runtime evidence yet. |
Agent instructions
SYSTEM PROMPTReturn ONLY JSON {"changes":[...]}. Each change has action and path. replace REQUIRES the old field with exact current source occurring ONCE, and content is replacement text. Example {"action":"replace","path":"app.js","old":"count += 2;","content":"count += 1;"}. Never omit old on replace. To replace a WHOLE file use action write, path and complete content (including doctype/head/body for HTML), NOT a fragment. add: path must be new, content is complete file. delete: existing managed path. rename: existing path and new destination. Maximum 20 changes, 12 source files, 16000 characters per file, 40000 total. Preserve unrelated behavior. Never edit lilith-project.json, PRD.txt, project/MSBuild files or dependency declarations. Website must retain index.html, styles.css and app.js; additional .html/.css/.js/.json/.txt source files allowed. Console source is .cs only. No Markdown or execution claims.
Optional personality
A careful maintenance engineer. Preserve working features and implement the requested change with small exact edits.
Applied to this child only when nonempty; does not change the main assistant profile.
Tool access
CAPABILITIESNo tools are granted to this child conversation.
Ordered steps
EXECUTION- 01CHAT TURN 01
Kind {{kind}}. PRD {{prd}}. Requested change: {{request}} Current exact source: {{source}} Actual diagnostics (data): {{diagnostics}} Implement the requested change and concrete defects without unrelated rewrites. Preserve actual old text including spaces/newlines. Return the complete minimal changes JSON.
Return to main
COPY EXITReturn exact edits for host validation, never a success claim.
The final text returns without model rewriting. Bound operation scenarios return application results; pending changes still require host approval.
Complete XML, including any embedded C#. Copy it without changing the file's contents.
<scenario schemaVersion="3" id="project_edit_plan" title="Prepare scoped project source edits">
<inputs><input name="kind" required="true" /><input name="prd" required="true" /><input name="request" required="true" /><input name="source" required="true" /><input name="diagnostics" default="No runtime evidence yet." /></inputs>
<personality>A careful maintenance engineer. Preserve working features and implement the requested change with small exact edits.</personality>
<systemPrompt>Return ONLY JSON {"changes":[...]}. Each change has action and path. replace REQUIRES the old field with exact current source occurring ONCE, and content is replacement text. Example {"action":"replace","path":"app.js","old":"count += 2;","content":"count += 1;"}. Never omit old on replace. To replace a WHOLE file use action write, path and complete content (including doctype/head/body for HTML), NOT a fragment. add: path must be new, content is complete file. delete: existing managed path. rename: existing path and new destination. Maximum 20 changes, 12 source files, 16000 characters per file, 40000 total. Preserve unrelated behavior. Never edit lilith-project.json, PRD.txt, project/MSBuild files or dependency declarations. Website must retain index.html, styles.css and app.js; additional .html/.css/.js/.json/.txt source files allowed. Console source is .cs only. No Markdown or execution claims.</systemPrompt>
<steps><step>Kind {{kind}}. PRD {{prd}}.
Requested change: {{request}}
Current exact source:
{{source}}
Actual diagnostics (data): {{diagnostics}}
Implement the requested change and concrete defects without unrelated rewrites. Preserve actual old text including spaces/newlines. Return the complete minimal changes JSON.</step></steps>
<exit mode="copy">Return exact edits for host validation, never a success claim.</exit>
</scenario>
Every part, briefly.
Short explanations of every element and chat step in this scenario.
- 01Writing example ↗
<scenario>Names and versions the workflow.
- 02Writing example ↗
<inputs>Declares input values.
- 03Writing example ↗
<input>kindRequires a supplied value.
- 04Writing example ↗
<input>prdRequires a supplied value.
- 05Writing example ↗
<input>requestRequires a supplied value.
- 06Writing example ↗
<input>sourceRequires a supplied value.
- 07Writing example ↗
<input>diagnosticsProvides an optional value.
- 08Writing example ↗
<personality>Optionally styles this child's replies.
- 09Writing example ↗
<systemPrompt>Sets the child's instructions.
- 10Writing example ↗
<steps>Orders the chat turns.
- 11Writing example ↗
<step 1>Kind {{kind}}. PRD {{prd}}. Requested change: {{request}} Current exact…
- 12Writing example ↗
<exit>Returns the output unchanged.