Skip to content

docs(pi): record SYSTEM.md / APPEND_SYSTEM.md system-prompt surface - #2088

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2073-pi-system-prompt-files
Jun 30, 2026
Merged

docs(pi): record SYSTEM.md / APPEND_SYSTEM.md system-prompt surface#2088
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2073-pi-system-prompt-files

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-up for Pi upstream updates (#2073). Pi loads two system-prompt instruction files beyond AGENTS.md.pi/SYSTEM.md (replaces the default system prompt) and .pi/APPEND_SYSTEM.md (extends it), at both project (.pi/) and global (~/.pi/agent/) scope.

Approach: documentation-only (emission deferred)

rulesync's rules model only supports root-vs-nonRoot routing (Pi folds all rules into a single AGENTS.md). There is no existing precedent for replace-vs-append system-prompt routing, and emitting SYSTEM.md/APPEND_SYSTEM.md would require inventing a speculative new frontmatter convention — which the issue explicitly scopes out. So this PR lands the issue's stated minimum: record the surface.

Changes

  • Pi reference map (references/pi.md): documents the SYSTEM.md/APPEND_SYSTEM.md paths, replace/append semantics, and why they are currently unmapped.
  • docs/reference/file-formats.md (+ synced skill copy): adds a Pi note.
  • src/features/rules/pi-rule.ts: corrects an inaccurate class comment.

Full emission remains an open maintainer design decision, so this PR references rather than closes the issue.

Verification

pnpm cicheck fully green (292 test files, 6570 tests).

Refs #2073

Pi Coding Agent loads two system-prompt instruction files beyond AGENTS.md: .pi/SYSTEM.md (global ~/.pi/agent/SYSTEM.md) replaces the default system prompt, and .pi/APPEND_SYSTEM.md (global ~/.pi/agent/APPEND_SYSTEM.md) appends to it.

Rulesync's rules model only routes a designated root rule to a single context file and has no convention for marking a rule as replace-vs-append the system prompt, so wiring these files would require inventing a new frontmatter routing convention. Document the surface in the Pi reference map, docs/reference/file-formats.md, and the PiRule class comment instead of implementing a speculative convention.

Refs #2073

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 403770e into main Jun 30, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2073-pi-system-prompt-files branch June 30, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants