move system prompt override to whitepaper
This commit is contained in:
parent
1583c4f748
commit
956155010a
13
doc/usage.md
13
doc/usage.md
|
|
@ -367,19 +367,6 @@ Each agent can use a different `agent=`, `backend=`, or `model=`.
|
|||
> **For implementers**: The raw 9P filesystem reference, store federation, and
|
||||
> tool discovery internals are documented in [doc/whitepaper.md](whitepaper.md).
|
||||
|
||||
## System prompt override
|
||||
|
||||
The default system prompt is compiled into `olliesrv`. To replace it, set the
|
||||
`systemPrompt` field in an agent config JSON to a file path:
|
||||
|
||||
```json
|
||||
{
|
||||
"systemPrompt": "~/.config/ollie/prompts/SYSTEM_PROMPT_QWEN.md",
|
||||
"prompt": ["$OLLIE_CFG_PATH/prompts/agent-coding.md"],
|
||||
"temperature": 0.7
|
||||
}
|
||||
```
|
||||
|
||||
## Viewing model context
|
||||
|
||||
The rendered context window for any session is readable at
|
||||
|
|
|
|||
|
|
@ -199,4 +199,29 @@ Drop an executable and its `.meta` file in `$OLLIE_TOOLS_PATH`.
|
|||
The next session created will pick it up automatically. No restart required.
|
||||
|
||||
See [doc/writing-tools.md](writing-tools.md) for the full specification including
|
||||
host-conditional variants and privileged tools.
|
||||
host-conditional variants and privileged tools.
|
||||
|
||||
---
|
||||
|
||||
## System Prompt Override
|
||||
|
||||
The default system prompt is compiled into `olliesrv`. To replace it — for
|
||||
models that need their own identity preamble — set the `systemPrompt` field
|
||||
in an agent config JSON to a file path:
|
||||
|
||||
```json
|
||||
{
|
||||
"systemPrompt": "~/.config/ollie/prompts/SYSTEM_PROMPT_QWEN.md",
|
||||
"prompt": ["$OLLIE_CFG_PATH/prompts/agent-coding.md"],
|
||||
"temperature": 0.7
|
||||
}
|
||||
```
|
||||
|
||||
The file is read at session creation time. If it doesn't exist, the embedded
|
||||
default is used. The override replaces only the base system prompt layer; the
|
||||
operational model (9P documentation), environment block, and agent-specific
|
||||
prompt commands are still appended on top.
|
||||
|
||||
Model-specific prompts live at `~/.config/ollie/prompts/SYSTEM_PROMPT_*.md`.
|
||||
Create an agent config per model family and point `systemPrompt` at the
|
||||
appropriate file.
|
||||
Loading…
Reference in New Issue