mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
feat(coding-agent): add support for APPEND_SYSTEM.md to append instructions to system prompt (#716)
Co-authored-by: Jian Zhang <jzhang@yanhuangdata.com>
This commit is contained in:
parent
5279bb92da
commit
30a126f2bd
2 changed files with 32 additions and 3 deletions
|
|
@ -573,7 +573,7 @@ Use these for:
|
|||
|
||||
### Custom System Prompt
|
||||
|
||||
Replace the default system prompt entirely by creating a `SYSTEM.md` file:
|
||||
Replace the default system prompt **entirely** by creating a `SYSTEM.md` file:
|
||||
|
||||
1. **Project-local:** `.pi/SYSTEM.md` (takes precedence)
|
||||
2. **Global:** `~/.pi/agent/SYSTEM.md` (fallback)
|
||||
|
|
@ -589,7 +589,16 @@ Focus on:
|
|||
- Proper formatting
|
||||
```
|
||||
|
||||
The `--system-prompt` CLI flag overrides both files. Use `--append-system-prompt` to add to (rather than replace) the prompt.
|
||||
The `--system-prompt` CLI flag overrides both files.
|
||||
|
||||
### Appending to the System Prompt
|
||||
|
||||
To add instructions to the system prompt **without** replacing the default (preserving automatic loading of `AGENTS.md` context files, skills, and tools guidelines), create an `APPEND_SYSTEM.md` file:
|
||||
|
||||
1. **Project-local:** `.pi/APPEND_SYSTEM.md` (takes precedence)
|
||||
2. **Global:** `~/.pi/agent/APPEND_SYSTEM.md` (fallback)
|
||||
|
||||
The `--append-system-prompt` CLI flag overrides both files.
|
||||
|
||||
### Custom Models and Providers
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue