Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/mnott/pai/projectgit clone --depth 1 https://github.com/mnott/PAIWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03038 |
| Opus 5 | $0.00000 | $0.01519 |
| Sonnet 5 | $0.00000 | $0.00608 |
| Haiku 4.5 | $0.00000 | $0.00304 |
Grade A, and why
project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 407 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pai project
Alias for
pai projects
Synopsis
pai project <subcommand> [options]
Subcommands
| Command | Description |
|---|---|
pai project list |
Show the unified deduped listing (same as pai). |
pai project list-raw |
Raw registry listing with slug, path, status, last_active columns |
pai project cd <identifier> |
cd to a project directory. Short form: pai cd |
pai project add <path> |
Register a project directory in the PAI registry |
pai project info <slug> |
Show full details for a project |
pai project archive <slug> |
Archive a project |
pai project merge <from> <into> |
Fold a duplicate project into another: move its sessions (renumbered), repoint its tags, aliases, compaction records and links, keep the old slug as an alias, then delete the row. Preview unless --execute is given. |
pai project unregister <slug> |
Remove a project row entirely, for paths that should never have been registered (worktrees, temp dirs). Refuses when the row holds sessions — merge those first. Preview unless --execute is given. The directory itself is never touched. |
pai project unarchive <slug> |
Restore an archived project to active status |
pai project move <slug> <new-path> |
Update the root path for a project |
pai project rebind <slug> <new-path> |
Manually update the root_path for a project (for when auto-detect found multiple matches). |
pai project here <name> |
Declare that the CURRENT directory is this project — no slug, no path. |
pai project tag <slug> <tags...> |
Add one or more tags to a project |
pai project alias <slug> <alias> |
Register an alternative slug for a project |
pai project edit <slug> |
Edit project metadata |
pai project detect [path] |
Detect which registered project the given path (or CWD) belongs to |
pai project health |
Audit all registered projects: check which paths still exist, find moved/dead projects |
pai project consolidate <identifier> |
Consolidate scattered ~/.claude/projects/.../Notes/ directories for a project into its canonical Notes/ location |
pai project promote |
Promote a session note into a new standalone project |
pai project go <query> |
Print the root path for a project by slug, partial name, or fuzzy match. |
pai project name <identifier> <shortname> |
Give a project a short name for quick access |
pai project unname <shortname> |
Remove a project's short name |
pai project names |
List named projects (your curated shortlist) |
pai project config [identifier] |
View or modify session launch config for a project. |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 407 lines · 0 tokens per session scan A f2e059ea4fb8
project is a command published in the GitHub repository mnott/PAI (45 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,038 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.