What problem does it solve?
It solves the confusion and context-loss that happens when agents need to coordinate code-mode execution, persistent working memory, fast search, and reliable multi-agent delegation inside the pi-extensions environment.
Core Features & Use Cases
- Code-mode execution model: Uses a single execute_code block paradigm for reading, editing, searching, and running commands without wasting turns.
- Persistent working memory with $: Keeps variables alive across code blocks and protects key data with $.__pin against eviction.
- Session-history retrieval with ouija: Searches prior and dead sessions to recover decisions and raw conversational context, not just summaries.
- Delegation orchestration with teams: Spawns worker agents with templates, then waits correctly using teams.on events (no sleep-polling).
- Context management and guardrails: Provides explicit rules to avoid TUI freezes, block timeouts, and supervisor spam.
Quick Start
Use the environment skill to coordinate code-mode work by running your JavaScript block with $ state, searching prior context with ouija when needed, and delegating parallel tasks with teams while waiting via teams.on.