Mirror of badlogic/pi-mono - pi coding agent monorepo
Find a file
Aliou Diallo b9ae2590f5 docs(coding-agent): document overflow normalization for custom providers
Adds a Context Overflow Errors subsection to custom-provider.md showing how a custom provider extension can rewrite unrecognized overflow errors via a message_end handler so pi's native compact-and-retry path triggers. Includes guard rails for provider scoping, idempotency, and avoiding rate-limit phrases.
2026-05-16 01:50:12 +02:00
.github fix(release): finalize Windows ARM64 binary support 2026-05-14 22:44:28 +02:00
.husky fix(ai,coding-agent): make pi-ai browser-safe and move OAuth runtime exports 2026-03-04 20:21:25 +01:00
.pi chore: migrate pi packages to earendil works scope 2026-05-07 15:59:42 +02:00
packages docs(coding-agent): document overflow normalization for custom providers 2026-05-16 01:50:12 +02:00
scripts fix(release): finalize Windows ARM64 binary support 2026-05-14 22:44:28 +02:00
.gitattributes chore: add repository .gitattributes for line ending normalization 2026-02-26 01:11:34 +01:00
.gitignore Closes #4182 2026-05-05 17:10:35 +02:00
AGENTS.md refactor(agent): harden harness session semantics 2026-05-16 00:32:16 +02:00
biome.json WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
CONTRIBUTING.md docs: explain issue triage policy (#3725) 2026-04-25 23:02:17 +02:00
LICENSE Initial monorepo setup with npm workspaces and dual TypeScript configuration 2025-08-09 17:18:38 +02:00
package-lock.json refactor(agent): run harness loop directly 2026-05-14 21:33:34 +02:00
package.json chore(deps): remove unused dependencies (#4453) 2026-05-12 23:35:41 +02:00
pi-test.ps1 fix(coding-agent): avoid cmd.exe for git installs on windows closes #3642 2026-04-24 13:56:10 +02:00
pi-test.sh chore: unset HF_TOKEN in pi-test.sh --no-env (#4161) 2026-05-04 15:23:08 +02:00
README.md doc: Update readmes 2026-05-07 20:02:19 +02:00
test.sh Add fireworks key to test.sh unset 2026-04-24 00:20:01 +02:00
tsconfig.base.json Try fixing root level compiles 2025-12-03 14:16:00 +01:00
tsconfig.json chore: migrate pi packages to earendil works scope 2026-05-07 15:59:42 +02:00

pi logo

Discord

pi.dev domain graciously donated by

Exy mascot
exe.dev

New issues and PRs from new contributors are auto-closed by default. Maintainers review auto-closed issues daily. See CONTRIBUTING.md.


Pi Agent Harness Mono Repo

This is the home of the pi agent harness project including our self extensible coding agent.

To learn more about pi:

Share your OSS coding agent sessions

If you use pi or other coding agents for open source work, please share your sessions.

Public OSS session data helps improve coding agents with real-world tasks, tool use, failures, and fixes instead of toy benchmarks.

For the full explanation, see this post on X.

To publish sessions, use badlogic/pi-share-hf. Read its README.md for setup instructions. All you need is a Hugging Face account, the Hugging Face CLI, and pi-share-hf.

You can also watch this video, where I show how I publish my pi-mono sessions.

I regularly publish my own pi-mono work sessions here:

All Packages

Package Description
@earendil-works/pi-ai Unified multi-provider LLM API (OpenAI, Anthropic, Google, etc.)
@earendil-works/pi-agent-core Agent runtime with tool calling and state management
@earendil-works/pi-coding-agent Interactive coding agent CLI
@earendil-works/pi-tui Terminal UI library with differential rendering
@earendil-works/pi-web-ui Web components for AI chat interfaces

For Slack/chat automation and workflows see earendil-works/pi-chat.

Contributing

See CONTRIBUTING.md for contribution guidelines and AGENTS.md for project-specific rules (for both humans and agents).

Development

npm install          # Install all dependencies
npm run build        # Build all packages
npm run check        # Lint, format, and type check
./test.sh            # Run tests (skips LLM-dependent tests without API keys)
./pi-test.sh         # Run pi from sources (can be run from any directory)

Note: npm run check requires npm run build to be run first. The web-ui package uses tsc which needs compiled .d.ts files from dependencies.

License

MIT