Find a file
Danila Poyarkov a2ec01e12f
Some checks are pending
CI / build-check-test (push) Waiting to run
fix(coding-agent): coerce stringified JSON edits in edit tool (#3370)
Some models (Opus 4.6, GLM-5.1) send the edits parameter as a JSON
string instead of a parsed array. This fails AJV validation with
'must be array' and models fall back to sed/python.

Parse stringified edits in prepareEditArguments before validation.
2026-04-18 18:29:23 +02:00
.github chore: approve contributor vekexasia 2026-04-17 21:05:58 +00: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 feat(coding-agent,tui): support argument-hint frontmatter in prompt templates (#2780) 2026-04-16 23:02:35 +02:00
packages fix(coding-agent): coerce stringified JSON edits in edit tool (#3370) 2026-04-18 18:29:23 +02:00
scripts fix(release): use npx shx for explicit versions 2026-04-17 23:06:48 +02:00
.gitattributes chore: add repository .gitattributes for line ending normalization 2026-02-26 01:11:34 +01:00
.gitignore Add to gitignore 2026-04-08 18:15:36 +02:00
AGENTS.md docs: update root AGENTS guidance 2026-04-15 14:04:07 +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 chore: replace OSS weekend with permanent contribution gate 2026-04-14 23:16:11 +02:00
LICENSE Initial monorepo setup with npm workspaces and dual TypeScript configuration 2025-08-09 17:18:38 +02:00
package-lock.json Release v0.67.68 2026-04-18 01:31:38 +02:00
package.json chore: fix npm audit vulnerabilities 2026-04-13 23:28:38 +02:00
pi-test.sh chore: make pi-test.sh runnable from any directory 2026-03-26 15:43:42 +01:00
README.md chore: replace OSS weekend with permanent contribution gate 2026-04-14 23:16:11 +02:00
test.sh fix(coding-agent): tighten session_before emit typing and test env filtering 2026-02-06 11:59:25 +01:00
tsconfig.base.json Try fixing root level compiles 2025-12-03 14:16:00 +01:00
tsconfig.json fix(monorepo): resolve pi-ai subpaths to source files (#2625) 2026-03-29 17:27:27 +02:00

pi logo

Discord Build status

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 Monorepo

Looking for the pi coding agent? See packages/coding-agent for installation and usage.

Tools for building AI agents and managing LLM deployments.

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:

Packages

Package Description
@mariozechner/pi-ai Unified multi-provider LLM API (OpenAI, Anthropic, Google, etc.)
@mariozechner/pi-agent-core Agent runtime with tool calling and state management
@mariozechner/pi-coding-agent Interactive coding agent CLI
@mariozechner/pi-mom Slack bot that delegates messages to the pi coding agent
@mariozechner/pi-tui Terminal UI library with differential rendering
@mariozechner/pi-web-ui Web components for AI chat interfaces
@mariozechner/pi-pods CLI for managing vLLM deployments on GPU pods

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