Clarified reading instructions in system prompt.
EditReorganized prompt sections for clarity.
EditMerged documentation references in prompt.
EditCommitted and pushed changes.
Cleanup@packages/coding-agent/docs/ has a lot of .md files. @packages/coding-agent/src/core/system-prompt.ts references some of them. we need to tell the agent in the sytem prompt to read any .md files related to pi it reads in full (no truncation), and to follow links to other .md files in docs/ if useful, e.g. for tui api details
I can see the "Pi documentation" section already mentions following cross-references but doesn't emphasize reading in full. Let me update that section:
Done. Added a new bullet to the Pi documentation section in packages/coding-agent/src/core/system-prompt.ts:
- Always read pi .md files in full (no offset/limit) and follow links to related docs (e.g., tui.md for TUI API details)(no offset/limit) that's not how the read tool works you monkey
You're right, my bad. To read in full you don't pass offset/limit. Let me fix that:
Actually "without truncation" is also misleading since the tool will truncate and you need to continue with offset. Let me make it clearer:
Done. Simpler and correct now.
161 - When asked to create: custom models/providers (README.md), extensions (docs/extensions.md, examples/extensions/), themes (docs/themes.md), skills (docs/skills.md), TUI components (docs/tui.md - has copy-paste patterns)
should mention the other .md files as well if they fit
Updated the line to include:
custom providers (docs/custom-provider.md) - more specific than README.mdkeybindings (docs/keybindings.md) - newprompt templates (docs/prompt-templates.md) - newSDK integrations (docs/sdk.md) - newcustom providers (docs/custom-provider.md) should be last, models has @packages/coding-agent/docs/models.md, need to also add packages.md (pi packages)
Done. Split into two lines:
prompt templates after skills
Done. Moved prompt templates to come right after skills.
models (docs/models.md), pi packages (docs/packages.md) can go into the first Wehn asked abouat at the end, and models should be "adding models"
Done. Merged into single "When asked about" line with "adding models" and "pi packages" at the end.
commit and push
Done. Committed and pushed to main.
- Always read pi .md files in full (no offset/limit) and follow links to related docs (e.g., tui.md for TUI API details)