Append System Prompt Management (aiti-append-system)
About 1 min
aiti-append-system
โ One line of reminder, effective every time. โ
Append system prompt management extension: at every session start pi appends the contents of APPEND_SYSTEM.md into the system prompt (global ~/.pi/agent/APPEND_SYSTEM.md + per-project <cwd>/.pi/APPEND_SYSTEM.md). This extension gives these two files an online editing panel + an AI draft-and-write-directly help point โ no more opening a terminal to hand-edit.
- ๐ Web panel: global / project tabs, edit online + save; shows file path, set status, mtime, word count and an unsaved marker
- Save semantics:
Save= overwrite-write ยทAppend save= append after the existing content ยทClear= delete the file (back to the "not set" state); takes effect for new sessions after saving - ๐ค ai-helper help point (
write-append): click ๐ค in any dialog to invoke โ the AI reads the current state first (avoiding duplication/conflicts), drafts following the "imperative, one sentence per rule, brief" principles, and can write directly to global or project level - Safety: project-level read/write validates that cwd is the working directory of a session currently known to pi-web (prevents writing files at arbitrary paths)
- Entry: the panel lives permanently in the pages slot, entered via the Extension Manager's "Open"; the top toolbar "๐ Prompts" button is hidden by default (feature
behavior.showToolbar; enable it in the extension manager when needed)
Usage
- Extension Manager โ Append System Prompts โ Open (or enable the toolbar button, then click ๐ Prompts)
- Pick the "๐ Global" or "๐ Project" tab (the project tab needs an active session on the current page)
- Edit the content โ ๐พ Save; ๐ค to have the AI draft it for you
Effect chain
pi's resource-loader reads both files at session start and appends them into the system prompt โ saving takes effect for new sessions; in-flight sessions are unaffected.