cli
v0.94.1Checks your coding agent's edits against your team's decisions in tickets, chat, docs and git.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
align_check_alignment
BEFORE writing or changing significant code, call this with the proposed change to surface prior decisions across ALL the user's tools (Slack, Jira, GitHub, git) that it conflicts with or relates to. A "conflict" status means the change opposes a past decision - stop and confirm with the user before proceeding. An "unknown" status means the check could not run and is NOT a pass: the decisions it returns are unchecked, so stop and ask the human rather than treating it as clear. Pass a real unified diff when you have one, and name the files you intend to change: the decisions that wrote those li…
| Parameter | Type | Description |
|---|---|---|
diff * | string | Unified diff of the proposed change if you have one, else a description that names the files to change |
context | string | Additional context (branch name, PR title) |
align_ask
Ask a natural language question and get answers from the decision graph. Use this when the user asks "how", "what was decided about", or any question about past decisions. Each result carries `reason`: the stated reason extracted from the commit message, up to two sentences quoted as written. It may be null when the commit states no reason, and a null is not a claim that no reason exists. `sha` is the commit, when the result is one. Searches the LOCAL decision graph on this machine, not a hosted Align tenant. This local graph shows a decision as superseded only when a supersedes link exists (a…
| Parameter | Type | Description |
|---|---|---|
question * | string | Natural language question about decisions (e.g. "do we use postgres", "how does auth work", "what was decided about caching") |
limit | number | Max answers (default: 8) |
align_search
Alias of align_ask: the same search of the decision graph, taking the text as `query`. Kept for callers that already use this name; prefer align_ask. Results carry the same `reason` (the stated reason extracted from the commit message, may be null) and `sha`. Searches the LOCAL decision graph on this machine, not a hosted Align tenant. This local graph shows a decision as superseded only when a supersedes link exists (a person recorded one with align mark, or a typed link); most decisions have no status, so if two results cover the same topic, prefer the one with the most recent decided_at or…
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
limit | number | Max results (default: 8) |
align_capture
Capture a decision from ANY tool - a Slack thread, Jira ticket, GitHub PR, Confluence/doc URL, or raw text. Call this whenever a decision gets made in conversation so the cross-tool decision graph stays current and relationships across tools can be detected.
| Parameter | Type | Description |
|---|---|---|
input * | string | URL or text content of the decision to capture |
align_check_drift
Check whether one piece of code, config or documentation still matches one decision you already have the id of (from align_search or align_ask). Use it to ask "has this file moved away from what we decided?". To check a proposed change against every decision, use align_check_alignment instead. Local mode returns `score` (embedding similarity, 0 to 1) and `drifted` (true when the score is below 0.5). Both are null, with a `note`, when the decision has no comparable embedding. A similarity score is a hint, not a verdict. On a team graph a model judges it instead: `result.drift_detected`, a sever…
| Parameter | Type | Description |
|---|---|---|
content * | string | Code or config content to compare |
decision_id * | string | ID of the decision to check against |
source_type | string | Type of content: code, config, documentation |
align_get_impact
List the decisions linked to one decision, to see what rests on it before you change, reverse or retire it. Local mode returns `upstream` (links from other decisions to this one, such as a newer decision that supersedes it) and `downstream` (links from this one to others), one hop each, and every link names its relation. On a team graph it walks up to 5 hops and returns `dependencies` (what this decision is built on) and `impact` (what depends on it). For the full story of a topic, use align_get_topic_timeline.
| Parameter | Type | Description |
|---|---|---|
decision_id * | string | Decision ID to analyze |
align_get_conflicts
List conflicts and contradictions in the decision graph. conflict_count is the exact total; the links list holds one page, and a message says when there are more than it shows - never present the listed links as the complete set unless they match conflict_count.
align_get_topic_timeline
Everything the team ever decided about a TOPIC, in time order, across every connected tool. Use for "what is the story on X", "how did we end up here", or onboarding onto an unfamiliar area. Includes superseded and archived decisions, because the retired past is what explains why the current answer is current. Not to be confused with align_get_decision_timeline, which is the change history of ONE decision. Answer compactly by default: the current standard first in one sentence, the contested line when decisions disagree, up to three pivotal dated steps, a one-line chain summary, and the sharpe…
| Parameter | Type | Description |
|---|---|---|
topic * | string | The topic to trace, e.g. "connection pooling" or "authentication strategy" |
limit | number | Max decisions to return (default 50, capped at 200) |
align_get_decision_rationale
Retrieve the rationale, goals, risks, and context behind a specific decision, plus its acceptance criteria and actions when stored (often the concrete fix or command the decision prescribes). Use this when you need to understand WHY a decision was made - the reasoning, trade-offs, and constraints that led to it - or exactly what it requires.
| Parameter | Type | Description |
|---|---|---|
decision_id * | string | The decision ID to retrieve rationale for |
align_get_decision_timeline
Get the chronological history of events for a decision - when it was created, when conflicts were detected, when it was acknowledged or resolved. Use to understand how a decision has evolved over time. NOT AVAILABLE IN LOCAL MODE: this local graph has no implementation for it, so the call will fail. Use align_ask to search the local graph instead, or a cloud environment for this tool.
| Parameter | Type | Description |
|---|---|---|
decision_id * | string | The decision ID to get history for |
align_backfill
Import more history from a source the user has ALREADY connected (for example the last year of GitHub PRs) into the local graph on this machine. Offer it when the user asks for older context than the graph holds. It runs in the background, only reads from the source, and makes no LLM calls. It never takes a token or key: if the source is not connected, or its saved token was refused, nothing starts and the reply gives the exact `align connect <source>` command for the user to run themselves. Do not ask the user to paste a token into the chat.
| Parameter | Type | Description |
|---|---|---|
source * | string | Which connected source to read from |
since | string | How far back: 30d, 2w, 6m, 1y or all. Default 180 days. A ceiling per source still applies |
align_sync
Check on, or start, the refresh of the sources the user has ALREADY connected into the local graph on this machine. action "status" says per source when it last synced, whether it needs the person to re-authenticate, and what is still waiting; use it when the user asks whether the graph is up to date or why something is missing. action "run" starts a background refresh now (it only reads from the sources, makes no LLM calls, and returns at once). action "classify_estimate" says what typing the imported items with the user's own AI key would cost, plus the command for the user to run; it cannot…
| Parameter | Type | Description |
|---|---|---|
action * | string | What to do |
max | integer | With "classify_estimate": how many items the person would classify (default 25) |
source | string | With "run": only this source. Default: every connected source |
align_scope
See, or change, what the sources the user has ALREADY connected read into the local graph on this machine: only their own items, or everyone's in one named GitHub repo, Jira project, Linear team, GitLab project or Confluence space that their token can see. action "view" lists each connected source's scope (and any change waiting for the person); use it when asked what is read or why teammates' items are missing. action "set" changes one source; offer it when the user asks to include their team's items, or to go back to only their own. A Jira project can be narrowed to one board, and a Linear t…
| Parameter | Type | Description |
|---|---|---|
action * | string | view: show the scopes. set: change one source's scope |
board | string | Jira, with exactly one key in "projects": read only the issues on this board (its id or exact name) |
gitlab_project | string | GitLab: the project id or group/project path |
linear_projects | array | Linear, with exactly one key in "teams": read only these projects (names or ids) |
projects | array | Jira: project keys, for example ["ALI","OPS"] |
repo | string | GitHub: the repo as owner/repo |
scope | string | With "set": "yours" goes back to only the user's own items. "team" is implied by passing the source's value below |
source | string | With "set": which connected source to change |
spaces | array | Confluence: space keys, for example ["ENG"] |
teams | array | Linear: team keys, for example ["ENG"] |
align_mark
Record the USER's judgement in the local graph on this machine. After a conflict from align_check_alignment or align_get_conflicts, ASK the user "Was that a real conflict?" and pass their answer; never decide for them. For a check hit: decision_id + verdict (real or false) + check_files (the files the check covered, as the check result lists them); a false verdict hides that decision only for a later check of the same files. For a stored conflict: decision_id + counterpart_id + verdict. Also kind note (text: one line of plain text, 500 characters at most). Each is recorded as passed on by you,…
| Parameter | Type | Description |
|---|---|---|
decision_id * | string | The decision the user is judging (its id from the check or from align_get_conflicts) |
check_files | array | A check hit: the files the check covered, exactly as the check result listed them |
counterpart_id | string | A stored conflict: the other decision of the pair. |
kind | string | verdict (default) or note |
text | string | With note: the note |
verdict | string | With a verdict: real, or false (a false alarm), as the USER answered |
align_backlog
Turn one decision into a backlog of issues (one per task, up to 8) in the user's own Linear, GitHub Issues or Jira. Call it ONLY when the user asks for tickets, issues or a backlog from a decision. Never call it on your own initiative. It works in two steps. Step 1: pass `decision` (and tracker, team, repo or project only if the user said them). You get a PLAN: tracker, destination, the task titles, and a plan_id. Nothing is created until step 2. Show the plan to the user, with the destination and the number of issues, and ask whether to create them. Step 2, only after the user says yes: call…
| Parameter | Type | Description |
|---|---|---|
decision | string | The decision to turn into issues: its id, or words that name it. Pass this to PLAN. |
plan_id | string | The plan_id the plan call returned, passed back AFTER the user said yes to that plan. Pass only this to CREATE. |
project | string | Jira project key. Leave out unless the user named one or the tool asked. |
repo | string | GitHub repository as owner/repo. Leave out unless the user named one or the tool asked. |
team | string | Linear team key. Leave out unless the user named one or the tool asked. |
tracker | string | linear, github or jira. Leave out to use the saved one or the only one connected. |
align_stale_code
List code in the current repository still built on a decision that a later decision replaced, with line counts and ranges per file. Only links a person confirmed, unless include_ai is true. Run it inside the repository; needs full git history.
| Parameter | Type | Description |
|---|---|---|
include_ai | boolean | Also use AI-suggested supersedes links nobody confirmed (labelled in the result) |