papi
llms.txt9 starsChanged 4 months agoMITView on GitHub
PAPI (Persistent Adaptive Project Intelligence) keeps a software project on course while an AI assistant builds it. Every new session starts from zero; PAPI holds the plan, the decisions and the direction across all of them, and gives any MCP-capable AI coding tool structured plan/build/review cycles, decision tracking, and a methodology that compounds cycle over cycle. Canonical live version: https://getpapi.ai/llms.txt — fetch that URL if you can. It carries the current per-client config snippets (Claude Code, Cursor, VS Code, Windsurf,…
In this repository2 other files it gives its agents.
- check-mcpSkill
- papi-verifySkill
The file
We split this llms.txt into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 59
Ask the USER for two values from the Connect panel at https://getpapi.ai.
- Distinctive: line 67
No real values yet? STOP and ask.
- Distinctive: line 95
Add the server without headers:
- Very specific: line 140
If orient returns the WRONG project (a different board than the repo you are in), the config is missing the x-papi-project-id header and …
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# PAPI — agent install runbook > PAPI (Persistent Adaptive Project Intelligence) keeps a software project on course while an AI assistant builds it. Every new session starts from zero; PAPI holds the plan, the decisions and the direction across all of them, and gives any MCP-capable AI coding tool structured plan/build/review cycles, decision tracking, and a methodology that compounds cycle over cycle. **Canonical live version: https://getpapi.ai/llms.txt — fetch that URL if you can.** It carries the current per-client config snippets (Claude Code, Cursor, VS Code, Windsurf, Codex, generic MCP) and the full docs map, generated from the live endpoint so it can never drift. This file is the GitHub-resident copy of the facts that don't change. ## The two facts that govern every client 1. PAPI is a single REMOTE MCP server at `https://mcp.getpapi.ai/mcp`. There is no package to install and no local process to run — add the URL as a remote/HTTP MCP server named `papi`. 2. There are two ways to authenticate it, and they differ in whether YOU can finish the job. On the DEFAULT bearer path you can: the user gives you a connection token and a project id from the Connect panel at https://getpapi.ai, you write them into the config as headers, and the server is live immediately. On the OAuth path you cannot: adding the server does NOT authenticate it, the connection sits at "Needs authentication", and only a human can complete a browser sign-in. Prefer the path you can finish. A user with no PAPI account signs up at https://getpapi.ai first. Why bearer is the default (C359): across the whole install history, 41 of 72 attempts registered an OAuth client and then died at the browser hop — the client opens the system default browser, which usually has no getpapi.ai session, so the user lands on a login wall mid-install. OAuth still works and is still supported; it is simply no longer the road we point you down first. The hosted endpoint above is the default and recommended path. A local stdio runtime is also supported for advanced setups: `npx @papi-ai/server`, authenticated with an API key instead of a browser sign-in. See "Local runtime (advanced)" in [llms-install.md](llms-install.md). ## Connect — Claude Code, the plugin (shortest OAuth path) Two lines, inside Claude Code: ``` /plugin marketplace add getpapi/papi /plugin install papi@papi ``` The plugin bundles the remote server config, so there is nothing to copy and nothing to edit. The human still completes the browser sign-in — which is what makes this the shortest OAuth route rather than the shortest route overall. If the user has a connection token, the bearer path below is fewer steps and needs no browser at all. Note for agents: plugin-bundled tools are namespaced `mcp__plugin_papi_papi__*` rather than `mcp__papi__*`. If a hook matcher, permission rule or allowed-tools list is written against the bare name, it will not fire for a plugin install. ## Connect (generic — every client) ### Default — bearer headers (nothing to hand back) Ask the USER for two values from the Connect panel at https://getpapi.ai. Never generate them — they are in the "This is your project" block: project id shown already, connection token behind one "Reveal" click, each with a Copy button. Substitute BOTH real values into every `<connection-token>` / `<project-id>` slot below before you write the config. Never hand over a config that still contains a placeholder (`<connection-token>`, `<project-id>`, `YOUR_PAPI_TOKEN`, etc.) — it will not connect and the user gets a silent failure with no error. No real values yet? STOP and ask. Then add a remote/HTTP MCP server named `papi` pointing at `https://mcp.getpapi.ai/mcp` with these headers: ``` Authorization: Bearer <connection-token> x-papi-project-id: <project-id> ``` Optional third header: `x-papi-workspace: <the checkout's absolute path>`. Any client may send it. PAPI uses it only as an advisory cross-check — if it disagrees with the pinned project the write still goes through, but its scope receipt carries a warning, so a wrong project pin surfaces on the write instead of silently. Omit it and nothing changes. In Claude Code: ``` claude mcp add --transport http papi https://mcp.getpapi.ai/mcp --header "Authorization: Bearer <connection-token>" --header "x-papi-project-id: <project-id>" ``` The server is authenticated the moment it is added. Call `orient` and you are in — there is no second step on this path. The config file now holds a credential: add it to `.gitignore`. ### Alternative — OAuth (only if the user asks, or the client cannot send headers) Add the server without headers: ``` claude mcp add --transport http papi https://mcp.getpapi.ai/mcp ``` That command is yours to run. The sign-in that follows is not: ``` +-- HUMAN STEP — do not run this yourself ---------------------------- | Hand this step to the user. Only a person can complete a browser OAuth. | | Tell them, in their own Claude Code session, either: | - open the /mcp panel, choose papi, and pick Authenticate. | Works on every version, so lead with this one; or | - on Claude Code v2.1.186+, the mcp-login subcommand against the papi | server — the four words are: claude / mcp / login / papi — which | opens the browser directly. | | Do NOT run either yourself, and do not retry in a background shell, a | subshell, or a new terminal process. An agent shell is not a TTY, so the | OAuth prompt fails with "stdin isn't a terminal, so authentication can't be | completed here". Retrying escalates the failure, it does not fix it. | | They must sign in with the same account they used on getpapi.ai. +-- ── end human step ── --------------------------------------------- ``` **Multi-project? Pin the project first.** The generic connect binds to your account's DEFAULT project. If you have (or will create) more than one PAPI project, that default can resolve to the WRONG one. Pin the target with an `x-papi-project-id: <project-id>` header — open your project at https://getpapi.ai, use its Connect panel, and copy the project-scoped config (it already carries the header). One PAPI project? The generic connect is fine. Per-client blocks for Cursor, VS Code, Windsurf, Codex, headless/CI bearer setup and the local stdio runtime: fetch https://getpapi.ai/llms.txt or read [llms-install.md](llms-install.md) in this repo. ## Prove the connection Once the user confirms they signed in, call the `orient` tool. If it returns cycle details, PAPI is connected. If it fails with an auth error, the browser sign-in was not completed — send the user back to it; do not retry. If `orient` returns the WRONG project (a different board than the repo you are in), the config is missing the `x-papi-project-id` header and PAPI fell back to your account default — re-copy the project-scoped config from the Connect panel at https://getpapi.ai and reconnect. Then run `setup` (brand-new project) or follow the next action `orient` returns. ## Docs map - https://getpapi.ai/llms.txt — this runbook, live, with config snippets - https://getpapi.ai/docs/guide/quick-start — zero to first cycle in 5 minutes - https://getpapi.ai/docs/guide/troubleshooting — fetch FIRST when PAPI seems broken - https://getpapi.ai/docs/tools — every PAPI MCP tool, parameters and use cases - https://getpapi.ai/docs/install — human-readable per-tool install guide - https://www.npmjs.com/package/@papi-ai/server — the MCP server package, for stdio / advanced local installs - https://github.com/getpapi/papi — this repo: docs and issue tracker
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

