Find a file
Mario Zechner 7426ce977d
Some checks are pending
CI / build-check-test (push) Waiting to run
Tighten AGENTS.md and extract LLM provider checklist to skill
- Tighten all sections (279 -> 159 lines) without dropping rules.
- Reorganize: git rules moved next to issues/PRs.
- Defer contributor gate details to CONTRIBUTING.md.
- Replace stale npx tsx test command with node (strip-only mode); add ./test.sh + e2e warning.
- Releasing: explicit WebAuthn briefing step, no bash timeout, stop on partial publish failure.
- Move LLM provider checklist to .pi/skills/add-llm-provider.md.
2026-05-22 12:04:12 +02:00
.github chore: approve contributor AJM10565 2026-05-21 18:34:39 +00:00
.husky chore: harden dependency workflows 2026-05-20 15:57:41 +02:00
.pi Tighten AGENTS.md and extract LLM provider checklist to skill 2026-05-22 12:04:12 +02:00
packages fix(coding-agent): Clean up Path Handling (#4873) 2026-05-22 11:25:15 +02:00
scripts chore(tui): replace koffi with Windows VT input helper 2026-05-21 00:21:21 +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
.npmrc chore: harden dependency workflows 2026-05-20 15:57:41 +02:00
AGENTS.md Tighten AGENTS.md and extract LLM provider checklist to skill 2026-05-22 12:04:12 +02:00
biome.json chore: remove web-ui workspace 2026-05-20 02:26:09 +02: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 chore(tui): replace koffi with Windows VT input helper 2026-05-21 00:21:21 +02:00
package.json chore: run pi-test through tsx 2026-05-20 15:55:31 +02:00
pi-test.bat chore: add pi-test batch wrapper 2026-05-18 00:55:01 +02:00
pi-test.ps1 chore: add HF_TOKEN to pi-test.ps1 --no-env unset list 2026-05-20 18:12:00 +02:00
pi-test.sh chore: run pi-test through tsx 2026-05-20 15:55:31 +02:00
README.md docs: document safe development install 2026-05-21 20:44:05 +02:00
test.sh test: speed up provider payload coverage 2026-05-20 12:37:58 +02:00
tsconfig.base.json chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
tsconfig.json chore: remove web-ui workspace 2026-05-20 02:26:09 +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

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 --ignore-scripts  # Install all dependencies without running lifecycle scripts
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)

Supply-chain hardening

We treat npm dependency changes as reviewed code changes.

  • Direct external dependencies are pinned to exact versions. Internal workspace packages remain version-ranged.
  • .npmrc sets save-exact=true and min-release-age=2 to avoid same-day dependency releases during npm resolution.
  • package-lock.json is the dependency ground truth. Pre-commit blocks accidental lockfile commits unless PI_ALLOW_LOCKFILE_CHANGE=1 is set.
  • npm run check verifies pinned direct deps, native TypeScript import compatibility, and the generated coding-agent shrinkwrap.
  • The published CLI package includes packages/coding-agent/npm-shrinkwrap.json, generated from the root lockfile, to pin transitive deps for npm users.
  • Release smoke tests use npm run release:local to build, pack, and create isolated npm and Bun installs outside the repo before publishing.
  • Local release installs, documented npm installs, and pi update --self use --ignore-scripts where supported.
  • CI installs with npm ci --ignore-scripts, and a scheduled GitHub workflow runs npm audit --omit=dev plus npm audit signatures --omit=dev.
  • Shrinkwrap generation has an explicit allowlist for dependency lifecycle scripts; new lifecycle-script deps fail checks until reviewed.

License

MIT