diff --git a/.living_spec/stories/archive/09_system_prompt_persona.md b/.living_spec/stories/archive/09_system_prompt_persona.md new file mode 100644 index 0000000..bbee091 --- /dev/null +++ b/.living_spec/stories/archive/09_system_prompt_persona.md @@ -0,0 +1,18 @@ +# Story: System Prompt & Persona + +## User Story +**As a** User +**I want** the Agent to behave like a Senior Engineer and know exactly how to use its tools +**So that** it writes high-quality code and doesn't hallucinate capabilities or refuse to edit files. + +## Acceptance Criteria +* [ ] Backend: Define a robust System Prompt constant (likely in `src-tauri/src/llm/prompts.rs`). +* [ ] Content: The prompt should define: + * Role: "Senior Software Engineer / Agent". + * Tone: Professional, direct, no fluff. + * Tool usage instructions: "You have access to the local filesystem. Use `read_file` to inspect context before editing." + * Workflow: "When asked to implement a feature, read relevant files first, then write." +* [ ] Backend: Inject this system message at the *start* of every `chat` session sent to the Provider. + +## Out of Scope +* User-editable system prompts (future story).