cli

v0.94.1
io.github.aligndottech/cli Checked 4 hours ago Published 1 day ago

Checks 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…

ParameterTypeDescription
diff *stringUnified diff of the proposed change if you have one, else a description that names the files to change
contextstringAdditional 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…

ParameterTypeDescription
question *stringNatural language question about decisions (e.g. "do we use postgres", "how does auth work", "what was decided about caching")
limitnumberMax answers (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.

ParameterTypeDescription
input *stringURL 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…

ParameterTypeDescription
content *stringCode or config content to compare
decision_id *stringID of the decision to check against
source_typestringType 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.

ParameterTypeDescription
decision_id *stringDecision 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…

ParameterTypeDescription
topic *stringThe topic to trace, e.g. "connection pooling" or "authentication strategy"
limitnumberMax 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.

ParameterTypeDescription
decision_id *stringThe 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.

ParameterTypeDescription
decision_id *stringThe 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.

ParameterTypeDescription
source *stringWhich connected source to read from
sincestringHow 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…

ParameterTypeDescription
action *stringWhat to do
maxintegerWith "classify_estimate": how many items the person would classify (default 25)
sourcestringWith "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…

ParameterTypeDescription
action *stringview: show the scopes. set: change one source's scope
boardstringJira, with exactly one key in "projects": read only the issues on this board (its id or exact name)
gitlab_projectstringGitLab: the project id or group/project path
linear_projectsarrayLinear, with exactly one key in "teams": read only these projects (names or ids)
projectsarrayJira: project keys, for example ["ALI","OPS"]
repostringGitHub: the repo as owner/repo
scopestringWith "set": "yours" goes back to only the user's own items. "team" is implied by passing the source's value below
sourcestringWith "set": which connected source to change
spacesarrayConfluence: space keys, for example ["ENG"]
teamsarrayLinear: 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,…

ParameterTypeDescription
decision_id *stringThe decision the user is judging (its id from the check or from align_get_conflicts)
check_filesarrayA check hit: the files the check covered, exactly as the check result listed them
counterpart_idstringA stored conflict: the other decision of the pair.
kindstringverdict (default) or note
textstringWith note: the note
verdictstringWith a verdict: real, or false (a false alarm), as the USER answered

align_share

Ask to share one RATIFIED local decision, and the user's judgements on it, with their team. You ASK; this call sends nothing. It returns an approval link and a short code. Give the user the whole link exactly as returned (the part after # is needed) and the code. The USER opens it in their browser, where they are signed in to Align, checks the text and the code, and clicks Approve. Hand the link to the user and do not try to approve it yourself, by any means: approving is their act. This is a speed bump on a mistake, not a guarantee. When they say they approved, call align_share_status with th…

ParameterTypeDescription
id *stringThe local decision to share (its id; it must be ratified)

align_share_status

Check a share the user was asked to approve in their browser (from align_share), and finish it once they have. It reports waiting, declined, expired or cancelled, and changes nothing in those cases. When the user HAS approved, the first call sends exactly what they approved and returns the result; a second call sends nothing. A completed share stays with the team as its record, even if the user later leaves. It does not approve anything: approving is the user's act, in their browser, and you must not attempt it. Call it after the user says they approved, or to see whether they have. It never t…

ParameterTypeDescription
request_id *stringThe request_id align_share returned

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…

ParameterTypeDescription
decisionstringThe decision to turn into issues: its id, or words that name it. Pass this to PLAN.
plan_idstringThe plan_id the plan call returned, passed back AFTER the user said yes to that plan. Pass only this to CREATE.
projectstringJira project key. Leave out unless the user named one or the tool asked.
repostringGitHub repository as owner/repo. Leave out unless the user named one or the tool asked.
teamstringLinear team key. Leave out unless the user named one or the tool asked.
trackerstringlinear, 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.

ParameterTypeDescription
include_aibooleanAlso use AI-suggested supersedes links nobody confirmed (labelled in the result)