pi-autocontext
v0.8.0
Published
autocontext extension for Pi coding agent — iterative strategy generation, LLM judging, and evaluation tools
Maintainers
Readme
pi-autocontext
autocontext extension for Pi coding agent — iterative strategy generation, LLM judging, and evaluation tools.
Install
pi install npm:[email protected]Current package note: [email protected] is on a separate Pi extension line and depends on autoctx@^0.8.0, matching the current Python and TypeScript 0.8 runtime line.
Or add to your project's .pi/settings.json:
{
"packages": ["npm:[email protected]"]
}What You Get
Tools
| Tool | Description |
|------|-------------|
| autocontext_judge | Evaluate agent output against a rubric using LLM-based judging |
| autocontext_improve | Run multi-round improvement loop with judge feedback |
| autocontext_status | Check status of autocontext runs and tasks |
| autocontext_scenarios | List available evaluation scenarios and families |
| autocontext_queue | Enqueue a task for background evaluation |
| autocontext_runtime_snapshot | Inspect run artifacts, package provenance, compaction ledger entries, session branch lineage, and recent events |
Skills
/skill:autocontext— Full instructions for using autocontext tools, running evaluations, and interpreting results
Prompt Templates
/autoctx-status— Quick project status check
Usage
Once installed, the tools are available to the LLM automatically. You can also invoke them directly:
> Evaluate the quality of this code against our coding standards rubric
> Run an improvement loop on this draft with max 5 rounds
> Show me the status of recent autocontext runs
> Inspect the runtime snapshot for run-123 and session sess-123
> List available evaluation scenariosOr use the skill for guided workflows:
/skill:autocontextRequirements
- Pi coding agent
- An LLM provider configured in Pi (Anthropic, OpenAI, etc.)
- Optional:
autoctxCLI for standalone usage outside Pi
Configuration
The extension auto-discovers your autocontext configuration:
- Provider: Uses Pi's configured LLM provider
- Database: Looks for
runs/autocontext.sqlite3orAUTOCONTEXT_DB_PATHenv var - Events: Reads
runs/events.ndjsonorAUTOCONTEXT_EVENT_STREAM_PATHfor recent runtime events - Scenarios: Discovers registered scenarios from the
autoctxpackage
Links
- autocontext — Main repository
- autoctx on npm — Core TypeScript package
- Pi coding agent — The Pi agent
