Official reference · AHP+ 1.1.0
AHP+ Command Atlas
A guide to installing AHP+ and using it, whether you type in the terminal or ask for it in your AI assistant’s chat. Every command is ready to copy.
40commands ready to copy
6platforms with an installer
Gitwhere everything is stored
00 / Orientation
Terminal and chat are not the same.
There is only one AHP+. What changes is where you ask for it and what can be proven afterwards.
TERMINAL
Here it actually runs
You type the command and the terminal answers. That answer counts as proof, because anyone can repeat it and get the same result.
npx ahp verify . --strictIDE / CHAT
Here you only ask for it
You ask the assistant for the operation. It has to run the command and show you the output: saying it did is not the same as doing it.
/ahp verify strict01 / Installation
Installation by operating system.
You need a project that already uses Git and has at least one commit, plus Node.js 20 or newer. Run the commands from the project’s main folder.
Open Terminal and move into the project’s main folder before running each line.
node --version
npm install --save-dev @jossuealcala/ahp-plus@latest
npx ahp init . --owner "Your name" --project my-project
npx ahp doctor .
npx ahp verify . --strictThe commands are identical. Run them from the repository’s main folder.
node --version
npm install --save-dev @jossuealcala/ahp-plus@latest
npx ahp init . --owner "Your name" --project my-project
npx ahp doctor .
npx ahp verify . --strictType one command per line. To split a long one, PowerShell uses the backtick (`), not the backslash.
node --version
npm install --save-dev @jossuealcala/ahp-plus@latest
npx ahp init . --owner "Your name" --project my-project
npx ahp doctor .
npx ahp verify . --strictKeep each command on a single line. The terminal changes, AHP+ does not.
node --version
npm install --save-dev @jossuealcala/ahp-plus@latest
npx ahp init . --owner "Your name" --project my-project
npx ahp doctor .
npx ahp verify . --strictSTABLE
@latest
The normal choice: the latest tested version.
npm install --save-dev @jossuealcala/ahp-plus@latestPINNED
@1.1.0
Pins exactly the version this guide documents.
npm install --save-dev @jossuealcala/ahp-plus@1.1.0DEVELOPMENT
@next
Only for trying out what is coming and reporting issues.
npm install --save-dev @jossuealcala/ahp-plus@next02 / Start-up
Start-up check.
Run this sequence whenever you open the project, switch assistants, or receive a handover. It tells you where you stand before you touch anything.
npx ahp root .
npx ahp doctor .
npx ahp verify . --strict
npx ahp status .
npx ahp context . --format markdown --budget 8000Then look at the .ahp/manifest.json, .ahp/state/project.json, and .ahp/INDEX.md files. If the saved summary and the command output disagree, the command wins: that is what is happening right now.
03 / Terminal
Every command.
Search by what you want to do, by command name, or filter by category. Every example uses the copy installed in your project, through npx ahp.
40 commands visible
Repository
Set up
Creates the .ahp/ folder inside the repository you are in.
npx ahp init . --owner "Tu nombre" --project mi-proyectoRepository
Confirm where you are
Tells you which repository and which .ahp/ folder it is using, so you do not write into the wrong project.
npx ahp root .Repository
Health check
Checks the project, the scope, the file structure, and whether everything is valid, all at once.
npx ahp doctor .Repository
Strict check
Reviews structure, references, and integrity, and warns if any secrets slipped in.
npx ahp verify . --strictRepository
Where the project stands
Shows where it stands, the state of Git, any active notices, and whether the work has left your computer yet.
npx ahp status .Repository
Is it backed up?
Compares what you have locally with the server. With --require-remote it fails if nothing has been pushed yet.
npx ahp sync check . --require-remoteContext
Summary for machines
Returns the project summary as JSON, ready for another program to read.
npx ahp context . --format json --budget 8000Context
Summary for people
The same summary in plain text, to read yourself or paste into a chat.
npx ahp context . --format markdown --budget 8000Context
Refresh the saved summary
Rewrites the .ahp/INDEX.md file with the latest state.
npx ahp brief . --budget 8000Context
Mark where you stopped
Saves a point in the session you can come back to later.
npx ahp checkpoint . --session mi-sesion --summary "Límite validado" --next-action "Continuar"Context
See the history
Lists the saved points and the handovers made so far.
npx ahp history .Context
History of one session
Filters that history down to a single work session.
npx ahp history . --session mi-sesionContext
Update the direction
Updates the phase the project is in, the objective, and the next step.
npx ahp set-state . --phase IN_PROGRESS --objective "Objetivo" --next-action "Siguiente paso" --confidence USER_CONFIRMEDRecords
Decision
Puts a decision in writing, so nobody has to recall it from memory later.
npx ahp record decision . --title "Decisión" --status ACCEPTED --confidence USER_CONFIRMEDRecords
To-do
Notes something to be done and the state it is in.
npx ahp record task . --title "Implementar mejora" --status PLANNED --confidence USER_CONFIRMEDRecords
Bug
Notes an error that can be reproduced on demand.
npx ahp record bug . --title "Fallo reproducible" --status OPEN --confidence VERIFIEDRecords
Risk
Keeps an open risk written down so it is not forgotten.
npx ahp record risk . --title "Riesgo de migración" --status OPEN --confidence VERIFIEDRecords
Review passed or failed
Passes or fails a quality review. To mark PASS you must cite a concrete piece of proof (EVD-...).
npx ahp record qa . --title "Gate de aceptación" --status PASS --confidence VERIFIED --source EVD-...Records
Requirement
Notes something the project has to satisfy.
npx ahp record requirement . --title "Debe ser portable" --status ACCEPTED --confidence USER_CONFIRMEDRecords
Proof that something happened
Stores the real result of something that ran: the command, what it returned, and whether it finished cleanly.
npx ahp record evidence . --title "Validación local" --type test --locator "npm test" --result "PASS: 18 pruebas" --confidence VERIFIED --exit-code 0Records
See the records
Lists every record, or only those of one kind.
npx ahp list risk .Records
See only what is open
Leaves out anything already closed.
npx ahp list task . --activeRecords
Close a record
Closes a record with the reason why.
npx ahp close RISK-... . --status CLOSED --reason "Mitigación verificada"Records
Change a decision
Replaces an accepted decision by creating a new one: the original is never rewritten, it stays in the history.
npx ahp supersede DEC-... . --title "Decisión revisada" --accept --confidence USER_CONFIRMEDHandover
Prepare the handover
Packages the context so it can be passed to another tool.
npx ahp handoff create . --from codex --to cursor --session feature-x --summary "Continuar"Handover
Review before accepting
Opens the handover and checks it is complete, without accepting it yet.
npx ahp handoff inspect HOF-... .Handover
Accept the handover
Accepts it only if the project, the contents, and the commit match what it claims.
npx ahp handoff receive HOF-... .Working in parallel
Write without overwriting anyone
Cancels the write if someone else moved the repository while you were working.
npx ahp checkpoint . --summary "Límite" --expected-head COMMIT --expected-state DIGESTWorking in parallel
Flag that you are working
Leaves a notice that you are inside one part of the project. It is a courtesy notice, not a lock.
npx ahp lock acquire . --scope src/editor --owner codex --minutes 60Working in parallel
Remove the notice
Removes your notice when you are done. The history is kept.
npx ahp lock release LOCK-... . --owner codexMigration
See what would move
Reviews the version 1.0 agent/ folder and tells you what it would do, without touching any file.
npx ahp migrate . --planMigration
Make the change
Creates the version 1.1 structure and leaves the original agent/ folder untouched.
npx ahp migrate . --applyInstallers
See the available platforms
Shows which programs and assistants have an installer.
npx ahp adapter listInstallers
See what it would install
Shows which files it would create and which it might clash with, without installing anything.
npx ahp adapter install all .Installers
Install on all of them
Installs all six: generic agent, Claude, Cursor, OpenCode, Codex, and ChatGPT.
npx ahp adapter install all . --applyInstallers
Install on just one
Replace PLATFORM with generic, claude, cursor, opencode, codex, or chatgpt.
npx ahp adapter install PLATFORM . --applyVersions
Install the stable version
Installs the latest tested version. This is the normal choice.
npm install --save-dev @jossuealcala/ahp-plus@latestVersions
Pin an exact version
Installs exactly 1.1.0, the same version this guide documents.
npm install --save-dev @jossuealcala/ahp-plus@1.1.0Versions
Try what is coming
Installs the in-progress version. For testing and reporting issues only, not for production.
npm install --save-dev @jossuealcala/ahp-plus@nextVersions
Uninstall
Removes the program. Your records in .ahp/ and the installers stay where they are.
npm uninstall @jossuealcala/ahp-plusNo commands match this search.
04 / CHAT
Commands by platform.
First install the adapter from the terminal, once. After that you can ask for things inside the chat, using the wording shown below.
IDE / APP
Cursor
Adds the /ahp command to Cursor chat, so you can ask for it without leaving the editor.
In terminal
npx ahp adapter install cursor . --applyDirectly in chat
- CHAT
/ahp doctor - CHAT
/ahp verify strict - CHAT
/ahp context - CHAT
/ahp checkpoint summary="Validated boundary" next="Create handoff" - CHAT
/ahp handoff to codex - CHAT
/ahp receive HOF-...
IDE / APP
OpenCode
Adds the same /ahp command in OpenCode. You type it exactly as in Cursor.
In terminal
npx ahp adapter install opencode . --applyDirectly in chat
- CHAT
/ahp status - CHAT
/ahp verify strict - CHAT
/ahp handoff to claude - CHAT
/ahp receive HOF-...
IDE / APP
Codex
Installs the $ahp skill and keeps the project rules in AGENTS.md.
In terminal
npx ahp adapter install codex . --applyDirectly in chat
- CHAT
Use $ahp to check this repository and show me where the project stands. - CHAT
Use $ahp to mark where we stopped and prepare the handover to Cursor. - CHAT
Use $ahp to accept handover HOF-... and do not edit anything unless the result says READY.
IDE / APP
Claude Code
Connects CLAUDE.md to the AHP+ instructions. Here you ask in plain language: there is no slash command.
In terminal
npx ahp adapter install claude . --applyDirectly in chat
- CHAT
Before continuing, use AHP+ to run the health check, the strict check, and the project summary. - CHAT
Mark where we stopped and prepare the handover from Claude to Codex, without committing or pushing. - CHAT
Accept handover HOF-... with AHP+ and stop if anything does not match.
IDE / APP
ChatGPT / Mobile
Installs AHP_MOBILE.md. If the chat has a terminal it can run commands; if it can only read, it has to say so.
In terminal
npx ahp adapter install chatgpt . --applyDirectly in chat
- CHAT
Read AHP_INSTRUCTIONS.md. Run the start check with AHP+ and tell me the project, the commit, whether the work is backed up, what is blocked, and the next step. - CHAT
If you have no terminal: read AHP_MOBILE.md, .ahp/INDEX.md, and the latest handover. Do not say you checked, tested, committed, or pushed, because you cannot.
IDE / APP
Cualquier otro agente
Installs AHP_INSTRUCTIONS.md and a block in AGENTS.md, for agents without their own installer.
In terminal
npx ahp adapter install generic . --applyDirectly in chat
- CHAT
Follow this repository’s AHP+ instructions. Check before writing and treat the repository as the source of truth, not the conversation. - CHAT
Run the health check, the strict check, and the project summary. Show me the real output and wait for my authorization before any action outside the repository.
05 / Handover
Passing the work to another tool.
A handover puts in writing where everything stands and which repository and commit it belongs to. Git is what carries it, and you authorize the commit and the push.
- 01
Mark where you stopped
Save a point you can return to, before switching tools.
terminalnpx ahp checkpoint . --session feature-x --platform codex --actor "Codex" --summary "Límite validado" --next-action "Recibir y continuar" - 02
Create the handover
State which tool it comes from, which one it goes to, and what is left to do.
terminalnpx ahp handoff create . --from codex --to cursor --session feature-x --summary "Continuar desde el límite validado" - 03
You push it
The handover has to be committed in Git and available on the server. AHP+ neither runs Git nor grants you permission to publish it: that step is yours.
- 04
Check before continuing
Whoever receives it checks that the handover is complete and matches this repository and this commit. Only then do they start editing.
terminalnpx ahp verify . --strict npx ahp handoff inspect HOF-... . npx ahp handoff receive HOF-... . npx ahp sync check . --require-remote
06 / Migration
If you are coming from version 1.0.
Version 1.0 projects kept everything in a folder called agent/. If that is your case, do not install from scratch again: use the migration.
READ ONLY
1. See what would move
npx ahp migrate . --planIt only reports what it found, where it would go, and which files might clash. It changes nothing.
WRITE
2. Do it once you have reviewed it
npx ahp migrate . --apply
npx ahp verify . --strictIt keeps the original agent/ folder. If .ahp/ already exists, AHP+ stops instead of merging the two.
07 / Limits
AHP+ records and checks; it does not authorize.
A handover saying READY means the data lines up, not that there is permission to act. These actions are always a person’s call:
This guide was prepared from the official AHP+ 1.1.0 documentation and tool. Before copying the installation commands, confirm which version is published and review the official changelog.