Skip to content

Align CLI: Check Coding-Agent Edits Against Decisions Your Team Already Made

AINewss Editorial Team

Align CLI is a free local CLI and MCP server that imports team decisions from git, tickets and chat, then checks coding-agent edits against them. This guide covers install commands, three usage paths, sources, privacy behaviour, the project's own benchmark and the hook-coverage caveats its README discloses.

View 2 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

A local decision graph connecting commits and tickets to a coding agent, with an edit hook checking a file change, representing Align CLI.

What is Align CLI?

Align CLI is a free, local command-line tool and MCP server that imports decisions your team already made from commits, pull requests, docs, tickets and chat, then checks coding-agent edits against them. Its README says agents know the code but not the company. It is MIT licensed and still beta, pre-1.0.

The repository frames the problem as repetitive loops: an agent rewrites lines that a previous decision deliberately wrote. Align reads the decision from where it was recorded and warns or blocks before the edit lands, depending on configuration.

How does Align build its decision graph?

Running align in a git repo reads commits, ADRs, RFCs, decision logs, CLAUDE.md, AGENTS.md and recent merged pull requests, then stores what was decided, why and where in a local SQLite file at ~/.align/local.db. Connected sources refresh in the background at most every 15 minutes each.

Before writing anything, Align lists every file it will touch and asks for confirmation. The graph is a local artefact you can delete, and the README says imports are read-only. A first run in a github.com repository does read recent merged pull requests from the API without asking, which is the one early network call to be aware of.

How do you install Align CLI?

Install with npm install -g @aligndottech/cli; Node 22.19 or newer is required. Without Node, a shell installer downloads a standalone binary. The README offers a no-install demo with npx @aligndottech/cli demo, which runs in a temporary folder and first downloads a small on-device model of about 50 MB.

npm install -g @aligndottech/cli
align

On older Node versions npm installs an old package without align up, so check node -v first. On Linux, local embeddings need glibc; the README recommends node:22-bookworm-slim rather than an Alpine image in Docker.

What are the three ways to use Align?

Align supports three paths: commit a DECISIONS.md file that your agent reads, wire an edit hook and MCP server into the agent, or run a CI check that fails a pull request against the committed file. Each path trades setup for coverage, and the README documents commands for all three.

align up --out DECISIONS.md --limit 30
align check --ci --base origin/main --decisions-file DECISIONS.md

The file path is the simplest: Align writes decisions and adds an @DECISIONS.md line to your CLAUDE.md. The CI path needs only a provider key from a repository secret, exits 1 on a conflict and 2 when it could not check, so a skipped check never passes.

Which agents and sources does Align support?

Local sources include git history, ADRs, RFCs, tenets and architecture docs. With align connect, the tool reads GitHub, GitLab, Jira, Confluence, Linear, Notion, Slack, Teams and Zoom, all read-only. Edit hooks and MCP are wired for Claude Code, Cursor, Copilot CLI, Gemini CLI and several other agents.

align ask "how does our auth work"
align check
align mcp --setup

The MCP server lets an agent query the graph directly, while the edit hook runs outside the model so the agent does not have to remember to ask. Ask and check need an AI key or a local Ollama; search inside an agent does not, because the agent does the reading.

What does Align say about privacy and telemetry?

In local mode the graph is a SQLite file on your machine and connector tokens go into the OS credential store. The README says only anonymous usage counts leave the machine, never code or decision text, unless you run align share; telemetry can be turned off. align ask and align check send your question or diff to your chosen provider.

That distinction matters for teams evaluating the tool: the decision graph stays local, but any verdict that needs a model is processed by whichever provider key you configure. Hosted team graphs are a separate commercial product from the open-source CLI.

Does Align actually work?

The README cites one small external study where decision compliance rose from 46% to 95%, and its own dogfood benchmark where an agent followed the current decision in 139 of 145 runs, versus 96 with read-only search and 34 with no tools. The authors call it dogfood, not customer data, and say the product was tuned on those tasks.

Those caveats are more useful than the headline numbers. A vendor benchmark on its own repositories is evidence that the mechanism works, not proof that it will transfer to your codebase or your agent. The external study is eight tasks and 41 decision points.

What are the limits of Align CLI?

The most important limit is hook coverage: Claude Code's pre-edit hook is the only one recorded in a live session, while Cursor, Copilot CLI and Gemini CLI hand the result to the model after the edit lands. Blocking is opt-in and needs an AI key. If Align errors or times out, the edit goes ahead.

The reasonable adoption path is to start with a committed DECISIONS.md and a CI check, then add the edit hook once you have confirmed your host's behaviour. Treat Align as a way to surface recorded decisions, not as a guarantee that an agent will obey them.

What happens if Align cannot reach the agent hook?

The README says the edit goes ahead when Align is slow, errors or times out. That makes the tool advisory by default. If you need enforcement, turn on blocking with an AI key, and confirm your host actually supports pre-edit hooks rather than reporting after the write.

References

  1. aligndottech/align-cli - READMEgithub.com
  2. io.github.aligndottech/cli - MCP Registry catalogue entrycatalog.agentage.io