← all work

open source2026v1.1.0 on npm

pi-project-profile

a project-aware verification gate for AI coding agents

What if a coding agent had to pass the project’s own checks before it could say “done”?

An open-source extension for the π coding agent. It detects any repository’s stack, commands, conventions and instruction files, injects them as a stable system-prompt section, then runs the project’s own typecheck, lint, tests and build after every agent turn — with a bounded self-repair loop and a review of the agent’s diff. It never writes into the repository.

RoleAuthor and maintainer
My partSolo · MIT · published on npm
Year2026
Statusv1.1.0 on npm
$ pi install npm:@lenard9191/pi-project-profile

What I did

Built with

Why

A coding agent dropped into an unfamiliar repository guesses: which package manager, which test runner, whether tsc or biome is the source of truth, where tests live, which files are generated. Then it reports “done” without having run anything, or runs the wrong thing. pi-project-profile answers those questions once per repository, keeps the answer stable so prompt caching works, and turns “done” into “the project’s own checks pass” — without ever running installs, migrations or deploys on its own.

How it works

  1. Session start — the repository is scanned (manifests, lockfiles, CI files, Makefiles, instruction files; nothing is executed), cached under ~/.pi/agent/project-profile/, and rendered as <project_profile> in the system prompt.
  2. Each turn — files the agent touches are tracked; nested AGENTS.md / CLAUDE.md and glob-scoped rules that apply to them are delivered with the first matching tool result; generated files get a warning.
  3. Before the turn settles — if files changed, the syntax, typecheck and lint tiers run (tests and builds once you have allowed them for the repo). New failures go back to the agent for at most three repair rounds; pre-existing failures are reported to you once and never blamed on the agent. The diff review runs alongside.

Design rules