Design the part and the bot that builds it
A mechanical engineer specifies a part’s shape, fit, and tolerances. A machine manufactures it without the engineer guiding every movement. ChunkHound and pi-schematic give you the tools to apply that model to software: design the digital part and the automation bot that builds it.
The part has behavior, interfaces, and acceptance tests. The bot has a procedure: investigate, build, test, review, and stop for human judgment when needed. Models can misunderstand instructions, so checks matter. Engineers retain ownership of the design and what ships.
Designing the bot means encoding engineering expertise as code in a tailored, deterministic control plane. It places active guardrails where they matter: before edits, after checks, and when a run must stop. Models supply judgment; your code governs what happens next, including model, cost, and context policies.
ChunkHound supplies the evidence; pi-schematic controls the procedure. Instead of constantly pressing the agent’s buttons, you define when the bot must turn to you. It runs the process between those points, freeing your attention for decisions that need your judgment and for improving the process itself.
Installation
Install pi-schematic in Pi from its repository. The package is not on npm yet.
pi install git:github.com/chunkhound/pi-schematic
To run from a checkout instead, run
pi install ./pi-schematic.
To add ChunkHound, follow Getting Started to index a repository and configure your MCP client.
The building blocks
These controls work together, from preventing accidental edits to running a complete automation bot.
- Posture — prevent accidental changes. Grounding, planning, and review need access to the repository without changing it. Readonly mode guards against accidental writes. It is not a security boundary; see the design and limits.
- Memory — keep what matters, not the whole
conversation. Long conversations bury important details; lasting
memories can become outdated. The agent keeps a short-lived
notebook of findings and decisions as it works, rather than relying
on a summary made when the context fills. A
/handoff <prompt>starts a fresh context with the notebook and the next instruction. The agent can also hand off when the topic changes./newclears the notebook for a new task. - Delegation — divide the work and choose the model.
An orchestrator needs to break a job into focused tasks without
doing every investigation itself. The
spawntool sends those tasks to sub-agents, each with its own context. Model Groups handle a separate decision: which model should do each task. Stable group names let you change the models behind them without rewriting the instructions that delegate the work. - Configuration — activate the right harness settings with the task. Let the harness handle the setup so you can focus on the work, not the settings. Frontmatter declares readonly mode, a Model Group or specific model, and thinking level. The harness applies them automatically each time you invoke the skill or command, so the task starts with the intended setup.
- Automation — turn the process into a bot. Workflows are where these controls become a tailored automation bot. You write a deterministic control plane for the process: what runs, which results permit the next step, and where human judgment is required. Workflows can control the whole harness, not just send prompts. You improve that process over time, freeing people to concentrate where their judgment matters instead of continually directing the agent.
Ready to build your first software factory? Start with workflows →.