Appearance
CLI Reference
The ai-boost CLI manages projects, repositories, and API keys on the ai-boost server. Any developer who has been invited can use it, not just a designated admin.
Was your project set up with the Laravel adapter?
metadevs/ai-boost-laravel is retired and archived read-only — there is no longer a choice to make between the two. Run ai-boost init in such a project and it converts the setup. The table maps what the adapter used to do onto the CLI, for repositories that still have it installed:
ai-boost CLI | Laravel adapter (retired) | |
|---|---|---|
| Install | One binary on your machine — Install the CLI | composer require --dev — per project, ran in Docker |
| Runs on | Your local machine | Inside the project's Docker container |
| Purpose | Setup, keys, indexing, analytics | MCP server + ai-boost:init/index/status Artisan commands |
| When needed | Once per machine | Once per developer machine, then automatic |
sh
curl -fsSL https://aiboost.metadevs.de/install.sh | shThe binary carries its own runtime — nothing else to install, and nothing to configure to reach it. Windows and the full first-run walkthrough: Install the CLI.
init
Set a repository — or a whole folder of them — up end to end.
bash
ai-boost init [path] [options]| Argument / Option | Required | Default | Description |
|---|---|---|---|
path | no | current directory | Repository, or a folder containing several |
--project, -p | no | the folder's name | Existing project slug to register under; checked, so a typo fails at once |
--name | no | the folder's name | Name for the project being created — only when the run produces one project |
--skip-index | no | — | Set everything up but don't index yet |
--yes, -y | no | — | Take the default answer to every question (for CI) |
--all | no | — | Set up every project found under this folder, not just this one — required with --yes when more than one is found |
--only-here | no | — | Set up this folder and the repositories directly in it, ignoring sibling folders that hold their own |
--no-hooks | no | — | Do not register the Claude Code lifecycle hooks or the post-commit re-index |
--parallel-work, --no-parallel-work | no | — | Let Claude work several agents at once here without asking — this spends several times the tokens — or keep it to one agent at a time. See parallel |
--rtk, --no-rtk | no | — | Install rtk and register it for this repository without asking, or never offer it; ai-boost works identically without it |
--rtk-version | no | the latest published | Install this rtk version instead |
--approve-mcp, --no-approve-mcp | no | — | Answer Claude Code's per-project questions for these folders without asking — trusting a folder loads every server in its .mcp.json, not only ai-boost's — or never touch Claude Code's config and allow the server by hand |
--reindex | no | — | Index every repository even where the server already holds usable coverage for it |
--laravel-boost | no | — | Install laravel/boost into a Laravel project; init never offers it on its own |
--connect=<atlassian|gitlab|all|none> | no | — | Configure those providers' MCP servers — the only way to reach it, since init does not offer it; none records a decline |
--no-connect | no | — | Never offer a provider connector; ai-boost works identically without one |
--gitlab-host=<url> | no | — | The GitLab instance to configure, when this project's remote does not name one (https://gitlab.example.com) |
--mod, --no-mod | no | — | Install the ai-boost mod for Claude Code into these folders — opt-in, and later runs keep it up to date — or remove it and forget it |
--no-browser | no | — | When signing in, print the URL instead of opening it — open it on any device. See auth:login |
Passing --mod and --no-mod together is refused: --mod and --no-mod contradict each other; pass one.
init signs you in itself the first time you run it — see auth:login; the --no-browser row above is the same option. An unattended run (--yes, or no terminal) is the exception: sign-in needs a human at a browser somewhere, so it stops and says so rather than half-finishing.
Everything it needs it reads from the directory: the git remote, the repository name, and the stack. For each repository it finds it enrols you in the existing registration when a teammate already made one — matched on the git remote — and registers it otherwise, then writes the shared key to .env (or .env.local when git tracks .env) and your personal key to .claude/settings.local.json, and indexes. It never edits a tracked file for this: every file init generates, plus the secrets (.env, .env.local, /.ai-boost, /.claude/settings.local.json, /.claude/worktrees/), is kept out of git status through .git/info/exclude, which every worktree of the repository shares, and a parent folder that is not a repository gets no .gitignore. A repository that tracks its own ai-boost files is treated as a team repository: those files are not hidden, and secrets are hidden unless git already tracks them (an exclude line hides a file from git status; it does not stop git add -f). A tracked .claude/CLAUDE.md without our block is left untouched, and the block goes to .claude/rules/ai-boost.md.
Where to run it
init reads the folder you give it and works out what it is. There are three shapes, and it handles all of them in one command:
| You are standing in | What happens |
|---|---|
| A repository | It is set up on its own. |
| A folder of repositories | One project across all of them, with a project-scoped key — so one question is answered from every repository at once. |
| A folder of project folders | One project per child folder, each with its own key and its own cross-repository search. |
The third is the shape an agency or a company folder has: one directory per client or product, each holding that product's repositories. A folder can be both at once — some repositories of its own, plus a project folder beside them — and both are set up in one run.
When more than one project comes out of a single run, init shows what it found and asks before doing anything:
Found 4 repositories in 2 projects:
meta (here) — ai-boost, ai-boost-cli
acme.io (acme.io/) — api, web
Set these up, one project each? [Y/n]
Rename any of them? [y/N]Names default to the folder's, which is usually what people call it. A project's name cannot be changed afterwards, so this prompt is the moment to correct it — or pass --name when the run produces a single project. Standing in a repository, or in a plain folder of them, is unambiguous and asks nothing.
A folder of projects gets no search server, deliberately
A key covers one repository or one project — never a set of projects — so a server at that level could not answer from any of them. That folder gets a short CLAUDE.md naming each project instead, and you open Claude Code inside the project you are working on.
Repositories deeper than one folder of projects are reported rather than searched for, so a search that legitimately cannot see them never reads as a broken index.
Three setups, chosen per directory
What comes next depends on what's in the directory, because the directories differ.
| Where | Setup | What gets written |
|---|---|---|
| Any repository, any stack | basic | .mcp.json on that repository's own key, .claude/settings.local.json, an ai-boost section in .claude/CLAUDE.md, and a /ai-boost skill |
| The folder holding several | workspace | .mcp.json on the project key, CLAUDE.md with the layout, a path-scoped rule per repository in .claude/rules/, and a /ai-boost-cross-repo skill |
Every repository takes the basic path, whatever its stack: no package, no runtime and no background process — see Connect without an adapter for what those files contain.
There used to be a fourth setup: adapter
init once offered to install metadevs/ai-boost-laravel on a Laravel repository and let the package own .mcp.json, the instructions and the hooks. The package is retired and nothing chooses that setup any more — there is no --adapter or --no-adapter flag, and no prompt.
The strategy name survives in one place only: a manifest written by the old package still records adapter, and init reads it so it can recognise such a repository and convert it, rather than silently writing the CLI's own files over the package's.
init never adds laravel/boost on its own. Pass --laravel-boost to install it into a Laravel project — an unrelated Laravel package giving the session a database inspector, log reader, route listing and documentation search. A project already running boost is left alone, and without composer on your PATH it says so and prints the commands rather than guessing at a containerised invocation.
Hooks
init installs hooks on every stack; --no-hooks skips them. They are what keeps the index current and the feedback loop closed — something only Laravel projects had while the adapter was the way in.
| Hook | When | What it does |
|---|---|---|
SessionStart | a session opens | Warns if no key can be found — otherwise every MCP call 401s with nothing to say so. Otherwise nudges the agent to orient with the ai-boost tools before grep. At most once a day per repository, it also starts the automatic re-index in the background, which catches up an index more than 20 commits behind the default branch; the hook waits on nothing for it. |
UserPromptSubmit | every prompt | The first prompt records which files were already modified, so "did this session write code" is answerable later. Each prompt may add pushed context. After a compaction it restates what the session start said, and it says once when the project's workflow changed (ai-boost · workflow updated to v<N>). |
PreToolUse | Bash, and agent and skill calls | Never blocks the grep. Once per agent context, when a grep carries a natural-language question, adds one line of context pointing at search_code_patterns; it also records the tree before a shell command so edits can be attributed, and applies the workflow's agent rule when enforced; records a workflow invocation made through the Skill tool. |
PostToolUse | every ai-boost tool, record_agent_feedback, Edit, Write, MultiEdit, NotebookEdit, Bash, Agent, Task and Read | Notes that feedback was recorded, that the index was consulted, and which files a turn edited, and checks the policy_version. |
PostToolUseFailure | .*record_agent_feedback, Agent, Task and Bash | Records that a feedback call failed and why, and that a sub-agent could not run; a failed call never reaches PostToolUse. A shell command that exits with an error still counts the files it changed as the session's own. |
PreCompact | a compaction starts | Asks the compaction summary to keep the session id, and gives the one tool-search call that loads the ai-boost tools again afterwards. |
SubagentStart | a subagent starts | Tells it what the session was told — a subagent never receives SessionStart, so without this the agent most often delegated a search was the one least likely to know an index existed. |
SubagentStop | a subagent finishes | Counts it by role (planner, worker, reviewer, search or other, taken from the agent's type, never its name), so delegated work is visible — the Stop line then reads "1 worker and 1 reviewer finished", only for what is new since its last line (CLI 3.86.3 or later). It never blocks: several subagent types have no ai-boost tools, so asking one for feedback would stall it for nothing. |
PostCompact | a compaction finishes | Records that it happened. A compaction summarises away what SessionStart injected, so long sessions quietly stop using the tools; this event is the only place that is observable, and it cannot inject anything itself — the next UserPromptSubmit restates it, once. |
SessionEnd | the session goes away | Reports usage one last time. Stop only fires when a turn ends, so a session killed mid-turn spent tokens nothing recorded. Shares Stop's watermark, so the usual case is a no-op. |
Stop | the session tries to end | If code changed and no feedback was recorded, holds the session open and asks for it — naming how much of it was delegated, when any was. |
git post-commit | you commit | Re-indexes what was committed, in the background. |
git post-merge | you pull or merge | Re-indexes everything the merge brought in, in one pass (--since=ORIG_HEAD). Without it, a teammate's code reaches your checkout but never the index. |
On Team and Enterprise plans, Claude Code's built-in security plugin keeps some events from user mods. Since CLI 3.50.2 the ai-boost mod and hooks keep the session facts through an automatic compaction there. This was measured in non-interactive runs; manual compaction and interactive sessions were not measured.
An exit code cannot tell you whether a hook event exists
Every ai-boost hook <event> exits 0, on purpose — a hook is not a place to interrupt a developer over a problem that belongs to us — and since 2.2.0 that includes an event this build has never heard of, which exits 0 with the complaint on stderr so it does not print after every turn for anyone a release behind.
The consequence is that ai-boost hook subagent-start; echo $? prints 0 on a binary with no such event. It looks like a hook that ran. Ask what the binary actually supports instead:
sh
ai-boost hook not-an-event # stderr lists every event this build dispatches
ai-boost doctor # "Session hooks — N registered", per directoryWorth knowing before upgrading a project: after an upgrade, the next session start brings the hook entries up to date in place, in the file they already live in (ai-boost converge, run in the background). Until then doctor can show fewer registered than expected.
The git hooks leave evidence when they fail. A background re-index that errors — or a hook that could not find the ai-boost binary at all — writes the reason and a timestamp to .ai-boost/last-index-error.log, and a later successful run deletes it. Without that file the failure was perfectly silent: the hook exited 0, and doctor reported "Re-index on commit ✓" for a hook proven to be a no-op, because that check only asks whether the file exists and is executable.
The Stop hook only asks about files the session wrote itself or committed itself that still differ from the baseline, and only if they count as a change: any changed file does, except a binary file and a file the indexer always leaves out (lockfiles, secrets, generated files, skipped directories) — a session that read code, that only pulled, fetched or checked out, or that only touched a lockfile, ends without being asked for anything. When the session's changes cannot be attributed, nothing is added. Two known limits: commits made elsewhere under the same git email and then pulled still count, and a file that was already dirty when the baseline was taken never counts, even if the session edits it. A session that genuinely has nothing to record is not asked to print a token: the ask tells it to say so in one sentence and finish, and a reply that records no feedback counts as a decline, so that work is not asked about again. (SKIP_FEEDBACK in the final message, written before the ask, is still read as a skip, but the ask no longer mentions it.) Enforcement gives up after two attempts, so a session that cannot record feedback (offline, revoked key) can still end. The server counts the asks, skips and give-ups a CLI reports with a session's usage, per project: GET /api/v1/projects/{slug}/analytics returns feedback_asks, feedback_skips and feedback_abandoned_sessions, and they stay 0 for sessions of a CLI that does not send them.
No shell scripts, and no interpreters
The entries call the ai-boost binary directly (ai-boost hook stop). The Laravel adapter writes four shell scripts into the project instead, which need bash, jq and python3 — three things a Windows machine doesn't have. Nothing is written into your repository except the settings entries themselves.
Pushed context
On by default: when you send a prompt, the hook adds the code and conventions relevant to it before the agent asks. If a prompt looks like it holds a secret, nothing is sent. That lookup sends the first 500 characters of the prompt to the ai-boost server, which embeds them with OpenAI; a pushed lookup never goes to a chat model — see What leaves your machine. It waits at most 2 seconds (6 seconds before CLI 3.49.0); a lookup the server cannot answer in time goes through with no context, and the lookup pauses by itself if the server stops answering. Messages from background tasks and other agents are never looked up. Set AI_BOOST_PUSH_CONTEXT=0 (also false, off or no) to turn it off. Some sessions may be held out of pushed context for a measured comparison; the session is told when it starts. Setting AI_BOOST_PUSH_CONTEXT yourself (1 keeps it on, 0 off) leaves your sessions out of any such comparison.
The folder itself
In a folder of repositories init also:
- issues a project-scoped key, so one
ai-boostserver answers from every repository at once and labels each result with where it came from; - writes a
CLAUDE.mddescribing the layout — Claude Code loads a subdirectory'sCLAUDE.mdonly once it reads a file there, so a session started in the parent folder would otherwise not know the other repositories exist; - writes
.claude/rules/ai-boost-<repo>.mdper repository, scoped withpaths: ["<repo>/**"], so that repository's context loads the moment Claude touches a file in it; - adds a
/ai-boost-cross-reposkill for work that spans folders — which a per-repository skill cannot do, since it isn't loaded at all until Claude has already opened a file in that repository; - names any per-repository
ai-boost-*server the project-wide one supersedes, so the agent doesn't see the same tools several times over.
In a folder that groups other projects it writes the map described above and nothing else — no key, no .mcp.json, no hooks. doctor run there reports it as exactly that, and names the project folders to open Claude Code in instead.
Share the setup with your team
--team sets the shared setup up to be committed. The hooks go into .claude/settings.json, and ai-boost's files stay visible to git. The files that hold your key stay hidden. A teammate who has not installed the CLI gets no hook errors, because the committed hooks do nothing without it.
Without --team, init writes local files only. If the hooks cannot be written to the shared file, init says so and keeps them local. ai-boost doctor shows which mode a folder is in.
Keep your own status line
If you already have a status line in your user or shared settings, --statusline-compose shows ai-boost's line under yours. Your own entry is not changed. --no-statusline-compose turns it off again, and yours shows alone. If your status line is in .claude/settings.local.json, init leaves everything as it is and says where to move it. The two flags cannot be used together.
Re-running
Re-running is the normal case — a teammate joining, an upgrade, a project already set up — and it changes as little as possible:
- Keys already issued are reused, never reissued. Nothing new appears in
key:list. - Only the region between
<!-- ai-boost:start … -->and<!-- ai-boost:end -->is rewritten. Everything you wrote around it is untouched, and aCLAUDE.mdwith no marker gets the section appended rather than merged into your prose. - Generated files carry an
ai-boost:generatedstamp. Delete the stamp and the file is yours —initreports it as kept and stops touching it. That's the escape hatch, and it needs no flag. - An existing
.mcp.jsonis merged, so another team's servers survive.
Each run ends with a table of which setup every directory got and which files actually moved.
refresh
Rewrite this project's generated instruction documents from the current templates.
bash
ai-boost refreshRewrites .claude/CLAUDE.md's ai-boost block, the /ai-boost skill and the ai-boost-scout agent, and nothing else — no sign-in, no network, no hooks, no indexing. Use it after upgrading the CLI when doctor reports the generated documents are behind.
It replays what .ai-boost/onboarding.json recorded, because a workspace's per-repository stacks come from the server and cannot be re-derived offline. A directory with no record asks you to run init once rather than guessing a stack and writing the wrong conventions into a project.
It does not write .mcp.json or .worktreeinclude. Those come from init, which is safe to re-run — see Re-running.
Only the region between the markers changes, so your own prose in CLAUDE.md survives. Review the diff and commit it.
sync
Fetch this project's custom source instructions from the server and put them where your sessions read them.
bash
ai-boost syncA project's owners can write, per connected source, how this team's agents should work with it — quote the issue key in commits, treat a closed issue as history, never propose a transition. They write it once in the portal; this is what brings it to a machine.
| Needs | the folder's own API key, already written by init |
| Writes | .ai-boost/knowledge-instructions.md |
| Asks for | nothing — no sign-in, no questions |
You rarely run it by hand. Three things start one for you, and between them an edit in the portal reaches a machine quickly without anything polling:
| Trigger | When a change lands |
|---|---|
A policy_version in any ai-boost tool response differs from the local stamp | Within one tool call — the PostToolUse hook is handed that response already, so this costs no request |
SessionStart, if no sync completed in the last 15 minutes | At the next session start |
| The local copy is missing or edited | Immediately, bypassing the throttle |
The first is the one that matters. Every ai-boost answer carries policy_version — the identity of the project's whole instruction policy, read from the rows on that call — so a session that is using the sources notices a change on its very next search. A deletion propagates identically: none is a version, not an absent field.
Repairs are rate-limited to one per minute per folder, on the machine rather than per session, so several open sessions spawn one sync between them.
Three events deliver them, because one is not enough: SessionStart at the top of a session, SubagentStart because a subagent never receives SessionStart and searching the project's sources is the most delegated task there is, and the first prompt after a compaction — which summarises them away in exactly the long sessions that have been working with a source for hours.
A locally edited or deleted copy is not used. The stamp records a digest of what the last sync wrote, so a document that no longer matches it is reported to the session as unavailable rather than handed over as the project's, and a repair is started immediately instead of waiting out the throttle. Nothing here is tamper-proof — it is your machine — but an owner's instruction cannot be quietly edited into something else and still be presented as theirs, and the copy returned by search_project_knowledge cannot be edited locally at all. A sync overwrites local edits: unlike the generated .claude/ documents, there is no "delete the stamp and it is yours" escape hatch, because these are the project owners' policy rather than your team's own conventions.
A silence is never a deletion. An unreachable server, a refused key or a body that will not parse all leave whatever is already on the machine exactly as it is. Only the server actually answering that there are no instructions removes the local copy — which is what makes clearing the textarea in the portal a real withdrawal.
The file is machine-local and git-ignored, on purpose. The server owns this text: committing a copy of it would mean every developer resolving conflicts between copies fetched at different minutes. Nothing loads it on its own either — the SessionStart hook is what puts it in front of a session, which is why it arrives even in a folder whose CLAUDE.md was never opened.
Where the policy actually carries weight. Three channels, and they are not equal:
| Channel | What it is | Weight |
|---|---|---|
The ai-boost MCP server's initialize handshake | The server's own description, in the system-prompt region, before any tool runs | This is the one a session follows |
This file, injected by the SessionStart / SubagentStart hooks and after a compaction | Session context on this machine | Followed, and as fresh as the last sync |
Beside the results of search_project_knowledge | The applicable rule, visible while a citation is being weighed | Reference, not an order |
The third is deliberately limited. A tool result is not an operator channel — Anthropic's own guidance is that role: "system" is the non-spoofable one and that the same words in a tool result carry no such weight — and this server returns Jira issue bodies. A client that honoured instructions found in tool results could be steered by anyone able to file a ticket. So the policy rides the handshake, and the copy beside the citations says in its own note field that it is reference. A developer who has never synced still receives the policy: it is on the handshake their client already performs.
The same policy arriving twice is not two policies. All three channels carry the same policy_version string, produced by one value object on the server. Equal versions mean the session is holding one rule that reached it by two routes; different versions mean the tool-result copy is the newer one — it was read from the row on that call, while the handshake copy was read when the session connected — and the note says exactly that.
Instructions are advisory. Anything that must hold belongs at the tool layer.
This is the standing advice in the MCP security literature — do not rely on prompt instructions to restrict what a tool can do; enforce it where the tool executes, because an instruction is something a model weighs and a gate is something it cannot route around. It applies to your own policy text as much as to an attacker's.
In practice that splits a project's rules in two. "Quote the issue key in the commit message" and "treat a closed issue as history" are judgement, and instructions are the right mechanism — they reach every session by three routes and are followed the overwhelming majority of the time, but "always" is not a property any instruction channel has. "Never transition a Jira issue from a session" is not judgement, and here it can be made structural: this server's Jira write tools are comment_on_issue, edit_comment, edit_issue, create_issue, transition_issue and apply_jira_changes (which batches the others), and each is refused unless a project owner granted that capability for that Jira project — transitioning is its own grant, off by default (see Jira write tools). When a rule matters that much, ask whether it can be made structural instead of asked for.
evaluate
Have the server judge a session that recorded feedback.
bash
ai-boost evaluate <session-id> [--path=<dir>] [--key=<key>] [--heads=<json>] [--files=<json>]| Argument / Option | Required | Default | Description |
|---|---|---|---|
session | yes | — | The session id to judge |
--path | no | current directory | Repository the session belongs to |
--key | no | the repository's .env, then $AI_BOOST_KEY | Repository API key |
--heads | no | — | Passed by the Stop hook; you do not need it by hand. A JSON map of repository prefix to the commit the round started on, so the diff does not depend on state it is racing |
--files | no | — | Passed by the Stop hook; you do not need it by hand. A JSON list of the files that are this session's own, prefixed by repository, so the diff leaves other sessions' work out. Without it, the diff is every change in the folder's repositories since the session's last recorded round, committed or not, plus untracked files, other sessions' included, up to the diff limit; the Stop hook sends every file changed since the session's baseline when the folder's hooks cannot see the session's edits |
A session scores itself, and a self-assessment is the one number you can't take at face value — the judge is a second opinion, and the gap between the two is what says whether a session's own scores mean anything. The Stop hook runs this automatically in the background; the command exists so a session can be re-judged by hand.
The key must be repository-scoped. A project key is refused with 422, because a judged session belongs to exactly one repository.
A session that recorded nothing but a number is declined rather than judged — 422 with "status": "not_judgeable", and no judge call is made. With no notes, no task description, no diff and no attributed tool use, the only thing the judge would have to read is the session's own claim, so it returned that claim back unchanged: 0.30 was judged 0.30, 0.95 was judged 0.95, and the 0.95 row became a golden eval and the top example later sessions were taught from. Give it something to weigh — notes, a task description, a diff, or a session_id on the retrieval calls so the tool use is attributed to the session.
A session recorded as research, investigation, review or audit is judged without its diff: the CLI may send one, the server does not pass it to the judge and records diff_bytes: 0.
parallel
Answer the parallel-work question on its own, for whoever skipped it during onboarding.
bash
ai-boost parallel [path] [--off] [--yes]Run it in the folder you open Claude Code in.
init asks this during onboarding, and for a while that was the only place it could be answered — which left two ordinary situations with no way forward. A developer who ran init --yes, or piped it in CI, was never asked; one who declined at the prompt had made a decision the tool then remembered. The only route to changing either was re-running all of onboarding interactively, through keys, indexing and adapter prompts, to reach one confirm.
This is that one question with nothing else attached: no key work, no index run, no adapter.
| Option | |
|---|---|
path | Directory to configure. Defaults to the current one. |
--off | Keep Claude to one agent at a time here. |
--yes | Turn it on without asking, for scripting. |
On a folder holding several repositories it also installs the WorktreeCreate hook. That hook is the only way a session there can be given a checkout of its own: Claude Code asks git for a worktree, and a folder of repositories is not a git repository. In a plain repository no hook is needed — Claude Code's own worktree support handles it, and parallel writes .worktreeinclude so the git-excluded files a fresh checkout would not have, including the repository key, are carried in.
Turning this on lets Claude run several agents at once, which spends several times the tokens. That is why it is a question rather than a default, and why init --yes declines it rather than assuming.
ai-boost doctor reports what is configured here, and doctor --fix writes the same four pieces through the same code path — there is one implementation of what "configured for parallel work" means, not three.
The four pieces
Named here because "what did this actually change on my machine" is a fair question, and because each one is separately recoverable if something else already owns it.
| Where | What it is | |
|---|---|---|
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS | env in .claude/settings.local.json | The switch itself. Git-excluded and personal — how many agents you are willing to pay for is a fact about you, not about the repository everyone else clones. |
worktree.baseRef | .claude/settings.local.json | What a new worktree branches from: head, not the remote's default branch. |
.worktreeinclude | repository root | The git-excluded files a fresh checkout must be handed. Without it the session in that worktree cannot boot the app, and every ai-boost tool answers 401. |
WorktreeCreate / WorktreeRemove hooks | .claude/settings.local.json | Only on a folder holding several repositories, which is not itself a git repository and so cannot be given a worktree by git. A plain repository needs no hook. |
0 is a real answer, not an absent one. Declining writes the variable set to 0 rather than leaving it out, which is what stops the question being asked again on every run — and it also overrides a shell export, so a decline here holds even where the variable is set globally.
AI_BOOST_WORKTREE_DIR
Where worktrees are created for a folder of repositories. Defaults to a directory beside the workspace. Set it to move them somewhere else — a faster disk, or off a synced folder:
bash
export AI_BOOST_WORKTREE_DIR=/tmp/ai-boost-worktreesRemoval refuses any path it did not create, so pointing this somewhere unexpected makes cleanup decline rather than delete.
Status line
init installs a Claude Code status line, the one place that adds up a session's use of ai-boost. It shows in Claude Code in a terminal. Other places are not checked yet. Left to right, it shows:
- Index age, for example
index 15h. From 3 days old it turns yellow and names the fix,index 4d — ai-boost index; from 14 days it turns red. - Lookups this session, shown at zero too.
N/M read: of the files ai-boost pointed to, how many the agent then opened. It is absent when nothing was pointed to.feedback ✓ (round N)once this session has recorded feedback.⚠ mod off for this session — /reload-plugins, only when the ai-boost mod is installed here and not running for this session.
Without a key the whole line is ⚡ ai-boost no key — run `ai-boost init` .
The lookup count is the number worth watching: a session with the tools available and zero lookups is the failure mode that cannot otherwise be seen — measured platform-wide as 7 of 34 sessions having called a tool at all — and from the transcript "no calls" looks exactly like "nothing to look up".
The index age is read from .ai-boost/last-index.json, written locally by ai-boost index, so the line costs no network call on redraw.
A status line you already have is never overwritten. init checks the three settings files Claude Code merges and, finding one it did not write, leaves it alone and says so. ai-boost doctor then reports which of the three states you are in — ours, yours, or none — under Status line, because "not installed" and "installed but someone else's" have different remedies and used to be reported identically, as silence.
ai-boost hook:statusline is the command behind it, and ai-boost hook:subagent-statusline is the one behind the subagent rows below; the editor invokes both, not you.
Subagent rows
Every init that installs the session hooks writes Claude Code's subagentStatusLine, pointing at ai-boost hook:subagent-statusline, unless the folder uses the mod: since CLI 3.80.2 init does not write it when the mod is on. In that case init removes the entry it wrote earlier from .claude/settings.local.json only; an entry in the shared .claude/settings.json is reported, not touched. Where written, it draws one row per running or finished subagent: a status glyph, the agent type, the model family, the elapsed time while it runs, a context bar with the token count, and the agent's label.
The rows follow Claude Code's reduced-motion setting, and use plainer glyphs when it is on.
The same never-overwrite rule applies. When another command already owns the subagent rows, init says so and leaves it:
Subagent rows left as they are — `<command>` already owns them. Append `<ours>` to that command to see ai-boost there too.The ai-boost mod
An optional add-on that ships inside the CLI. Type /boost and a live pane shows what Claude, its agents and ai-boost are doing, at three levels: Minimal, Standard and Full. From the pane you can ask ai-boost a question yourself (/boost ask), rate the results of a lookup, and, as a manager or admin, see your team's sessions live (/boost team). It also keeps three ai-boost read tools loaded (prepare_task, search_code_patterns and search_commit_history); the others load through one tool-search call when a session needs them. Nothing the hooks do depends on it. It works in Claude Code in a terminal, with the keyboard, and in the Code tab of the Claude desktop app, by clicking. The IDE extensions are not tested.
It is opt-in, per developer and per folder. It is not on by default; folders where you do not turn it on are unchanged. A project owner can turn it off for the whole project.
Turn it on
bash
ai-boost update # the pane needs ai-boost 3.80.2 or later
ai-boost init --mod # in the folder; then start a new sessionIt needs Claude Code 2.1.323 or later. A successful run prints:
ai-boost mod <version> installed for Claude Code in a terminal and the
Code tab of the Claude desktop app (local scope): three read tools in
front, session id automatic. Restart Claude Code, or open a new session in
the desktop app, to load it. IDE extensions are not tested yet.(One line in the terminal; wrapped here.)
It installs per folder (local scope), and later init runs keep it up to date. In a folder ai-boost does not know yet, init also registers it as a project and indexes it, unless you add --skip-index.
The first time, Claude Code asks whether you trust the folder. Say yes. It then asks about the new MCP server ai-boost: choose Use this MCP server. The pre-selected answer, Continue without using this MCP server, lists ai-boost under disabledMcpjsonServers in the folder's .claude/settings.local.json, and the session then has no ai-boost tools. To undo it, remove ai-boost from that list and start a new session. ai-boost doctor from CLI 3.80.2 reads the folder's settings files and reports it; older CLIs said Claude Code may use ai-boost. Then send a first message and type /boost; a mod's commands are listed once the session has started.
Keys in the terminal
Press ctrl+x then tab to give the pane the keyboard; it is a toggle, so pressing it again gives the keyboard back to the prompt, and Esc does too. With the keyboard on the pane, u lists the keys. w (workflow) and q (quality) open their pages only in a wide pane; g opens every page in any layout. On the Ask page the question field takes every letter; Tab leaves it.
All pages and keys
One key opens each page while the pane has the focus; g lists every page, agent, file and issue and u lists every key. w and q open their pages only in a wide pane; in a narrow layout use g.
| Page | Opens with | What it shows | What you can do there |
|---|---|---|---|
| Home | h | What Claude is doing now, the running agents, the last lookups, the session's context use, anything that needs you, and the last lines of the log | Open an agent with 1 to 3; freeze the view with f |
| Workflow | w in a wide pane, or g | Every agent of the run, one lane each, with its step (plan, build, review), how long it has run and its timeline | Open an agent's own page |
| An agent | from Workflow or g | Its task, model, time, what it asked ai-boost, the files it edited, and a reviewer's findings | o shows only its lines in the log; v opens its conversation |
| Retrieval | r | Every ai-boost lookup: what was asked, how many results, how many Claude opened, how long it took | Open a lookup and rate its results with y and d |
| Jira | j | The session's issues and every Jira change, with those waiting for your yes | Open an issue |
| Changes | e, once a file changed | Every file edited, lines added and removed, the last test run | v puts a review request in your prompt box |
| Quality | q in a wide pane, or g | The judge's score and what it saw, whether feedback is recorded, and the index state as of the session's last search | c puts the feedback request in your prompt box |
| Log | l | The session line by line: you, Claude, each agent, ai-boost | a steps back to an earlier moment |
| Time | t | Where the turn and the run spent their time | |
| Receipt | x, once a run has ended | The last run on one page | b goes back |
| Ask | /boost ask or g | Your own question and ai-boost's answer | attach a result to your prompt; Tab leaves the question field |
The /boost words
Every word below answers in mod 2.7.3. Where a pane is open, a word that opens a page opens it; at Minimal, and over Remote Control, it answers in transcript lines instead.
| You type | What happens |
|---|---|
/boost or /boost open | Opens the pane and prints the session's facts |
/boost close | Closes the pane |
/boost view minimal|standard|full|default | Sets the level for this session. Minimal is the status line, and one line over each group of ai-boost lookups; Standard is a band above the prompt while agents run or something needs you, and nothing there otherwise, a quiet ai-boost row under the tool calls, answers and prompts it touched, and the pane on /boost; Full is the same rows, and the live pane opens by itself. default returns to the level set in the mod's settings (Standard unless you changed it) |
/boost ask <question> | Asks ai-boost. The answer is shown to you on the Ask page; Claude does not see it. Without a question it says how to use it |
/boost team | Managers and admins: the sessions active now. Where the view is not available to you, it says so |
/boost time | Where the turn and the run spent their time |
/boost mission | The session's Jira issue with its criteria and evidence |
/boost debrief, /boost debrief save | The session on one screen; save it as a file |
/boost demo | Replays a sample plan, build and review run for about 30 seconds. Nothing is asked of ai-boost |
/boost demo solo|long|problems|again|stopped | Sample sessions: Claude alone; many turns with an agent waiting for your approval; a failed call; two runs back to back; a worker that fails and one you stop |
/boost demo team | A sample team of six sessions at Acme |
/boost demo mission, /boost demo debrief, /boost demo depth | A sample mission (ACM-315) with its criteria, evidence, plan and debrief; a sample session in depth |
/boost notify on|off|default | A system notification when an approval or Claude's question has waited 20 seconds |
/boost motion full|calm|off|default | How much moves: full pace, half pace, or still |
/boost position auto|bottom|default | Where Full sits: beside the conversation when there is room, or above the prompt |
/boost delivery [KEY-123], /boost production | The merge requests and pipelines of a ticket, and what runs in production. They work once your project has delivery status switched on; until then they say so |
/boost guards | The project's rules for agents and what they did. Works once your project has rules switched on; until then it says the project sends no rules |
/boost ledger [on|off] | The facts the mod would add to the session's feedback. Works once your project has it switched on; until then it says nothing is sent. off leaves it out for this session |
/boost presence [on|off] | Who else is changing the same files or ticket; off stops sharing and seeing. On for every project |
view, notify, motion and position change one session only; default clears the change. A word the mod does not know is not an error: it opens the pane like /boost.
Turn it off
- In that folder, run
ai-boost init --no-mod, which printsai-boost mod removed.The choice is remembered: later runs ofai-boost initkeep the mod off there, and onlyai-boost init --modturns it back on.ai-boost uninstallforgets the choice with the rest of.ai-boost/. - For one session only, start
claude --safe-mode. - To roll it back for a whole project, a project owner turns it off in the portal.
If it stops mid-session, the status line says ⚠ mod off for this session — /reload-plugins.
If your organisation only allows the mods it deploys itself, a copy you install yourself does not load; everything else in ai-boost keeps working. Your administrator can deploy the mod through managed settings instead, and doctor then shows it as your organisation's.
Turned off for a project
A project owner can turn the mod off for every developer of the project: on the project page in the portal, Settings, then Turn off for this project. The card shows who turned it off and when, and Allow again lifts it.
With the switch off, ai-boost CLI 3.28.0 or later:
- removes the mod from each folder of that project the next time a session starts or syncs there, or at the next
ai-boost init.ai-boost initprintsai-boost mod removed: this project's owner turned it off in the portal. Restart Claude Code to unload it; everything runs through the hooks. - skips
ai-boost init --modwithai-boost mod not installed: this project's owner turned it off in the portal. Everything runs through the hooks.
A Claude Code session that is already open keeps the mod loaded until it restarts. Older CLIs ignore the switch. Allowing it again does not reinstall anything; each developer runs ai-boost init --mod again.
What doctor says about it
The ai-boost mod line appears in a folder that opted in, and in every folder of a project whose owner turned the mod off. It shows the installed version and scope, or a note giving the reason and the remedy:
| Reason | What to do |
|---|---|
Claude Code is older than 2.1.323, or is not on PATH | Update Claude Code, then run ai-boost init here |
disableAllHooks is set | Remove it from the settings file the note names |
Not installed for the config directory your sessions use (CLAUDE_CONFIG_DIR mismatch) | Run ai-boost init here in a shell with the same CLAUDE_CONFIG_DIR as your Claude Code sessions |
| Disabled in a settings file | claude plugin enable ai-boost-mod@ai-boost-cli |
| A different version from the one this CLI carries | Run ai-boost init here to update it |
| Managed settings files on this machine allow only managed mods | Ask your administrator to deploy it, or carry on on the hooks |
| Deployed by your organisation through managed settings | Nothing; init installs no second copy. If managed settings keep it off, the note names the file: ask your administrator |
| Installed twice, so Claude Code loads it twice | Run the claude plugin uninstall command the note gives; ai-boost init keeps its own copy current |
Installed for your CLAUDE_CONFIG_DIR but not in ~/.claude, which the Claude desktop app reads | Run ai-boost init here to add it there |
Off for this folder: you chose ai-boost init --no-mod | Nothing; ai-boost init --mod turns it on |
| Turned off for this project by its owner, but still installed here | Run ai-boost init here to remove it |
| Turned off for this project by its owner | Nothing; init --mod will not install it while the switch is off |
uninstall removes it too, in a folder that opted in.
Skip a review for one task
These are two phrases you type in a chat message to Claude Code, not commands.
skip review: <reason>skips the workflow's review for the current task. Put it at the start of a line in your own message. The reason is kept for the project's owners. Anything that looks like a secret is replaced first, and the reason is cut at 200 characters. A skip typed by an agent, a scheduled prompt or another session does not count.review this, at the start of a line, asks for a full review of the current change.
Both need a current CLI and the hooks that init installs.
ask
Ask ai-boost a question yourself. The answer is printed for you and never reaches Claude's context. The ai-boost mod's Ask page (/boost ask) uses this command.
bash
ai-boost ask "<question>" [--json] [--path <folder>]It searches your code, commits, docs, lessons from earlier sessions, and the project's Jira and Confluence, and prints each source's matches with their links.
| Argument / Option | Required | Default | Description |
|---|---|---|---|
question | yes | What you want to know, in your own words | |
--json | no | Print the answer as JSON | |
--path | no | current directory | The folder whose key identifies the project |
--session | no | Accepted for the mod; not sent to the server yet |
- A question that looks like it holds a key or password is refused, and nothing is sent.
- It needs the folder's ai-boost key. If there is none, run
ai-boost initthere.
knows
What ai-boost holds about one file: related past feedback from earlier sessions in this project, and, with --issue, the ticket's acceptance criteria. The ai-boost mod runs it after Claude edits or writes a file, at Standard and Full, without a key press: it sends the file's path and the session's ticket key, once per edited file, at most every 10 seconds and 20 times per session, and shows the answer as a quiet line under the edit. That note has not been seen on screen yet.
bash
ai-boost knows <file> [--issue <KEY-123>] [--json] [--folder <folder>]| Argument / Option | Required | Default | Description |
|---|---|---|---|
file | yes | A file inside this folder | |
--issue | no | The session's Jira issue, for its acceptance criteria | |
--json | no | Print the answer as JSON | |
--folder | no | current directory | The folder whose key identifies the project |
- It prints
Related past feedback: …lines, orai-boost holds nothing about <file>. - A path that looks like it holds a key or password is not sent.
- A lesson that could be about a file of any repository is not shown as one about this file.
In the mod, Claude is told nothing by default. The setting Tell Claude what ai-boost knows about an edited file puts the note beside the edit's result for Claude, once per file per session.
team
The sessions of your team that are active now. For managers and admins; it is the same list as the Live team page in the portal. The ai-boost mod's Team page (/boost team) uses this command.
bash
ai-boost team [--minutes <15|30|60|120>] [--json]| Option | Required | Default | Description |
|---|---|---|---|
--minutes | no | 30 | The window: 15, 30, 60 or 120 minutes |
--json | no | Print the answer as JSON |
- It prints
N active sessions in the last M minutes, then one row per session. Where the team view is not available to you, it prints why.
presence
Who else is changing the same files or working on the same ticket. The hooks run it for you; the two switches are yours.
It is on for every project. Your own switches below turn it off for you.
bash
ai-boost presence [--off|--on] [--json] [--path <folder>]- It shares the relative paths of files you changed and your ticket key with the project's members, for 10 minutes at most. Never file contents, prompts or your name.
--offstops sharing and seeing, and removes your entries from the project now.--onstarts again.--jsonprints the switch and the last check, and sends nothing.- In the mod:
/boost presence,/boost presence off,/boost presence on.
rate
Rate one result of an ai-boost call as helpful or not. This is the mod's own command: the pane's yes and no (y and d) run it, and you do not need to run it by hand. A result can be rated for 48 hours, in the session that received it. Ratings are collected to tune which results ai-boost returns; they do not change your results yet.
delivery
The merge requests, pipelines and failed jobs of a Jira issue or a branch. The ai-boost mod's delivery line and its Pipelines and Production pages use this command.
It answers once the server switches delivery status on for your project. Until then it prints Delivery status is not switched on for this server. and nothing else.
bash
ai-boost delivery --issue <KEY-123> [--json] [--path <folder>]
ai-boost delivery --branch <name> [--json] [--path <folder>]| Option | Required | Description |
|---|---|---|
--issue | one of the two | A Jira issue key |
--branch | one of the two | A branch name, instead of an issue |
--json | no | Print the answer as JSON |
--path | no | The folder whose key identifies the project (default: here) |
--session | no | For the mod: names the file the status line reads. From CLI 3.80.4, when the project has mod origin on, it is also sent with the mod's origin, so the server files the poll as the mod's and never as one of the agent's reads |
The CLI and the mod never call GitLab themselves; the server reads it with the project's read-only token (see project:delivery-token).
hook
Internal. Called by Claude Code through the entries init writes into .claude/settings.json or settings.local.json — not something to run by hand.
bash
ai-boost hook <event>The events are session-start, subagent-start, user-prompt-submit, pre-tool-use, post-tool-use, post-tool-use-failure, pre-compact, post-compact, subagent-stop, stop and session-end.
Reads Claude Code's event JSON on stdin and answers on stdout. It always exits 0: a hook is not a place to have an opinion about failure, and a missing git, an unreadable state file or a malformed payload must all end as silence rather than interrupt someone's session. See Hooks for what each event does.
index
Chunk a repository locally and upload it to the ai-boost index.
bash
ai-boost index [path] [--incremental] [--since=<ref>] [--commit=<sha>] [--files=<path>] [--include-untracked] [--dry-run] [--explain] [--key=<key>] [--allow-behind] [--allow-worktree] [--yes] [--rollback]| Argument / Option | Required | Default | Description |
|---|---|---|---|
path | no | current directory | Repository, or a folder containing several |
--incremental | no | — | Only files changed since the last indexed commit (or the last commit) |
--since | no | — | Only files changed since this revision — what the post-merge hook uses, so one pull is covered whether it brought one commit or forty |
--commit | no | — | Only files changed in this commit |
--files | no | — | Only these repository-relative paths (repeatable) |
--include-untracked | no | — | Also index files that exist but have never been committed. They are uploaded and become searchable by everyone on the project — see below |
--dry-run | no | — | Report what would be indexed without uploading |
--explain | no | — | With --dry-run, list the paths behind each exclusion |
--key | no | the repository's .env, then $AI_BOOST_KEY | Repository API key |
--allow-behind | no | — | Index even though this checkout does not contain the indexed commit or is behind its remote default branch |
--allow-worktree | no | — | Run --incremental or --since inside a linked git worktree, which is otherwise skipped |
--yes, -y | no | — | Confirm a full index run from a non-default branch without prompting; lets --incremental and --since run off the default branch |
--rollback | no | — | Deliberately replace a newer index with this older commit (implies --allow-behind); the server's index_older_than_current refusal is lifted for this run |
Chunking happens on your machine — the server receives only the text it embeds, and never needs credentials for a private repository. That text is your code, though: see What leaves your machine.
Only tracked files are indexed, and they are read from disk. Untracked files stay on your machine, and --dry-run --explain lists them under an untracked rule so you can see what was left out and why. Uploading a chunk makes it searchable by everyone on the project, and a file its author has never git add-ed is not one they have decided to share — four such notes in one repository were being returned to every session as that project's conventions before this was the default. What this does not mean is that a commit is required: a file git already tracks is uploaded as it currently is on disk, so an uncommitted edit to it does reach the index. --include-untracked opts back in for a run, which is worth it when you want to confirm a new file landed before you commit it. It never reaches gitignored paths: those stay out either way.
A repository with no commits yet is the one exception — it tracks nothing, so everything in it is indexed rather than nothing.
.env beats the environment, not the other way round
The order in that last row is the one that surprises people: a .env in the repository wins over an exported AI_BOOST_KEY. A CI job that exports a service key into a checkout still carrying someone's .env would otherwise index under their identity and exit 0. It does not go unsaid — the run reports that an environment key was supplied and ignored — but if you mean the exported one, pass it as --key or remove the .env line. ::: Re-running is safe and resumes: a chunk always lands on the same index entry, so an interrupted run costs only the re-embedding.
An incremental run that finds an empty index promotes itself to a full one. If the server holds zero chunks for this repository, --incremental would upload only the last commit and leave the rest missing for as long as nobody thought to run a full pass — and the git hooks only ever run --incremental, so nobody would be on the recovery path. It escalates in that direction only, and only on a definite answer: a server that could not be asked leaves the run exactly as requested. Naming a --commit or --files opts out, since that is not a request for the whole repository.
A run from a checkout that is behind the index is refused. The CLI compares your HEAD with the commit the server has indexed, and with origin/<default branch>. When HEAD does not contain the indexed commit, or is an ancestor of the remote default branch, an interactive run asks first and an unattended one (the git hooks, CI) refuses and uploads nothing unless --allow-behind is given. --dry-run reports the finding and never refuses. The --incremental and --since runs the hooks make skip cleanly on a branch other than the default one; --yes overrides that. As a backstop, the server refuses an upload whose commit is older than the indexed one with 409 and reason: index_older_than_current, unless the run is a deliberate --rollback. That check orders runs by committer time, because the server holds no commit graph; it is not an ancestry check. It needs the commit date, which this CLI version sends with every upload. An older CLI sends none: its incremental pushes are still accepted but cannot move a dated indexed commit, and its full runs are refused with 409 and reason: cli_update_required on the first batch, before anything is embedded, once the repository's commit date is known. Run ai-boost update. An undated incremental push still lands its chunks.
An incremental run also sends the files it saw deleted, and the server removes their code chunks, so a merge that deletes files no longer needs a full re-index.
In a folder of repositories it indexes each one against that repository's own key, which is what init wrote into each .env. One repository failing doesn't stop the rest, and the exit code still reports it. --key, --commit and --files all name something inside exactly one repository, so they're refused there — run those from inside the repository you mean.
auth:login
Authenticate via Google OAuth.
bash
ai-boost auth:loginOpens a browser at aiboost.metadevs.de/auth/google and collects the credentials itself — there is nothing to paste back. The URL carries only a one-way hash of a secret the terminal keeps, and the terminal polls until the browser side finishes. Credentials (access_token, refresh_token, email) are stored at ~/.config/ai-boost/credentials.json, mode 600, keyed by the server they belong to, so signing in to a development server does not overwrite your production sign-in.
| Option | Description |
|---|---|
--no-browser | Print the URL instead of opening it |
--json | Emit machine-readable events on stdout, prose on stderr |
--token=<code> | Skip the handshake and redeem a code you already have (also AI_BOOST_TOKEN) |
Because nothing ties that URL to the machine that printed it, --no-browser is how you sign in over SSH or on a box with no display: open the URL on your phone or another laptop and the waiting terminal finishes on its own. No tunnel, no ssh -L, no forwarded port. It is implied anyway when nothing could open — inside a container, on Linux with no $DISPLAY, or with AI_BOOST_NO_BROWSER=1.
--json writes one JSON object per line, as it happens:
jsonl
{"event":"authorization_required","authorization_url":"https://…/auth/google?cli=<handle>","expires_in":300}
{"event":"authenticated","email":"you@megadevs.de"}A run that does not complete ends {"event":"failed","reason":"…"} and exits 1 — timeout, throttled, code_rejected, server_error or invalid_response. Nothing secret ever reaches that stream.
auth:status
Show current authentication status.
bash
ai-boost auth:statusCalls /api/v1/auth/me to verify the stored token is still valid. Prints the authenticated email or an error if the token has expired.
--json answers in one object, with the same exit code (1 when not signed in):
jsonl
{"authenticated":true,"email":"you@megadevs.de","name":"You"}
{"authenticated":false,"reason":"no_credentials"} // or "token_rejected"auth:logout
Sign out of the current server.
bash
ai-boost auth:logoutSigns out of the current server: its entry is removed from credentials.json, and sessions on other servers are kept.
project:create
Create a new project.
bash
ai-boost project:create <name> [--client=<client>] [--existing-client]| Argument / Option | Required | Description |
|---|---|---|
name | yes | Project display name |
--client | no | Client name — defaults to the project name |
--existing-client | no | File the project under a client that already exists, having been told which one. Needs ownership of a project in that client, or the platform administrator role |
Prints the project slug on success. The slug is used when adding repositories.
Filing under an existing client also requires owning a project in it (or holding the platform administrator role); otherwise the server refuses and the flag does not help. The server asks for confirmation when an owner names a client that already exists, because the client decides which managers can see the project. The refusal names that client, and the CLI adds the line Re-run with --existing-client to file it under that client.
The client groups projects together in the admin analytics, and cannot be changed afterwards — there is no endpoint to move a project to a different client, so it is worth passing deliberately.
--client did nothing before CLI 0.10.1
Earlier releases sent the client under a field name the API does not read, so it was silently dropped and the project was filed under the default organisation while the command reported success. The server now accepts both spellings, so older CLIs work too — but projects created before this fix are still in the default organisation and cannot be moved.
Note that ai-boost init does not pass a client at all, so projects it creates are filed under Metadevs, the default organisation. It was called Personal until 8 October 2026; --client=Personal still files a project there rather than creating a new organisation. Both init and project:create print the organisation the project was filed under, so the placement is never a surprise:
Organisation: <name>For a project that init itself creates, the line ends with (the shared default; init cannot choose one). When the server sends no organisation, no line is printed. This line appears since CLI 3.26.0.
project:list
List all your projects.
bash
ai-boost project:listDisplays slug, name, client, repository count, and creation date.
project:delete
Delete a project, and with it every repository inside it and every index those repositories have.
bash
ai-boost project:delete <slug> [--yes] [--force]| Option | Required | Description |
|---|---|---|
--yes, -y | no | Skip the confirmation prompt |
--force | no | Required in addition to --yes when the project still holds repositories |
Before asking, it prints the project and names every repository that would go with it. Interactively the prompt is the safeguard and defaults to No, so --force is not needed — the count and the names are on screen directly above the question. Non-interactively --yes alone deletes only an empty project; a populated one fails and tells you to add --force, so a script cannot destroy work in passing.
Requires project Owner, or the platform admin role.
project:guards
A project owner's guard rules: the rules that stop, steer or hint an agent away from chosen commands and files. A project keeps them in a file it may commit, and the server validates, stamps and syncs them (CLI 3.81.0).
bash
ai-boost project:guards --project=<slug> [--json]
ai-boost project:guards --project=<slug> --file=guards.json [--dry-run]
ai-boost project:guards --starter=guards.json--filereplaces the project's rules with the file's (a list of rules, or an object withrules). A file with no rules is refused. The server refuses a save if someone else saved after your read; run it again.--dry-runshows what would be added, removed and changed, and sends nothing.--starterwrites three rules to edit (no force-push, nomigrate:fresh, protect.env) and never overwrites a file.- For Edit, Write, MultiEdit and NotebookEdit a rule matches the file path relative to the project root, so a multi-repository project needs the repository folder as a prefix; paths are case-sensitive. Anchor path rules, for example
^config/billing\.php$. - It writes server state with your account credential and needs the project owner role.
project:delivery-token
Set or clear the read-only GitLab token that delivery status uses for a project. Project owners only.
It works once the server switches delivery status on for the project. Until then it says Delivery status is not switched on for this project on the server yet, so there is no token to set. and stores nothing.
bash
# asks for the token, without showing it
ai-boost project:delivery-token --project=<slug>
# or reads it from stdin
printf '%s' "$TOKEN" | ai-boost project:delivery-token --project=<slug>
# removes the project's token
ai-boost project:delivery-token --project=<slug> --clear| Option | Required | Description |
|---|---|---|
--project | yes | The project's slug or id, as ai-boost project:list shows it |
--clear | no | Remove the project's token instead of setting one |
The token is read from stdin or a hidden prompt, never from the command line, and is never printed.
repo:add
Register a repository under a project.
bash
ai-boost repo:add --project=<slug> [--path=<dir>] [--name=<name>] [--stack=<stack>] [--gitlab=<url>]| Option | Required | Default | Description |
|---|---|---|---|
--project, -p | yes | — | Project slug |
--path | no | current directory | Repository directory |
--name | no | the directory's name | Repository display name |
--stack | no | prompted; otherwise detected or unset | Technology stack — see below |
--gitlab | no | the directory's git remote | GitLab repository URL — used by ai-boost init to auto-discover the repo |
Without --project it stops with --project is required. Without a git remote it prints No git remote found — teammates will not be able to enrol themselves.
On success it prints the repository ID and stack, then a Next: block with the two key:generate commands for the new repository.
About --stack. It decides which default coding rules the server hands Claude Code via find_relevant_instructions — it does not affect chunking (the indexer picks a chunker from each file's extension). Recognised values are laravel, laravel-api, vue (or nuxt), react (or next), and node; matching is case-insensitive. Any other value is stored as-is and falls back to generic "follow existing project conventions" rules, as does leaving it unset.
Omitting --stack prompts for it. In a non-interactive context (CI, --no-interaction) it is left unset rather than guessed — earlier versions silently defaulted to laravel, which mislabelled every non-Laravel repository and fed it Laravel rules.
repo:list
List all repositories across all projects.
bash
ai-boost repo:listDisplays repository ID, name, project, stack, last indexed date, and chunk count.
repo:delete
Remove a repository from its project and drop its index.
bash
ai-boost repo:delete <repository> [--project=<slug>] [--yes]| Argument / Option | Required | Description |
|---|---|---|
repository | yes | Repository id or name, exactly as repo:list shows it |
--project, -p | no | Project slug — only needed when one name is used in several projects |
--yes, -y | no | Skip the confirmation prompt |
The delete endpoint is scoped to a project, but repo:list prints an id and a name and never a slug, so the project is resolved for you from either. A name matching repositories in more than one project is refused rather than guessed, and the message names the candidates.
Before asking, it prints the repository, its project, its chunk count, and when it was last indexed — so what is about to be lost is on screen before the prompt, which defaults to No. The index is dropped immediately; getting it back means registering the repository again and re-indexing it, which needs a working checkout of that code.
Requires project Owner, or the platform admin role.
mcp:link
Deprecated — use ai-boost init in the parent folder
The CLI itself lists this command as [deprecated]. It still runs, and the rest of this section is still accurate, but init does the same job better for every case except the one named below. Nothing here is going to be removed without notice; it is simply no longer the answer.
Merge sibling repositories' MCP servers into a shared parent folder, so a Claude Code session started above several repositories still sees all of them.
bash
ai-boost mcp:link [path] [--dry-run]| Argument / Option | Required | Default | Description |
|---|---|---|---|
path | no | current directory | The shared parent folder containing your repositories |
--dry-run | no | — | Report what would change without writing |
Prefer init for a folder of repositories
mcp:link copies each repository's own server up into the parent, so the agent gets one toolset per repository and every search still reads a single repository. init instead issues one project-scoped key, so one server searches all of them at once and says which repository each result came from. Reach for mcp:link only for stdio servers that genuinely depend on their working directory — the Laravel adapter's ai-boost:mcp and laravel-boost.
Claude Code loads .mcp.json only from the exact directory it was launched in. If you keep, say, acme.io/api and acme.io/web side by side and start Claude Code in acme.io/, neither repository's servers load. This command writes a acme.io/.mcp.json that references both:
bash
cd ~/projects/acme.io
ai-boost mcp:link ✓ ai-boost-api
✓ laravel-boost-api
✓ ai-boost-web
Linked 3 server(s) into /Users/you/projects/acme.io/.mcp.json.Behaviour worth knowing:
- Keys are always namespaced
<server>-<repo-dir>, never only on collision — so onboarding another repository later never renames a key that already works. - Each stdio server is rewritten to enter its own repository first.
.mcp.jsonhas no working-directory field, so a command likephp artisan ai-boost:mcpwould otherwise run against the parent folder and fail. Remote (http/sse) servers are copied unchanged. This needs a POSIX shell, i.e. macOS or Linux. - Re-running is safe. Entries are regenerated from each repository's own
.mcp.json, so the file is rewritten only when something actually changed, and servers you added to the parent yourself are never touched. - Only immediate subdirectories are scanned, and only those containing a
.git. - Repositories with no
.mcp.jsonare listed as skipped rather than ignored silently. Onboard them first withai-boost init. - If two folder names differ only in characters that have to be replaced (
acme.io apivsacme-io-api), they would claim the same key — the command reports the clash instead of dropping one silently, and asks you to rename a folder.
key:generate
Generate a shared integration API key, for a repository or for a whole project.
Shared is the only family this command issues — it mints ApiKeyKind::Shared, which is what the ab_live_ prefix below means. A personal credential (ab_dev_), the family that carries who is asking and which project-knowledge retrieval depends on, comes from ai-boost init or ai-boost environment add, not from here.
bash
ai-boost key:generate --repo=<id> [--name=<name>] [--expires=<days>]
ai-boost key:generate --project=<slug> [--name=<name>] [--expires=<days>]| Option | Required | Default | Description |
|---|---|---|---|
--repo, -r | one of --repo/--project | — | Repository ID — the key reads and indexes that one repository |
--project, -p | one of --repo/--project | — | Project slug — one key whose searches span every repository in the project |
--name | no | default | Key label |
--expires | no | no expiry | Expiry in days (1–365, the server's ceiling) |
The full ab_live_xxx key is returned once and never retrievable again. Store it immediately.
key:list
List API keys for a repository or for a project.
bash
ai-boost key:list --repo=<id>
ai-boost key:list --project=<slug>| Option | Required | Description |
|---|---|---|
--repo, -r | one of --repo/--project | Repository ID |
--project, -p | one of --repo/--project | Project slug — the project-scoped keys init issues for a workspace |
With neither flag it says Give either --repo=<id> or --project=<slug>.; with both, Give --repo or --project, not both — a key is scoped to one of them.
Displays key prefix, name, last used date and expiry. Only active keys are listed — a revoked key disappears from this output rather than showing as revoked, so an empty list means every key for the repository has been revoked or expired.
key:revoke
Revoke an API key.
bash
ai-boost key:revoke <prefix> --repo=<id> [--yes]
ai-boost key:revoke <prefix> --project=<slug> [--yes]| Argument / Option | Required | Description |
|---|---|---|
prefix | yes | Key prefix (e.g. ab_live_xxxxxxxxxxxx) |
--repo, -r | one of --repo/--project | Repository ID |
--project, -p | one of --repo/--project | Project slug |
--yes, -y | no | Skip the confirmation prompt |
The two flags are refused together, as for key:list. Revoked keys are immediately invalid. The revocation is recorded with a timestamp in the database.
admin:grant
Grant a platform role to a developer. Admin only — the server rejects the call from anyone else, so having the command does not confer the ability to use it.
bash
ai-boost admin:grant <email> <role> [--client=<id>]| Argument / Option | Required | Description |
|---|---|---|
email | yes | Developer email — need not exist yet, so a role can be waiting when they first sign in |
role | yes | One of admin, manager, developer |
--client | for manager | Client id. manager is client-scoped, so the role is meaningless without one |
developer is what everyone gets by signing in, and is also how you demote someone. manager grants read-only access to one client's analytics in the Admin Portal and nothing in the CLI or the Developer Portal. admin is unrestricted, including platform settings.
analytics
Show usage and quality metrics for a repository, or for a whole project.
bash
ai-boost analytics --project=<slug> # every call billed to the project
ai-boost analytics --repo=<id> # only calls a repository key made| Option | Required | Description |
|---|---|---|
--project, -p | one of the two | Project slug |
--repo, -r | one of the two | Repository ID |
Which one to ask
If you work from a folder holding several repositories, --project is the one with your numbers. That folder's key is project-scoped, and a search made with it reads every repository in the project at once — so the server files the call against the project with no repository named, because attributing a search that read four namespaces to one of them would be a guess. --repo counts only calls made with that repository's own key, so under that layout it shows part of the activity at most; --project sees all of it.
--repo answers for calls made with that repository's own key. The two are not alternatives: a project's total is the sum of its repositories' calls plus the project-wide ones no repository can claim.
Every response says which scope answered it, and a repository reading zero says where to look instead.
Returns:
| Metric | Description |
|---|---|
| MCP calls | Tool calls in scope |
| Sessions | Distinct sessions behind those calls. Counts only calls whose session is known — an editor or adapter that does not report one leaves its calls unattributed, so this reads below MCP calls rather than wrong |
| Average score | Mean record_agent_feedback score (0–1) across all sessions |
| Cost | Server-side embedding cost across all MCP calls, in USD. Local model inference runs on your machine and is not included |
| Token counts | Embedding tokens consumed by retrieval calls |
| Avg latency | Average response time per MCP call |
A metric shown as - is one this server does not report, which is not the same as zero — older servers predate some of these.
jira
Add files to a Jira change, such as a screenshot or a log. Your agent attaches them when it comments on an issue, creates one or edits one.
bash
ai-boost jira stage <file>… [options]stage is the only action. It removes secrets from text and HAR files (saved web traffic), then uploads each file to ai-boost and prints a reference for it. Your agent passes those references as attachments. A staged file is kept for about 30 minutes.
| Argument / Option | Required | Default | Description |
|---|---|---|---|
file… | yes, unless --show | The files to stage, named one by one. Folders are refused. A file can be at most 10 MiB | |
--show <ref> | no | Print the server's copy of a staged reference, which is exactly what will be attached. Use it on its own | |
--json | no | Print the answers as JSON, for the agent | |
--path | no | current directory | The folder whose key identifies you |
- Staging needs your personal key. If the folder has none, run
ai-boost initthere. - Every file is checked before the first upload. If one is refused, nothing is uploaded.
- Allowed types are png, jpg, gif, webp, pdf, txt, log, json, csv, har and zip. Other types are refused.
- Images, PDFs and the contents of zip files are not checked for secrets.
- One change takes at most 10 files, and a batch counts as one change.
- The output says how many secrets were removed from each file.
review
Have ai-boost review a merge request in GitLab CI, with your own AI key.
bash
ai-boost review --ci [options]This needs ai-boost 3.54.0 or later. The review runs on your runner and uses the workflow reviewer your project already set up. ai-boost stores no AI key and runs no AI on its servers: your runner talks to your model provider directly. The job is advisory. A finding never fails the job.
Which models it works with
You choose one of two engines:
| Engine | What it does | Key it needs | Needs on the runner |
|---|---|---|---|
agent | ai-boost runs the review itself. The model gets three read-only tools and returns its findings in a fixed format. | One of the providers below | git and curl. No Node. |
claude-code | ai-boost starts Claude Code (claude -p) on your runner. | ANTHROPIC_API_KEY | git, curl, Node and @anthropic-ai/claude-code |
The agent engine talks to one of three providers:
| Provider | For | Settings |
|---|---|---|
openai | OpenAI's own models, through its Responses API | OPENAI_API_KEY |
anthropic | Anthropic's own models, through its Messages API | ANTHROPIC_API_KEY |
openai-compatible | Any service that speaks OpenAI's Chat Completions API: Azure OpenAI, Mistral, OpenRouter, Ollama, vLLM, Gemini's compatible endpoint | AI_BOOST_REVIEW_BASE_URL, AI_BOOST_REVIEW_API_KEY, AI_BOOST_REVIEW_MODEL, and for Azure AI_BOOST_REVIEW_AUTH=api-key |
Which providers have been tried in CI:
| Provider | Status |
|---|---|
openai | Proven in CI |
anthropic | Written against Anthropic's documentation and tested with answers in the documented shape. Not yet run against the real API |
openai-compatible | Run in CI against OpenAI's own Chat Completions endpoint (gpt-4.1-mini). Also tested against the documented answer shapes of Azure OpenAI and Ollama. Mistral, OpenRouter, vLLM and Gemini should work and have not been tried |
How ai-boost picks what runs
For each setting, the first line that applies wins.
| Setting | Order |
|---|---|
| Engine | --engine, then AI_BOOST_REVIEW_ENGINE, then the providers that are set up. One provider set up: agent on that provider. A provider with no engine means agent. |
Provider (agent only) | --provider, then AI_BOOST_REVIEW_PROVIDER, then openai if OPENAI_API_KEY is set, otherwise the one other provider that is set up |
| Model | --model, then AI_BOOST_REVIEW_MODEL, then the engine's or provider's own choice (next table) |
| Effort | The reviewer effort set in your workflow. A model that does not accept it stops the job and asks you to set --model. It is not sent to openai-compatible providers, which do not all accept it. |
| Key, base URL, auth style | Environment variables only, never options (an option is visible in process lists and job traces): OPENAI_API_KEY, ANTHROPIC_API_KEY, AI_BOOST_REVIEW_API_KEY, AI_BOOST_REVIEW_BASE_URL, AI_BOOST_REVIEW_AUTH, plus AI_BOOST_KEY for ai-boost |
A provider counts as set up when its key is set; for openai-compatible, when AI_BOOST_REVIEW_BASE_URL is set.
The model each choice uses when you name none:
| Choice | Model |
|---|---|
claude-code | The model your workflow sets for its reviewer (opus, sonnet, ...), otherwise sonnet |
anthropic | The workflow's model, with the name turned into a model id: opus is claude-opus-5-5, sonnet is claude-sonnet-5-5, haiku is claude-haiku-5-5, fable is claude-fable-5-2. Without one, claude-sonnet-5-5. A full model id you give is used as it is |
openai | OpenAI's default for this job (the workflow's model name is ignored, because OpenAI does not serve those names) |
openai-compatible | None. You must name one with --model or AI_BOOST_REVIEW_MODEL (on Azure, the model of your deployment) |
The first log line after the decision names what runs, for example Review engine: agent, provider anthropic, model claude-sonnet-5-5, effort high. The same is written to review.json.
The job stops with exit 2 and a message that names the fix when:
- more than one provider is set up and you chose neither an engine nor a provider (the job will not guess which account to bill);
- no provider is set up, or the one you chose is missing its key, its base URL or its model;
- the engine or provider is unknown;
- you pass
--providertogether with--engine=claude-code; AI_BOOST_REVIEW_BASE_URLis not anhttpsURL, or has a user name or password in it. Plainhttpis accepted only forlocalhost,127.0.0.1and[::1], whereAI_BOOST_REVIEW_API_KEYmay also be left out;AI_BOOST_REVIEW_AUTHis neitherbearernorapi-key.
Name the engine and provider in your job, as in the examples below, so a later change to which keys are set cannot change what runs.
Set it up on OpenAI
yaml
ai-boost-review:
stage: test
image: debian:bookworm-slim
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
allow_failure: true
timeout: 20m
variables:
GIT_DEPTH: "50"
AI_BOOST_INSTALL_DIR: /usr/local/bin
script:
- apt-get update -qq && apt-get install -y -qq git curl ca-certificates > /dev/null
- git fetch --depth=1 origin "$CI_MERGE_REQUEST_DIFF_BASE_SHA"
- curl -fsSL https://aiboost.metadevs.de/install.sh | sh
- ai-boost review --ci --engine=agent --provider=openai
artifacts:
when: always
expose_as: ai-boost review
paths: [ai-boost-review/]
expire_in: 30 daysAdd two masked CI/CD variables:
OPENAI_API_KEY: your key. Ideally it comes from an OpenAI project with a spend limit.AI_BOOST_KEY: an automation key from the portal's API keys page.
Set it up on Anthropic's API
Use the same job as for OpenAI, with this last command and ANTHROPIC_API_KEY in place of OPENAI_API_KEY:
yaml
- ai-boost review --ci --engine=agent --provider=anthropicThis needs no Node. If you want Claude Code's own tools instead, use the next sections.
Set it up on an OpenAI-compatible service
Use the same job as for OpenAI, with this last command:
yaml
- ai-boost review --ci --engine=agent --provider=openai-compatibleand these masked CI/CD variables (the base URL need not be masked unless it holds a secret; it must not contain a user name or password):
| Variable | Meaning | Example |
|---|---|---|
AI_BOOST_REVIEW_BASE_URL | The service's base URL. ai-boost adds /chat/completions. A query string stays after it. | https://openrouter.ai/api/v1 |
AI_BOOST_REVIEW_API_KEY | Your key | |
AI_BOOST_REVIEW_MODEL | The model to ask for | mistral-large-latest |
AI_BOOST_REVIEW_AUTH | bearer (default), which sends Authorization: Bearer <key>, or api-key, which sends api-key: <key> as Azure OpenAI wants | api-key |
For Azure OpenAI, put the deployment and the api-version in the base URL: https://<resource>.openai.azure.com/openai/deployments/<deployment>?api-version=2024-10-21, and set AI_BOOST_REVIEW_AUTH=api-key. For Gemini, use https://generativelanguage.googleapis.com/v1beta/openai. For a model on your own machine, for example Ollama, use http://localhost:11434/v1 and leave the key out.
The model must support tool calling, because that is how the reviewer reads files and returns its findings. If the service rejects a request, the job stops with exit 2 or 4 and says so.
Reasoning models on Azure OpenAI and OpenAI itself refuse the max_tokens setting and want max_completion_tokens. When a service answers 400 and names max_tokens as the problem, ai-boost retries that one request with max_completion_tokens and keeps using it for the rest of the run. If that is refused too, the job stops with exit 2 and a message that names both settings; choose another model with --model.
Plain http is refused for any host except localhost, 127.0.0.1 and [::1]. That includes a service container in GitLab's Docker executor (services: with a name such as http://ollama:11434/v1), because the key would cross a network in clear text. Do not work around it by putting the key in the URL: that is refused as well. Instead, put the service behind https, or run it where the job can reach it as localhost (a shell executor, or a Docker executor job that runs the service and ai-boost in the same container). A service on your own machine needs no key.
Set it up with Claude Code
yaml
ai-boost-review:
stage: test
image: node:22-alpine
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
allow_failure: true
timeout: 20m
variables:
GIT_DEPTH: "50"
AI_BOOST_INSTALL_DIR: /usr/local/bin
script:
- apk add --no-cache git curl
- git fetch --depth=1 origin "$CI_MERGE_REQUEST_DIFF_BASE_SHA"
- npm install -g @anthropic-ai/claude-code@<version you have tested>
- curl -fsSL https://aiboost.metadevs.de/install.sh | sh
- ai-boost review --ci --engine=claude-code
artifacts:
when: always
expose_as: ai-boost review
paths: [ai-boost-review/]
expire_in: 30 daysReplace <version you have tested> with the Claude Code version you have tested. This page does not name one. Add ANTHROPIC_API_KEY (ideally from an Anthropic workspace with a spend limit) and AI_BOOST_KEY as masked variables.
Do not mark these variables as "protected": merge request pipelines on unprotected branches cannot see protected variables. A merge request pipeline from a fork runs without the parent project's variables unless a maintainer starts it. To run the review only when someone asks, use when: manual.
What the reviewer can read
The reviewer is read-only. It cannot change a file, run a command or open a web page. The merge request's title and description, and everything the reviewer reads, are treated as material to review, never as instructions.
Secrets are taken out before anything leaves the runner. ai-boost scans the diff, every file the reviewer reads, and the merge request's title and description for the keys it was given and for the common key and password shapes (API keys, tokens, private keys, password= style settings, passwords inside URLs, and any value in the query string of AI_BOOST_REVIEW_BASE_URL other than Azure's api-version). Each one is replaced with [REDACTED], on every engine and provider. A private key is withheld whether the change adds it, deletes it or only keeps it as context, whatever it contains (old-format encrypted keys with Proc-Type: and DEK-Info: lines included) and however long it is. A key with no END line is withheld to the end of the file, or in a diff to the end of that file's part of the diff, across hunks (git splits a key in two when the lines around it change). An END line with no BEGIN before it in the diff closes a block that began at the first line of its hunk. A private key keeps its line count, every line keeps its +, - or space, and every @@ hunk header stays, so line numbers and hunks in the findings stay right. A key that the change edits only in its middle, with neither its BEGIN nor its END line in the diff, cannot be recognised by its markers.
review.json lists where something was withheld under secrets_withheld, as a file, a count and a scope, never the value. Only places where something was replaced are listed. The scope says what the place is: diff (the change itself), read (a file the agent engine's reviewer opened or searched) or copy (a file in the copy Claude Code reads, which it may never have opened).
This catches the shapes ai-boost knows. A secret in a shape it does not know, with no name that gives it away, is not caught, so keep keeping secrets out of the repository. To stop the review when the change itself adds a secret, add --refuse-secrets: the job then exits 2 without calling a model and names the files, never the values. A secret that the change only removes does not stop it.
Everything the job prints or writes passes through the same filter.
For engineers: what each engine can see
agent | claude-code | |
|---|---|---|
| Files | Only files git tracks at the commit being reviewed, plus the change's diff.patch | A copy of the files git tracks, with secrets replaced, plus the change's diff.patch. The copy is made for the run in a folder named .ai-boost-review-views next to the checkout (in the system temp folder if that is not writable) and removed afterwards |
| Not visible | Anything untracked (a .env, build output, CI file variables written beside the checkout), .git, binary files, files over 4 MiB, links, and everything outside the checkout | The same, and everything outside the copy. The checkout itself is denied by name, so its untracked files are out of reach even if a tool tried. A deny list of places on the runner is kept as a second layer: /proc, /sys, /etc, your home folder, secret mounts, /tmp and GitLab's <project>.tmp folder. A rule is left out only when the copy itself sits under that place, which happens when your builds directory is under /tmp or your home folder |
| Limits | 30 turns. One read is at most 400 lines or 64 KiB, a listing at most 500 files, a search at most 100 hits, and 2 MiB of reads in all. A search looks at the redacted text, so it cannot be used to find a withheld secret | 30 turns. Making the copy counts against --timeout: if it does not finish in time the job stops with exit 4 before Claude Code starts |
| The merge request's own Claude settings | Not applicable | Not loaded |
What it costs
You pay your provider directly. On the agent engine the job's last log line gives the tokens used, for example Used 52,300 input tokens (41,000 cached) and 2,100 output tokens, model claude-sonnet-5-5, paid from your Anthropic account. It shows no price, because the providers do not return one. On the claude-code engine the line includes the US dollar amount that Claude Code reports.
Options
| Option | Meaning | Default |
|---|---|---|
--ci | Required, so a developer's machine never starts a paid run by accident | |
--engine=<name> | agent or claude-code | from the providers set up, see above |
--provider=<name> | openai, anthropic or openai-compatible (the agent engine only) | see above |
--model=<id> | The model to use | see above |
--refuse-secrets | Exit 2 without calling a model when the change adds what looks like a secret | off |
--dry-run | Check the setup, decide, and write the prompt, without calling a model | |
--base=<sha> | The commit to compare against | CI_MERGE_REQUEST_DIFF_BASE_SHA |
--out=<dir> | Folder for the diff, prompt and findings | ai-boost-review |
--timeout=<seconds> | One limit for the whole review | 600 |
--max-lines=<n> | Most changed lines reviewed in CI | 2000 |
The review follows your project's own review policy: its rule, size and risky paths. If the policy skips a change, the command exits 0 without calling a model. The review is a single pass, with no plan and no fix loop in CI.
The artifact folder holds diff.patch (with secrets replaced), prompt.md, review.md and review.json. The last line of review.md reads REVIEW: <n> high, <n> medium, <n> low. review.json records the decision, the engine, provider and model, the tokens used, why the run stopped, the files the reviewer read, and where secrets were withheld.
Exit codes
| Exit | Meaning |
|---|---|
| 0 | Reviewed, or no review needed |
| 2 | Something in the setup needs fixing: a key, base URL or model is missing or refused, the engine, provider or model choice is unclear, unknown or refused, there is no workflow reviewer, the pipeline is not a merge request pipeline, the base commit was not fetched, claude is not installed, or --refuse-secrets found a secret the change adds |
| 3 | Try again later: ai-boost cannot be reached, the provider is rate-limiting or overloaded, or the account is out of credit |
| 4 | Stopped without a full answer: a timeout, the turn limit (partial findings are kept), or an answer that could not be read |
| 5 | Too large to review in CI |
Messages for exit 2 and 3 name the provider and the fix. They never print a provider's own error text, because some providers repeat part of the key in it. The one exception is an error that Anthropic's API or an OpenAI-compatible service sends, with any HTTP status, for a reason ai-boost has no fixed message for, for example a model that cannot be used under zero data retention, or one that cannot take tools on the Chat Completions API: its message is shown, cut to 300 characters and with the key taken out, so the first run on a new service says what it refused. OpenAI's own models are best run with --provider=openai, which uses the Responses API; on the compatible provider some of them answer that tools need /v1/responses, and the message then says to use --provider=openai.
doctor
Answer "why is nothing happening?" — check the account, then whether this project is actually wired up.
bash
ai-boost doctor # the current directory
ai-boost doctor ~/code/acme.io # somewhere else
ai-boost doctor --fix # also apply the parallel-work configuration it reports as missingTwo sections. Account answers three questions once — the API responds, credentials exist, the stored token still works. Then each directory in turn: a folder holding several repositories is examined itself and so is every repository under it, the same set init would set up.
Account
✓ API reachable https://aiboost.metadevs.de
✓ Authenticated you@megadevs.de
✓ Token valid
acme.io
✓ Key configured .claude/settings.local.json
✓ MCP server registered ai-boost
✓ Editor approval Claude Code may use ai-boost here
✓ Session hooks 11 registered
✓ Hooks can start ai-boost /Users/you/.local/bin/ai-boost
✓ Re-index on commit post-commit and post-merge installed
✓ Generated assets written by v0.24.0
✓ Key accepted the server recognises it
✓ Index up to date the index holds 508380a7, current with origin/main (as of your last fetch)
✓ rtk filtering commands are compressed in this repository| Check | What it catches |
|---|---|
| Key configured | No AI_BOOST_KEY anywhere for this directory |
| MCP server registered | No ai-boost entry in .mcp.json; a .mcp.json that isn't valid JSON (which silently disables every server in the project); an entry whose ${AI_BOOST_KEY} nothing defines, so the server receives the placeholder and answers 401 |
| Editor approval: not trusted | The folder is not trusted yet, so no project MCP server loads at all. A headless session is never asked the trust question, so it never has the tools |
| Editor approval: switched off | ai-boost is listed under disabledMcpjsonServers in the folder's settings files, because you chose "Continue without using this MCP server" (reported from CLI 3.80.2). Remove it from the list and start a new session |
| Session hooks | None registered, or only some of the events this Claude Code supports |
| Hooks can start ai-boost | The one that fails silently. The hooks name a binary the shell that runs them cannot find |
| Re-index on commit | No post-commit hook, no post-merge hook, or one git skips because it isn't executable. Missing post-merge is why code that arrives by git pull can sit outside the index indefinitely |
| Generated assets | Instructions and skills written by an older version than the binary you now have |
| Workflow | The project's managed workflow and whether its rules are enforced here, for example v2 · plan_delegate_review · agents enforced, review enforced · 3 of 3 agents installed. A folder without the hooks gets guidance only |
| Other ai-boost | Another ai-boost on your PATH that ai-boost update never touches. It reports the path and version, and removes nothing |
| Key accepted | The key is present but the server rejects it — revoked, or issued against a repository this directory is not |
| Index up to date | The server's indexed commit is behind your local origin/<default branch>: a problem naming how many commits. It counts with rev-list and never fetches, so it is only as fresh as your last git fetch; an indexed commit this checkout does not have is a note asking you to fetch. Only when the server reports no commit, or there is no remote ref, does the older check run instead: HEAD committed after the last index run |
| ai-boost mod | Only in a folder that opted in: the mod is not installed for the config directory your sessions use, is disabled, or is older than the one this CLI carries. See the ai-boost mod |
| Jira write gate | Whether the prompt Claude Code shows before a real Jira change is registered in this folder: registered, out of date, or missing (then Jira changes are approved by instruction text only; run ai-boost init), and a .mcp.json that mounts ai-boost under a name without "ai-boost". Where it is registered, Claude Code in a terminal asks in the default, acceptEdits, auto, bypassPermissions and dontAsk modes. The Claude desktop app's Code tab asks in Manual, Accept edits, Auto and Bypass permissions modes. Sub-agents, plan mode, the manual permission value and claude -p are refused. The VS Code and JetBrains extensions are untested and refused. See the CLI's docs/jira-write-gate.md |
| Status line | Whether the status line is ours, yours, or not installed |
| Parallel work | Whether it is enabled, off by choice, or never asked. ai-boost parallel answers it |
| Session isolation | No .worktreeinclude, so a worktree would have no .env and no key; or a folder of repositories with no WorktreeCreate hook, so Claude Code cannot isolate a session there |
| Automatic update | The outcome of the last background update of this folder's setup: already current, updated, or failed |
| Embedding model | The index was built with a different embedding model than the one now configured, so every search fails until a full ai-boost index rebuilds it |
| Company folder | A note, not a problem: a folder grouping other projects is a map, with no key by design |
| Feedback recording | A project-scoped key covers several repositories, so record_agent_feedback must name which one it changed |
| rtk filtering | Whether command output in this repository is being compressed |
Each finding prints what to do about it. A directory nothing has ever set up reports that once instead of failing every check with the same remedy — and if the repositories inside it are set up, it says so and names them rather than telling you to run init on a folder that is already correct. A folder grouping other projects is reported as what it is: a map, with no key or server here by design.
Recorded feedback, in the Account section, notes whether ai-boost has ever scored one of your sessions. It is a note and never a failure.
Three states: ✓ fine, ✗ a problem, ! a note (a directory with no .git, assets managed by the adapter, a project-scoped key that needs a repository argument). Exit code is 0 unless there is at least one ✗.
If you script doctor
The index-freshness and hook-resolution checks are newer than the rest, so a setup that reported no problems on an older CLI can exit non-zero on this one without anything having changed on your side. That is the checks working — both catch failures that were previously silent — but it is worth knowing before it turns up in a pipeline.
Why "hooks can start ai-boost" earns its place. A hook is run by Claude Code, not by your terminal. When Claude Code was launched from an IDE or the desktop app it never read your shell profile, so a PATH entry added by the installer isn't there — ai-boost resolves when you type it and not when a hook does. Claude Code cannot tell a hook that declined to act from one that never started, so the failure is completely silent and permanent. The check asks the conservative PATH a hook actually gets, not the one this command is running with.
A repository using the Laravel adapter is checked against its setup, not the CLI's: the key belongs in .env and the MCP entry is stdio. If that repository still carries the bash hook scripts the adapter wrote before 2.0, doctor swaps the "hooks can start ai-boost" check for a "hooks can run" one — verifying each script exists and is executable, and that the bash and python3 they shell out to are on the PATH a hook is actually given. A missing python3 makes every one of those hooks a silent no-op, which is why the hooks written today are the binary calling itself. Running ai-boost init in such a repository moves it onto them.
uninstall
Remove the ai-boost setup from a repository — or from a folder of them — and leave everything else alone.
bash
ai-boost uninstall # the current directory, asks first
ai-boost uninstall --dry-run # list what would go, change nothing
ai-boost uninstall ~/code/acme.io -y # somewhere else, no promptuninstall undoes what init wrote in six files per repository. Before it, you had to do that by hand: edit .mcp.json, both settings files, .env, a CLAUDE.md block, a skill and a git hook, in every repository, with no list of what had been written.
Like init, it covers the whole tree: a folder of repositories is cleaned together with the repositories inside it, because cleaning the folder alone would leave each repository still carrying a key, a server and its session hooks.
What it removes
.mcp.json | every ai-boost* server, and the file when it held nothing else |
.claude/settings.local.json | AI_BOOST_KEY |
.claude/settings.json / settings.local.json | the ai-boost session hooks, and rtk's if it is there |
.claude/settings*.json | the status line and the subagent rows, only when they are ours |
.env | the AI_BOOST_KEY line only |
CLAUDE.md / .claude/CLAUDE.md | the region between the ai-boost markers |
.claude/skills/ai-boost/ | the generated skill |
post-commit, post-merge | the ai-boost block in each, wherever core.hooksPath puts them — named per hook, so a repository onboarded before post-merge existed is cleaned correctly too |
| The ai-boost mod | claude plugin uninstall ai-boost-mod@ai-boost-cli --scope local, only in a folder that opted in; --dry-run names that command |
.ai-boost/onboarding.json | the onboarding record |
What it keeps, and says so
- A skill whose
ai-boost:generatedstamp you deleted is yours — the same escape hatchinithonours. - A
post-commithook with your own commands in it keeps them; only our block comes out. - A
CLAUDE.mdwith an opening marker and no closing one is left untouched: the block's extent is unknowable, and guessing at it would delete your prose. .aiignore, a.ai-boost/that still holds something, and the secret lines in.git/info/exclude(.env,.env.local,/.ai-boost,/.claude/settings.local.json, the worktrees folder), because those files can outlive an uninstall — all left in place, and listed at the end so you can remove them yourself. The other exclude linesinitwrote (one per file it recorded) are removed, so a file uninstall keeps, such as.worktreeinclude, shows ingit statusagain..gitignoreis not edited: lines an olderinitadded there stay. Same choice as the adapter'sai-boost:uninstall.
What it does not touch. Nothing on the server: the project, the repositories and the index all stay, and the API key keeps working. The command prints the key:revoke line for it rather than running it — a project-scoped key is shared with everyone who onboarded under it, so revoking is a decision about other people's access, not a side effect of cleaning your own checkout.
Run ai-boost init in the same folder to set it all back up.
Uninstalling the Laravel adapter
A repository the adapter owns is uninstalled with php artisan ai-boost:uninstall instead — the adapter wrote those files, so the adapter takes them back out. Removing the package with Composer alone leaves the configuration behind.
update
Replace this binary with the newest published one.
bash
ai-boost update # install the newest release
ai-boost update --check # say whether one exists, change nothing
ai-boost update --force # reinstall the current versionThe CLI is a standalone binary rather than a Composer package. That is what makes it installable in thirty seconds, and it is also why it needs this: composer update will never touch it, and install.sh is something you run once and stop thinking about. One machine here sat four releases behind for weeks with three repositories' session hooks pointing at that binary, and nothing said so — an old binary does not know what it is missing.
It is verified before it is trusted. The download is hashed and compared against the SHA256SUMS the release publishes — the same manifest install.sh checks. A mismatch, or a file the manifest does not list, is discarded rather than installed, and the binary you already have is left exactly where it was.
Repositories already set up keep working without any further action: their hooks name this path, and the file at that path is what changed. Re-run ai-boost init in a repository only to refresh the generated files a newer version writes differently — doctor reports the version each directory's assets were written by.
Coming from a version older than 0.22.2
Nothing before 0.22.0 has this command or the once-a-day notice, so a machine that far behind will never be told it is behind. Re-run install.sh once; from then on it is on the update path.
In 0.22.0 and 0.22.1 the update itself succeeds, but the process then dies printing a PHP stack trace — the binary had already been replaced underneath it, which is what 0.22.2 fixes. If you see that, you are updated: run ai-boost --version to confirm rather than running the update again.
Installed somewhere you cannot write
If the binary lives in a directory that needs elevated rights, update says so and stops rather than half-finishing. Re-run the installer with whatever those rights are:
bash
curl -fsSL https://aiboost.metadevs.de/install.sh | AI_BOOST_INSTALL_DIR=/usr/local/bin shStaying current without doing anything
The CLI checks for a newer release when you run a command, and when a Claude Code session starts. At session start it begins a background ai-boost update --auto, at most once a day; the hook itself makes no network call, and nothing runs from the status line. A check from a command reuses an answer for 15 minutes, or for an hour after a failed check. The session path waits a day from the last check, and its background process then asks the server directly. Both install patch and minor releases by themselves. You do not have to run anything:
Updating ai-boost 3.1.0 → 3.2.0 in the background.
It will be in place for your next command.The download runs detached, so it never delays the command you actually asked for. The consequence is that this invocation is still the old binary and the next one is new.
A major release is never installed unattended. semantic-release cuts one only for a BREAKING CHANGE: footer, so it is precisely the release where a flag disappears — 3.0.0 removed --adapter and --no-adapter. Those wait for you:
A newer ai-boost is available: 3.1.0 → 4.0.0
Run ai-boost update to install it.It is announced rather than silent, deliberately: replacing somebody's binary with no indication reads as a compromise when they notice it later.
Everything goes to stderr, so a command whose output you are piping into something else is unaffected, and the hook commands print no update notice — their stdout is a JSON decision Claude Code parses. The one thing a hook does is start the detached background update at session start; the background process, not the hook, checks the server and installs, and it never installs a major release. A source checkout does neither, since it is not behind anything.
Two switches, and they are not the same:
| Variable | Effect |
|---|---|
AI_BOOST_NO_AUTO_UPDATE=1 | Keeps the notice, installs nothing. For anyone who would rather choose, and for images where replacing the binary is somebody else's job. |
AI_BOOST_NO_UPDATE_CHECK=1 | No check, no notice, no install. Worth setting in CI, which runs the CLI constantly and can act on none of it. |
If an automatic update fails
The background process follows the same back-off and attempt limit as a check from a command, so a failing release is not retried without end. When attempts keep failing, the ready line of the session that starts the daily check says "ai-boost update failed N times: run ai-boost update", and ai-boost update will tell you why — most often an install directory that needs rights you do not have.
environment
For people running a local ai-boost server alongside production: switch this workspace between the two.
bash
ai-boost environment [status|add|use|run] [local|production] [--project=<slug>] [--path=<dir>] [--dry-run] [--yes] [--skip-verify]With no action it runs status, which says what this workspace is bound to.
| Option | Description |
|---|---|
--project | The existing project slug to bootstrap against (add only) |
--path | The workspace to act on (defaults to the current directory) |
--dry-run | Print exactly what use would change, and change nothing |
--yes, -y | Do not ask before a first production activation |
--skip-verify | Switch without asking the target server whether the stored credentials still work |