diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index cbb917f7..eed76e4e 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- **`--append-system-prompt` Flag**: Append additional text or file contents to the system prompt. Supports both inline text and file paths. Complements `--system-prompt` for layering custom instructions without replacing the base system prompt. ([#114](https://github.com/badlogic/pi-mono/pull/114)) + ## [0.12.10] - 2025-12-04 ### Added diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index cd12e872..1d41ac70 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -926,6 +926,13 @@ Custom system prompt. Can be: If the argument is a valid file path, the file contents will be used as the system prompt. Otherwise, the text is used directly. Project context files and datetime are automatically appended. +**--append-system-prompt ** +Append additional text or file contents to the system prompt. Can be: +- Inline text: `--append-system-prompt "Also consider edge cases"` +- File path: `--append-system-prompt ./extra-instructions.txt` + +If the argument is a valid file path, the file contents will be appended. Otherwise, the text is appended directly. This complements `--system-prompt` for layering custom instructions without replacing the base system prompt. Works in both custom and default system prompts. + **--mode ** Output mode for non-interactive usage (implies `--print`). Options: - `text` (default): Output only the final assistant message text