How Adams works, and every command

Adams 2.9.7. Start on the map: 11 moments where your tool calls Adams. Click one to see what runs there, or search a command or a handler by name.

Type to search. The map and the index below both react.

When your tool calls Adams

Your tool calls Adams at 11 events. Always-on guards never switch off. Every other handler has a switch.

Session

Every prompt and tool call

Agents and context

Event

SessionStart

A session opens. Adams loads your rules, memory and any handoff, and checks for updates.

Handler, in run orderRuns onBudgetSwitch
rules_injectevery call2 sswitch
path_rulesevery call2 sswitch
contextevery call5 sswitch
integrityevery call5 sswitch
memory_loadevery call5 sswitch
handoff_reloadevery call5 sswitch
wiki_indexevery call5 sswitch
replay_startevery call5 sswitch
runs_reconcileevery call5 sswitch
stale_runsevery call5 sswitch
license_refreshevery call5 sswitch
auto_updateevery call2 sswitch
languageevery call5 sswitch
setup_initevery call5 sswitch
setup_maintenanceevery call5 sswitch
rules_lintevery call2 sswitch
company_contextevery call5 sswitch
git_hooksevery call3 sswitch
coachevery call1 sswitch
session_reviewevery call2 sswitch
cleanevery call4 sswitch
accessevery call4 sswitch
Event

SessionEnd

The session closes. Adams writes the summary and tidies up.

Handler, in run orderRuns onBudgetSwitch
session_summaryevery call5 sswitch
session_reportevery call3 sswitch
session_reviewevery call4 sswitch
claimsevery call1 sswitch
cleanevery call3 sswitch
savings_lineevery call4 sswitch
Event

UserPromptSubmit

You send a prompt. Adams checks it for leaks and reads what you asked for.

Handler, in run orderRuns onBudgetSwitch
leak_guardevery call5 salways on
intentevery call5 salways on
languageevery call5 sswitch
reminderevery call5 sswitch
routerevery call5 sswitch
gate_overrideevery call5 sswitch
correction_captureevery call3 sswitch
taste_captureevery call3 sswitch
sidefxevery call5 sswitch
Where guards stop calls

PreToolUse

The agent is about to act. Guards and gates can stop the call here.

Handler, in run orderRuns onBudgetSwitch
leak_guardWrite|Edit|MultiEdit|Bash5 salways on
block-risky-gitBash20 salways on
secretsBash|Read|Grep5 salways on
sidefxBash5 sswitch
deploy_guardWrite|Edit|MultiEdit|NotebookEdit|Bash|Read|Grep|Glob5 sswitch
sql_guardBash|Edit|Write|MultiEdit|NotebookEdit5 sswitch
protected_filesBash|Edit|Write|MultiEdit|NotebookEdit5 sswitch
align_gateBash|Edit|Write|MultiEdit|NotebookEdit10 sswitch
deviation_gateBash|Edit|Write|MultiEdit|NotebookEdit5 sswitch
agent_boxBash|Edit|Write|MultiEdit|NotebookEdit5 sswitch
mode-enforcerBash|Edit|Write|MultiEdit|NotebookEdit5 sswitch
host-gateBash5 sswitch
claimsBash|Edit|Write|MultiEdit|NotebookEdit5 sswitch
undo_pointEdit|Write|MultiEdit|NotebookEdit8 sswitch
directory_contextEdit|Write|MultiEdit|NotebookEdit5 sswitch
rules_injectorEdit|Write|MultiEdit|NotebookEdit5 sswitch
Event

PermissionRequest

The tool asks to run. Adams lets read-only shell commands through.

Handler, in run orderRuns onBudgetSwitch
read-only-allowBash5 sswitch
Event

PostToolUse

A call finished. Adams scans the output for secrets and records the proof.

Handler, in run orderRuns onBudgetSwitch
secretsevery call5 salways on
verify_recordBash|Edit|Write|MultiEdit|NotebookEdit|WebFetch|mcp__Claude_Browser__navigate|mcp__Claude_Browser__preview_start|mcp__claude-in-chrome__navigate|mcp__Control_Chrome__open_url10 sswitch
routerEdit|Write|MultiEdit|Bash5 sswitch
memory_captureevery call5 sswitch
replay_recordevery call5 sswitch
taste_recordEdit|Write|MultiEdit|NotebookEdit|WebFetch|mcp__Claude_Browser__navigate|mcp__Claude_Browser__preview_start|mcp__claude-in-chrome__navigate|mcp__Control_Chrome__open_url|mcp__.*(?:computer|screenshot|screen).*3 sswitch
skill_injectorSkill5 sswitch
context_guardevery call5 sswitch
block-risky-gitBash5 salways on
cleanBash5 sswitch
contractAskUserQuestion5 sswitch
Event

PostToolUseFailure

A call failed. Adams records the failure and adds a hint.

Handler, in run orderRuns onBudgetSwitch
failure_hintsevery call5 sswitch
verify_recordBash10 sswitch
routerBash5 sswitch
Event

SubagentStart

A sub-agent starts. Adams tracks it.

Handler, in run orderRuns onBudgetSwitch
agent_trackevery call5 sswitch
agent_boxevery call5 sswitch
coachevery call1 sswitch
Event

SubagentStop

A sub-agent ends. Adams tracks it and records what it delivered.

Handler, in run orderRuns onBudgetSwitch
agent_trackevery call5 sswitch
deliverablesevery call8 sswitch
subagent_capevery call4 sswitch
review_receiptevery call4 sswitch
Event

PreCompact

The conversation is about to be shortened. Adams saves a memory snapshot and a handoff.

Handler, in run orderRuns onBudgetSwitch
memory_snapshotevery call5 sswitch
handoff_writeevery call5 sswitch
cleanevery call3 sswitch
Event

Stop

The agent ends its turn. Adams saves notes, checks the work and updates the blueprint.

Handler, in run orderRuns onBudgetSwitch
stopevery call70 sswitch
turn_reportevery call3 sswitch
memory_captureevery call5 sswitch
session_summaryevery call5 sswitch
wiki_noteevery call5 sswitch
persistevery call5 sswitch
budget_guardevery call5 sswitch
drift_guardevery call5 sswitch
simplifierevery call5 sswitch
sidefxevery call5 sswitch
notifyevery call8 sswitch
claimsevery call5 sswitch
blueprintevery call2 sswitch
surfacesevery call3 sswitch

Read from the hook list Adams runs · Adams 2.9.7

Seven core ideas

hostAdamscall47 ms

Hook

A hook is the moment your tool calls Adams, before or after a tool call. Adams answers in a median of 73 ms against a 60 ms budget (measured 2026‑11‑23), and the call runs, waits for you or stops. The map above lists all 11 events.

yes

Gate

A gate holds a risky step, such as a commit of sensitive code, until its evidence exists: a clean check, a security review, a passing test. The work goes on, and what cannot close is parked in .adams/needs-you.md. Only you can pass a held finding early, with adams ok and its ID.

no yes-pass

Guard

A guard is a hard rule. A secret in a commit is not overridable: the reply names the fix, and the same verdict holds on four paths. Guards cover secrets, env files, applied migrations, destructive SQL and force pushes.

Ledger

The ledger is the saved record: decisions, receipts and evidence. A claim such as tests pass points at saved output you can open. It lives in the project folder, next to the code.

Blueprint

The blueprint is one living page for a project, kept at .adams/blueprint/NAME.html. It has eight sections: plan, changes, found, missing, design and screens, decisions, website sync status and cleanup log. Pro keeps it current while the work runs.

changewebsitedocsscreens

Surfaces

Surfaces are the files that show a product change: website, docs, design and screens. At the end of a turn Adams lists the ones a change makes stale and asks you to accept or deny each. It only lists them and never edits them.

kept

Cleanup

Live cleanup removes dead project files from closed tasks older than 7 days, and merged clean task worktrees. The first run in a project only lists them, and you approve once. Included in Lite.

Every command, Lite and Pro

Built from the same list the CLI uses, never typed by hand. 5 owner-only commands are left out.

Showing 94 of 94.

Lite31
adams activateBind your seat to this device with a code or keyLite
adams briefWrite a ready prompt for another coding toolLite
adams bundleCheck a signed Adams bundle against the offline key, or fetch and verify oneLite
adams ciAdd or remove the pull request guard workflowLite
adams claimsShow who is editing which fileLite
adams cleanFree disk safely and tidy dead project filesLite
adams configShow the merged Adams settingsLite
adams deactivateFree the seat and remove the license hereLite
adams deploy-targetShow or set the confirmed domain of each deploy targetLite
adams doctorCheck this machine and list fixesLite
adams frictionCount how often Adams asked you something, per sessionLite
adams guard-checkJudge one tool call with the hard guardsLite
adams hooksInstall the git hooks that block secrets and force pushesLite
adams hostsShow how each coding tool is guardedLite
adams hygieneRun scheduled security checks, report onlyLite
adams installSet up Adams for Claude Code and Copilot CLILite
adams learnSave one correction as a ruleLite
adams licenseShow your edition, plan and datesLite
adams loadedList everything this session receivesLite
adams queueRun a heavy command in turn, with your place in lineLite
adams receiptsList saved output of recent test and build runsLite
adams refreshGet a fresh license tokenLite
adams rolloutOwner only: release, publish and check a version in one commandLite
adams selftestRun the toolkit self-checkLite
adams setupRun the first-run setup interviewLite
adams triageSay whether a failing test is flaky, a leak or realLite
adams turn-endRun the end-of-turn checks by hand in a tool with no hookLite
adams uninstallUndo exactly what install didLite
adams updateUpdate to the newest releaseLite
adams versionPrint the installed versionLite
adams wherePrint the toolkit folderLite
Pro60
adams accessKeep service keys in one encrypted vault that every agent can usePro
adams adaptShow which finding classes this project relaxed after you passed them twicePro
adams assistThe choice menus behind hey, review and securePro
adams auto-researchLog a bounded experiment with a stop rulePro
adams autopilotPlan and run a non-trivial task stage by stagePro
adams blueprintBuild the project blueprint and keep it currentPro
adams checkpointSnapshot the whole working tree, then restore itPro
adams checksRun the regression checks in .adams/checksPro
adams coachKeep short rules from your correctionsPro
adams code-mapWrite a short map into each source folderPro
adams consensusRecord a plan that several agents agreed onPro
adams context-packWrite a hand-over file for the next sessionPro
adams contractWrite the brief a task waits on, or show its statePro
adams costFlag a new dependency or paid API before it landsPro
adams decideRecord a settled decisionPro
adams diagnoseReport on Adams in this project and the next stepPro
adams evidenceAttach proof to a claim of donePro
adams gatesOpen and approve approval gatesPro
adams initCreate the project configPro
adams jobsList and wait for the jobs of lane runsPro
adams lanesRun independent tasks in parallel worktreesPro
adams launchCut a plan into slices and open gatesPro
adams long-goalKeep a goal alive across sessionsPro
adams memoryRead and write project memoryPro
adams navNavigate code through your language serverPro
adams nextList tasks ready to run in parallelPro
adams notepadKeep a short project notepadPro
adams notifySend Adams events to Telegram, Discord or SlackPro
adams orchestrateTurn a plan into a step program for subagentsPro
adams orgAdd a private company rules layerPro
adams persistKeep working until the proof is greenPro
adams planWrite and check task plansPro
adams prDraft and open a pull requestPro
adams pr-watchShow CI and review state of a pull requestPro
adams radarOne read-only screen of sessions, runs and pull requestsPro
adams reviewRecord a separate reviewer verdictPro
adams rulesLint, undo and guard your rulesPro
adams savingsShow the tokens Adams saved, estimated from your own sessionsPro
adams scheduleRun cleanup and checks on a schedulePro
adams self-tunePropose Adams changes from recorded frictionPro
adams sessionSearch and review past sessionsPro
adams sessionsOne worktree per taskPro
adams sharedShare small values between the agents of one runPro
adams shipWait for checks, merge and move to the next taskPro
adams skillList, add and edit your project skillsPro
adams specSave and read specs from interviewsPro
adams stateRead and write workflow mode statePro
adams statsReport calls, minutes and correctionsPro
adams status-lineShow Adams in the Claude Code status linePro
adams stopClear the active Adams modesPro
adams surfacesFind files that show a product changePro
adams sweepFind every instance of a defect classPro
adams tasteList the taste examples saved from your correctionsPro
adams tokensEstimate what Adams loads into contextPro
adams traceShow what a session did, in orderPro
adams trustTrust this repo's project commandsPro
adams tune-upReport maintenance work, read onlyPro
adams visualCheck a page at three widthsPro
adams watchList your open pull requestsPro
adams wikiKeep a small project wikiPro
Split by plan3
adams checkRun the right checks for a file typeSplit
adams mcpRun the Adams MCP server for any agentSplit
adams syncLite for Copilot CLI, Pro for the other 11 toolsSplit

Where Adams keeps files

Nothing hides. Each place has one owner and one way to remove it. Per tool paths are on the install page.

  1. Person file~/.config/adams/personal.md

    Your own rules, kept across all of your projects and tools.

  2. Project folder.adams/

    Decisions, receipts, the blueprint, plans, specs and state.

  3. LicenseSystem keychain

    Your Pro seat key, stored by the system, never in a project.

  4. Tool filesadams sync --remove

    Files that only sync writes or removes. Paths are per tool.

Short guides for any tool

12 guides that work in any tool. Each ends with where Adams fits.

Your first project with Claude CodeFrom an empty folder to a small working app, step by step.
  1. Pick one small goalChoose something you can finish in a day: one page, one script, one tool. Write the goal in a sentence and what done looks like.
  2. Make a clean folder with gitCreate a new folder and run git init before the first prompt. Commit the empty start so you can always get back to it.
  3. Describe the job, not the codeSay who it is for and what it must do. Leave out implementation unless you have a firm preference.
  4. Work in small stepsAsk for one change at a time. Read what changed after each, and commit when it works. Small commits are your undo.
  5. Run it and look at itOpen the result yourself. Click the buttons, resize the window, break the input. Do not rely on the AI saying it works.
  6. Keep a notes fileWrite down what you decided and what is left. The next session starts blank, and a short file brings it up to speed.

LiteGuards from the first commit. Install Adams Lite once and your first project has secret, git and leak guards from the start. Run adams doctor to check the setup.

Write a good briefThe five things an AI needs to build what you meant.
  1. Who is it forName the person and what they get. "Freelancers who send invoices" beats "users".
  2. What it must do on day oneList the two or three actions that make it useful. Write what is out for now, so the scope has an edge.
  3. Look and tonePoint to an example you like or give one word for the feel. Without it, the AI picks a default.
  4. LimitsState the deadline, the budget and anything that must not change, such as a brand colour or an existing database.
  5. ProofSay how you will know it works: a page you can open, a test that passes, a number that appears.
  6. Read it backAsk the AI to restate the brief in its own words before it builds. Correct the misreadings now, while it is cheap.

ProQuestions and a spec, done for you. Pro asks the few questions that change the result, one round with a recommended answer for each, and saves the settled answers as a spec. The blueprint does the same for a whole project.

Keep API keys safeWhere a key lives, where it must never go, and what to do if it leaks.
  1. Put keys in an env fileCreate a .env file for local work and read keys from the environment in code. The code names the variable, never the value.
  2. Make git ignore itAdd .env to .gitignore before the first commit. Commit an example file with empty values so others know what to set.
  3. Know public from secretA value shipped to the browser is public to everyone. Server only keys must never be given a public prefix to make an error go away.
  4. Set the same keys on your hostAdd them in your deploy settings by hand. Do not commit them to move them.
  5. Limit what a key can doUse the narrowest scope and set spending limits and alerts at the provider. A limited key is a smaller loss.
  6. If one leaks, replace it firstCreate a new key, switch to it, and revoke the old one. Clean the history afterwards. Treat the old key as used.

LiteThe commit is stopped for you. The secret guards in Lite stop a key at commit, name the file and line without printing the value, and move it to an ignored env file. They are included in Lite.

Review before you deployA short pass that catches what the AI missed.
  1. Read the whole diffRun git diff against the last good version. Look for files you did not expect, deleted code and anything that reads like a placeholder.
  2. Run the tests and the buildRun them yourself and read the end of the output. A green line you did not see is not a result.
  3. Open the pages at three widthsCheck phone, tablet and desktop. Scroll the full page and press every button.
  4. Search for secretsLook for keys, tokens and passwords in the diff and in tracked env files. Check nothing sensitive is in a public folder.
  5. Try the failure pathSubmit an empty form, a very long value and a wrong password. Unhappy paths are where AI code is thinnest.
  6. Know how to go backBefore you deploy, note the previous good version and how to roll back to it. Do not deploy on a Friday evening.

ProA reviewer that did not write it. Pro hands the change to a separate reviewer agent, ranks findings by severity and fixes only on your yes. The page check covers the three widths.

Check the mobile layoutFind overflow and wrapped labels before your users do.
  1. Open device modeIn your browser developer tools, switch to the device toolbar. Set the width to 375 pixels.
  2. Scroll the whole pageLook for a horizontal scrollbar. Any sideways scroll means something is wider than the screen.
  3. Read every short labelButtons, chips and tabs should sit on one line. A label that folds looks broken.
  4. Look at heading line countsA headline that runs to four lines pushes content down. Shorten it rather than shrink it.
  5. Repeat at 768 and 1440Tablet width is where grids most often break. Check rows are full and cards are equal.
  6. Tap the real thingTouch targets should be at least 44 pixels. Try forms with the on screen keyboard on a real phone.

ProThe three widths, automated. Pro opens the page at 375, 768 and 1440, names each overflow, wrapped label and uneven card with its element, and repeats until clean.

Plan before you buildA one page plan that stops a build from wandering.
  1. Write the goal and the edgeOne sentence for the goal and one for what is out. The edge stops scope growth later.
  2. Split into small tasksOne outcome per task, in build order. If a task needs two checks, it is two tasks.
  3. List the files each task touchesNaming files keeps changes focused and makes a surprise easy to spot in the diff.
  4. Write the check for each taskEvery task ends with a command or an action that proves it. No check, no task.
  5. Agree before you startRead the plan, cut what you do not need, and say yes. Changes now cost a minute.
  6. Update it when it changesWhen you change your mind, change the plan first. A plan that is out of date is worse than none.

ProPlans as files, held by a gate. Pro turns a request into a plan where every task lists files, interfaces and acceptance. The drift gate then compares the work with it.

Undo a bad changeGo back safely with git, without losing the good work.
  1. Stop and lookStop the AI. Run git status and git diff to see exactly what changed before you touch anything.
  2. Save what you want to keepCommit or stash the good parts first. Do this before any undo so nothing is lost by accident.
  3. Undo one fileTo drop changes in a single file, restore it from the last commit. Other files stay as they are.
  4. Undo a committed changeUse revert to add a new commit that reverses an old one. It leaves history intact, which is safe on shared branches.
  5. Avoid the blunt toolsA hard reset and a forced push throw work away or rewrite shared history. Use them only when you are sure and have a copy.
  6. Commit more oftenSmall commits make every undo small. Commit when the project works, before the next prompt.

LiteA hold, and an undo that keeps your edits. Lite holds the risky git commands until you say yes. Pro adds an undo that lists what the AI changed and restores only those files.

Read an error messageFind the line that matters and ask for the right fix.
  1. Find the first line that names a fileSkip the noise at the top. Look for the first path inside your own project, with a line number.
  2. Read the message itselfThe words after the error name say what failed, such as "cannot find module". That is the clue.
  3. Note when it happensDoes it fail on start, on a click, or only for some input? When it happens narrows where.
  4. Copy the whole errorGive your AI the full text, the command you ran and what you expected. A paraphrase loses the clue.
  5. Ask for the cause, not a patchAsk why it happens first. A fix that only hides the message leaves the cause.
  6. Check the fix with the same actionRepeat what failed. Then try a nearby case to be sure you did not move the problem.

LiteDoctor first, then a proper diagnosis. Lite includes adams doctor, which checks the Adams install and lists fixes. For a bug in your own code, the diagnose flow is Pro and follows reproduce, find the cause, fix it, and add a check.

Launch checklistThe checks that matter on the day a project goes live.
  1. Secrets are cleanNo keys in code or history, env files ignored, live keys only in your host settings, and test keys swapped out.
  2. Pages hold at three widthsOpen every important page at 375, 768 and 1440 pixels and press every button.
  3. Money paths are testedRun a full purchase in the provider test mode, including a failed card and a refund.
  4. Errors are visibleMake sure you will hear about a failure. Check logs and set one alert for errors.
  5. Backups existConfirm the database can be restored. Try a restore once. An untested backup is a hope.
  6. You can roll backKnow the previous good version and the command to return to it. Write it down where you can find it.

ProA launch flow with proof. Pro includes a launch flow that lists these checks, runs the ones it can, and shows the real output so a skipped check is never read as a pass.

Keep the AI on planStop one request from becoming a rewrite.
  1. Name what is out of scopeSay what the AI must not touch. A short list of folders or features works better than hoping.
  2. Keep the plan in a fileA plan in a chat scrolls away. A plan in the project can be reread at any time.
  3. Ask for a change summaryAfter each step, ask what changed and why. A summary longer than expected is a sign of drift.
  4. Review the file list firstBefore reading code, read the list of changed files. An unexpected name is the quickest drift signal.
  5. Park new ideasWhen a good idea appears mid task, write it down for later instead of folding it in.
  6. Reset on a long chatWhen a conversation gets long, start fresh with the plan and a short handoff rather than pushing on.

ProA gate that asks. The drift gate in Pro compares the work with the plan and asks when it leaves it. You extend the plan or go back, and the decision is recorded.

Write a CLAUDE.mdStanding instructions that every session reads first.
  1. Say what the project isTwo lines: what it does and the stack. This saves the AI from guessing.
  2. List the commandsHow to install, run, test and build. Commands the AI can copy exactly are the most useful lines.
  3. State the rules that matterThe few things that must always hold: a style rule, a folder not to touch, a language for copy. Be specific.
  4. Leave out the obviousDo not explain what the AI already knows. Long files dilute the lines that count.
  5. Treat it as guidanceThe file is context, not enforcement. For a rule that must never be broken, use a check that blocks the action.
  6. Prune it every monthDelete lines that no longer apply and add the correction you keep repeating. A short current file beats a long stale one.

ProRules that come from your corrections. Coach in Pro turns the corrections you repeat into short rules every session receives, and lets you keep, forget or add one. It complements a CLAUDE.md file rather than replacing it.

Hand off between sessionsA note that lets tomorrow start where today stopped.
  1. Write what is doneList what works now, in plain words. Include what you checked, so it is not rechecked.
  2. Write what is openList what remains, in order. The first item is where the next session starts.
  3. Write what you decidedRecord choices and the reason in a line, especially the ones you rejected, so they are not proposed again.
  4. Note the trapsAnything that surprised you: a flaky test, a file that looks safe to delete and is not, a setting that must stay.
  5. Save it in the projectPut the note in a file in the repository. A note in a chat is gone with the chat.
  6. Start the next session from itOpen with "read the handoff and tell me the first step". Correct any misreading before work begins.

ProThe handoff written for you. Pro writes the handoff from what happened in the session, saves it in the project, and reads it back at the start of the next session.

See it block something

Install Lite, commit a test key and read the verdict yourself. Pro is $9 a month or $79 a year.

Install in one line

curl -fsSL https://getadams.com/api/install | sh