Coding & Developmentπuniversal
π oh-pi
One-click setup for pi-coding-agent with ant colony swarm. Like oh-my-zsh for pi.
Quick Start
Install this Skill
npx skills add telagod/oh-pi<div align="center">
<img src="./logo.svg" width="180" alt="oh-pi logo"/>
# π oh-pi
**One command to supercharge [pi-coding-agent](https://github.com/badlogic/pi-mono).**
Like oh-my-zsh for pi β but with an autonomous ant colony.
[](https://www.npmjs.com/package/oh-pi)
[](./LICENSE)
[](https://nodejs.org)
[English](./README.md) | [δΈζ](./README.zh.md) | [FranΓ§ais](./README.fr.md)
```bash
npx oh-pi
```
</div>
---
## 30-Second Start
```bash
npx oh-pi # configure everything
pi # start coding
```
oh-pi auto-detects your environment, guides setup in a modern TUI, and writes `~/.pi/agent/` for you.
Already configured? It detects existing files and offers **backup before overwriting**.
## 2-Minute Value
pi-coding-agent is powerful by default, but manual setup across providers, themes, extensions, skills, and prompts is slow. oh-pi compresses that setup into under a minute β then adds an **ant colony swarm** for multi-agent execution.
Want the fast walkthrough? See [`docs/DEMO-SCRIPT.md`](./docs/DEMO-SCRIPT.md).
## When Not to Use Ant Colony
Use plain pi workflows (without colony) when your task is tiny, highly exploratory, or needs constant human steering.
For positioning, scope, and milestones, see [`ROADMAP.md`](./ROADMAP.md). For rationale behind key trade-offs, see [`DECISIONS.md`](./DECISIONS.md).
## What You Get
```
~/.pi/agent/
βββ auth.json API keys (0600 permissions)
βββ settings.json Model, theme, thinking level
βββ keybindings.json Vim/Emacs shortcuts (optional)
βββ AGENTS.md Role-specific AI guidelines
βββ extensions/ 8 extensions (7 default + ant-colony)
β βββ safe-guard Dangerous command confirmation + path protection
β βββ git-guard Auto stash checkpoints + dirty repo warning
β βββ auto-session Session naming from first message
β βββ custom-footer Enhanced status bar (token/cost/time/git/cwd)
β βββ compact-header Streamlined startup info
β βββ auto-update Check for updates on launch
β βββ bg-process β³ **Bg Process** β Auto-background long-running commands (dev servers, etc.)
β βββ ant-colony/ π Autonomous multi-agent swarm (optional)
βββ prompts/ 10 templates (/review /fix /commit /test ...)
βββ skills/ 11 skills (tools + UI design + workflows)
βββ themes/ 6 custom themes
```
## Setup Modes
| Mode | Steps | For |
|------|-------|-----|
| π **Quick** | 3 | Pick provider β enter key β done |
| π¦ **Preset** | 2 | Choose a role profile β enter key |
| ποΈ **Custom** | 6 | Pick everything yourself |
### Presets
| | Theme | Thinking | Includes |
|---|-------|----------|----------|
| β« Full Power | oh-pi Dark | high | All extensions + bg-process + ant-colony |
| π΄ Clean | Default | off | No extensions, just core |
| π Colony Only | oh-pi Dark | medium | Ant-colony with minimal setup |
### Providers
Anthropic Β· OpenAI Β· Google Gemini Β· Groq Β· OpenRouter Β· xAI Β· Mistral Β· [FOXNIO](https://www.foxnio.com) (recommended public-benefit Claude provider)
Auto-detects API keys from environment variables.
## π Ant Colony
The headline feature. A multi-agent swarm modeled after real ant ecology β deeply integrated into pi's SDK.
```
You: "Refactor auth from sessions to JWT"
oh-pi:
π Scout ants explore codebase (haiku β fast, cheap)
π Task pool generated from discoveries
βοΈ Worker ants execute in parallel (sonnet β capable)
π‘οΈ Soldier ants review all changes (sonnet β thorough)
β
Done β report auto-injected into conversation
```
### What's new in v0.1.75
- **Planning Recovery Loop**: if scouts return unstructured intel, colony enters `planning_recovery` instead of failing immediately.
- **Plan Validation Gate**: before workers start, tasks are validated (title/description/caste/priority).
- **Scout Quorum for complex goals**: multi-step goals default to at least 2 scouts for better planning reliability.
### Colony lifecycle (simple)
`SCOUTING β (if needed) PLANNING_RECOVERY β WORKING β REVIEWING β DONE`
### Architecture
Each ant is an in-process `AgentSession` (pi SDK), not a child process:
```
pi (main process)
ββ ant_colony tool
ββ queen.ts β runColony()
ββ spawnAnt() β createAgentSession()
ββ session.subscribe() β real-time token stream
ββ Zero startup overhead (shared process)
ββ Shared auth & model registry
```
**Interactive mode:** Colony runs in the background β you keep chatting. A live widget shows ant progress, and results are auto-injected when done.
**Print mode (`pi -p`):** Colony runs synchronously, blocks until complete.
### Why ants?
Real ant colonies solve complex problems without central control. Each ant follows simple rules, communicates through **pheromone trails**, and the colony self-organi
... (truncated)Repository
24stars
6forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
π€claudeπuniversal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
πuniversal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
β¨geminiπ€claudeπ¬gptπuniversal
524
34
View
misakanet-failure-memory
Coding & Developmentπ A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
π€claudeβ¨οΈcursorπuniversal
424
158
View