@reqall/pi-plugin
v2026.5.6
Published
Reqall plugin for Pi — persistent semantic memory for AI agents
Maintainers
Readme
Reqall Pi Plugin
Persistent semantic memory for the Pi coding agent harness.
This is patterned after @reqall/claude-plugin, but uses Pi-native extension APIs instead of Claude hooks/MCP configuration:
- registers
reqall_*tools that call the Reqall MCP HTTP endpoint directly - injects project context on
before_agent_start - adds Reqall memory instructions to the system prompt
- bundles Pi-compatible Agent Skills
- adds slash commands for common Reqall workflows
- shows Reqall status in Pi's footer
Installation
From this repository while developing:
pi install ./pi-plugin
# or for one run only:
pi -e ./pi-pluginWhen published:
pi install npm:@reqall/pi-pluginSet your API key before launching Pi:
export REQALL_API_KEY="rq_..."
# Optional:
export REQALL_URL="https://www.reqall.net"
export REQALL_PROJECT_NAME="org/repo"What It Adds
Tools
Pi does not currently include built-in MCP client configuration, so the extension registers Pi tools that wrap Reqall's MCP tools:
reqall_project_context— Pi-specific one-call context hydrationreqall_searchreqall_upsert_projectreqall_upsert_recordreqall_get_recordreqall_list_recordsreqall_list_projectsreqall_upsert_linkreqall_list_linksreqall_impactreqall_delete_record(explicit user request only)reqall_delete_link(explicit user request only)reqall_sleep_candidatesreqall_sleep_apply
Automation
| Pi event | Behavior |
|---|---|
| session_start | Shows Reqall status in the footer |
| before_agent_start | Detects project, injects system prompt guidance, and (by default) fetches context via Reqall |
| agent_end | Reminds about persistence for non-trivial turns; can optionally queue a follow-up persistence turn |
Commands
/reqall-context [query]— fetch context and trigger a model turn with it/reqall-persist [summary]— ask the agent to classify and persist completed work/reqall-review [filter]— review open records/reqall-triage [description]— triage a new issue/request/reqall-sleep [project-id-or-name]— run SLEEP maintenance
Skills
Skills are bundled under Pi-compatible names:
/skill:reqall-context/skill:reqall-persist/skill:reqall-document/skill:reqall-triage/skill:reqall-review/skill:reqall-sleep
Environment Variables
| Variable | Default | Description |
|---|---:|---|
| REQALL_API_KEY | required | Reqall API key (rq_...) |
| REQALL_URL | https://www.reqall.net | Reqall server base URL |
| REQALL_API_URL | unset | Fallback base URL if REQALL_URL is not set |
| REQALL_PROJECT_NAME | auto | Override project name |
| REQALL_CONTEXT_LIMIT | 5 | Semantic search result count for context injection |
| REQALL_OPEN_LIMIT | 25 | Open-record count for context injection |
| REQALL_AUTO_CONTEXT | inject | inject, reminder, or off |
| REQALL_AUTO_PERSIST | reminder | reminder, followup, or off |
Pi-Specific Extension Ideas
Pi can go beyond the Claude plugin because extensions can register tools, commands, UI, status lines, autocomplete, session labels, and lifecycle handlers. Good follow-ups to discuss/implement:
- Interactive TUI review panel for open records.
#123Reqall record autocomplete in the editor.- Session labels/bookmarks for persisted Reqall record IDs.
- Optional true MCP client transport if Pi adds first-class MCP support or we vendor a client.
- Compaction hook that preserves Reqall decisions/follow-ups in Pi's session summaries.
- Safer auto-persist mode that uses a structured final-output tool instead of a follow-up prompt.
Development
cd pi-plugin
npm install
npm testnpm test typechecks the extension, verifies the CLI manifest output, and runs npm pack --dry-run.
To verify the deployed Reqall MCP base surface from https://www.reqall.net/docs/mcp.md, set REQALL_API_KEY and run:
npm run verify:mcpThis live smoke test checks HEAD /mcp, confirms the documented tool list, creates two temporary records, searches/lists/reads them, links them, traverses impact, then deletes the temporary link and records.
License
MIT
