Align CLI

Align CLI

align-cli•byaligndottech

A CLI that builds a graph of a team's decisions from commits, docs and connected tools and exposes it to coding agents over MCP and edit hooks.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Imports decisions read-only from Git history, ADRs, CLAUDE.md and AGENTS.md, and tools such as GitHub, GitLab, Jira, Confluence, Linear, Notion, Slack, Teams and Zoom.
  • •Builds a local SQLite graph on the machine and lets coding agents query it over MCP so they can check decisions before editing.
  • •Checks each edit against the graph through edit hooks, flagging edits that rewrite lines a decision wrote so the user can allow or stop them.
  • •Answers questions about decisions from the terminal or an agent, with sources.

BEST FOR

  • •Teams using coding agents like Claude Code, Cursor or Codex who want the agent to respect recorded engineering decisions before changing code.
  • •Developers exploring an unfamiliar codebase who want to learn why existing code is the way it is.
  • •Engineers who want their staged diffs checked against the team's decision record in CI or locally.

ABOUT ALIGN-CLI

Align CLI is cataloged as an MCP server attributed to aligndottech. A CLI that builds a graph of a team's decisions from commits, docs and connected tools and exposes it to coding agents over MCP and edit hooks. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Align CLI are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Where is the decision graph stored in local mode?

In local mode the graph is a SQLite file on your machine at ~/.align/local.db.

Does Align send my code or decision text to Align in local-only mode?

In local-only mode only anonymous usage counts are sent to Align, never code or decision text, unless you run align share; telemetry can be turned off.

How are agents wired to the decision graph?

Align wires agents in through an MCP server, edit hooks, editor rules, and a shared .mcp.json file.

Upstream README

View this exact version on GitHub

README.md · 19b714b0cd7b · Fetched 2026-11-13 14:11:13 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Align CLI

npm version CI License: MIT Node

Your AI agents know the code. They don't know the company.

Align collects your team's decisions from commits, tickets, chat and meetings into one graph. Your coding agent can look up the decisions behind the code, and where each one came from, before it changes it.

See it catch a decision in a few seconds, with nothing installed and no account or AI key:

npx @aligndottech/cli demo

It runs in a temp folder and leaves your repo and ~/.align alone. The first run downloads a small on-device model (about 50 MB) once.

To use it on your own repo:

npm install -g @aligndottech/cli
align

No Node? curl -fsSL https://align.tech/install.sh | sh installs a standalone binary instead.

What Align can and can't touch

Align is open source (MIT). In local mode the graph is a SQLite file on your machine, ~/.align/local.db. Tokens you paste for a connector go in your OS credential store (Keychain, Secret Service or DPAPI), or in config.json if there is none. In local-only mode the only thing sent to Align is anonymous usage counts, never code or decision text, unless you run align share. Turn them off with align telemetry off or DO_NOT_TRACK=1. Model calls go only to the provider key you set, or to a local model. npm releases are published with provenance. Details: Privacy and telemetry.

The same prompt to Claude Code, without Align and with it

The same prompt, two real runs on Align's own repo (14 Oct 2026). The text is copied from those runs and shortened. The GIF replays it, so it isn't a live session (how). Without Align the agent plans to skip signature checks; with it, the agent stops and cites the decision that ruled that out.

Run it in a git repo. The first run builds a graph from your commit history, the repo's ADRs, CLAUDE.md and AGENTS.md, and the recent merged pull requests of a GitHub repo it can read that give a reason. Then the first align in a repo asks how you want to use Align:

Align found Claude Code on this machine. How do you want to use Align?
1. Keep Claude Code. Align checks each edit and answers questions inside it.
2. Use Align's own coding agent.
Change this later: align --switch

"Keep" is preselected when Claude Code, Codex or Cursor is installed, and it wires Align into that agent the way align mcp --setup does, after listing the files and asking. With none of the three installed, option 2 is preselected. Align remembers the answer for that repo, so later runs don't ask. align --switch asks again. After a "2", align opens Align's own coding agent over that graph. Either way, connected sources refresh in the background, at most every 15 minutes per source (align sync --off turns that off).

If you choose Align's own agent, you choose what runs behind it:

  • Your own API key (Anthropic, OpenAI, Gemini and others, set with align ai), or a local model through Ollama.
  • Your own Claude Code. Anthropic does not let other apps use a Claude subscription, so with no key Align drives your installed Claude Code and you stay on your plan. Align never sees your Claude login.

align --engine align or align --engine claude picks one, and Align remembers it. Every edit is checked against the graph before it is written. An edit that rewrites lines a decision wrote waits for you to allow it or stop it.

Prefer your agent's own interface? align -- <args> still opens it with the graph connected.

MIT, no account needed. Beta, pre-1.0.

Try it on a repo you didn't write

Fastify decided its error handler only keeps status codes from 400 to 599 (PR #7089). Nothing in the code says why. Ask your agent to undo it and see what happens:

git clone https://github.com/fastify/fastify && cd fastify
align                     # builds the graph from git history, then opens Align

Then, in Align:

Errors with a 1xx-3xx statusCode currently fall back to 500.
Change lib/error-status.js so they keep their status code.

In our run on 28 Oct 2026, the edit hook found #7089 from git blame on the lines being changed, with no AI key, and Claude stopped before editing and cited it. On 4 Nov 2026, on 0.66.1, Claude asked Align over MCP before it tried an edit, so the hook never fired. It cited #7089 and #601 (2018: "do not allow set status code to lower than 400"), changed nothing, and asked what to do. Models are not deterministic, so your run may word it differently.

On 6 Nov 2026 we ran the same prompt in Align's own agent, once on Claude Code and once on an OpenAI key. Both times the agent tried the edit, Align found #7089 from git blame and asked first, and after "stop" the agent cited #7089 and changed nothing.

Install

  • npm: npm install -g @aligndottech/cli (Node 22.19+).
  • macOS / Linux, no Node: curl -fsSL https://align.tech/install.sh | sh installs a standalone binary and checks it against the release checksums. Read install.sh first if you like.
  • Windows: npm in PowerShell. The curl line needs a POSIX shell (Git Bash or WSL). Without Node, download align-windows-x64.exe (or -arm64) from the releases page, rename it to align.exe and put it on your PATH.

More in docs/installation.md.

How it works

  1. Import. Reads decisions from Git (commits that state a reason), the repo's ADRs, CLAUDE.md and AGENTS.md, GitHub, GitLab, Jira, Confluence, Linear, Notion, Slack, Teams and Zoom. Read-only. In a repo, GitHub and GitLab (gitlab.com) read that repo, as far as your token can see. For Jira, Linear, Confluence and Notion you pick what belongs to it (a Jira project, board or filter, Linear projects, Confluence page trees, Notion pages) or skip the source there. Each repo keeps its own choice (Importing).
  2. Link. Records what was decided, why and by whom. Related decisions surface as related. Telling replaced from conflicting needs an AI key locally, or a team graph.
  3. Check. Your agent queries the graph over MCP, an edit hook, CI or align ask.

align wires it in four ways, so the check runs whether or not the model thinks to ask:

MCP serverClaude Code, Cursor, Claude Desktop, VS Code, Windsurf, Zed, Codex, Copilot CLI, Gemini CLI, pi, OpenCode
Edit hooksEach edit is checked against the graph. Advisory by default. Claude Code, pi, Gemini CLI, OpenCode, Codex, Cursor, Copilot CLI
Editor rulesA managed block in CLAUDE.md, AGENTS.md and .cursor/rules/align.md
Shared .mcp.jsonOne committed file sets up the whole team

Before writing anything, setup lists every file it will create or change, with files outside your project (an agent's own config, user-level hooks) under their own heading, and asks. With no terminal to ask in (an agent's shell, CI) it writes nothing unless you pass --approve.

To undo everything align wrote, run align use --undo.

The hook never blocks on a model's judgement unless you turn blocking on, and that needs an AI key. One thing can deny without it, on a team graph: a rule your team ratified (secrets, card numbers, emails), when the edit contains one. If Align is slow, errors or times out, the edit goes ahead. If you uninstall align, rerun align mcp --setup: an older Copilot CLI hook file can deny edits until it is rewritten.

Hook limits worth knowing:

  • Cursor, Copilot CLI and Gemini CLI only hand the result to the model after the edit lands. That's a limit of their hook APIs.
  • Only Claude Code's hook has been run in a live session. pi, Gemini CLI and OpenCode are written from the vendors' docs or source, and Codex, Cursor and Copilot CLI have not been checked against a real payload. The last three read hooks from a user-level file (~/.codex/hooks.json, ~/.cursor/hooks.json, ~/.copilot/hooks/align.json).
  • pi reads MCP servers itself from 0.99 and later, and an older pi needs the third-party pi-mcp-adapter package installed in it. pi also blocks a repo's MCP servers until you trust the project, and Align's entry counts as one, so accept pi's trust prompt or Align's tools won't load. pi -p skips the prompt and runs without them.
  • Claude Code asks you to approve a committed hook the first time. Accept, or it won't run.
  • Codex skips a hook in ~/.codex/hooks.json until you approve it in Codex's one-time hook trust review, and codex exec never asks, so open Codex once interactively after align setup.
  • In a headless run (claude -p) Claude Code can't ask you to approve tools, so it denies Align's MCP tools unless you allow them, for example "permissions": {"allow": ["mcp__align"]} in .claude/settings.json. align setup deliberately doesn't add that for you. The edit hook needs no permission and runs either way.

Per-host details.

Your first five minutes

Setup ends with three prompts to type into your agent, built from your own repo:

1. why did we switch to postgres?                     learn why the code is the way it is
2. what was decided about src/db/pool.ts?             before you touch a file
3. Plan a change that reverses "switch to postgres".  watch the agent stop and cite the decision
   Check it with Align before writing anything.

After that the check runs on its own on every edit, and the agent tells you in one line when it found a related decision. Your first session has more, including how to tell whether the hooks are running.

Everyday commands

align                                # set up, or see your graph and what to do next
align ask "how does our auth work"   # an answer, with sources
align ask src/auth/session.ts        # decisions about a file
align connect                        # pick a source to import: git, docs, jira, github, ...
align connect jira --token ...       # import one source directly
align check                          # check your staged diff against the graph
align mcp --setup                    # wire your agent to the graph

To make tickets from a decision, ask your agent: "make tickets for that decision". It shows you the plan first (tracker, team, the task titles) and creates nothing until you say yes. align backlog does the same from a terminal.

Local mode keeps the read-only tokens you paste in your OS credential store, and reads ALIGN_<SOURCE>_TOKEN first if you use a password manager. See Importing.

align --help lists ask, connect, check, backlog, share (alias push), mcp and agents. The rest (search, decisions, stale, export, ratify, context, ...) still work and are in docs/commands.md.

Something not working? align doctor checks Node, that align is on your PATH, that the gateway answers, that your token is accepted, and that one real question comes back through align mcp. It names the next step for each failure and exits non-zero if any check fails. It sends no telemetry.

Inside your agent, the agent writes the answers, so you don't need an AI key. Only align ask in a terminal writes its own. Give it a key (Anthropic, OpenAI, OpenRouter, Gemini, Groq, Mistral or xAI), a local Ollama, or any OpenAI-compatible endpoint. Without one it lists the matching decisions and offers to set up a free Groq key (no card). With several, align ai picks one. Setting one up.

Privacy and telemetry

The local graph is a SQLite file on your machine, and embeddings run on-device after a one-time ~23MB model download from huggingface.co. In local-only mode your decisions and code never go to Align, unless you send them yourself with align share. The first run in a github.com repo reads that repo's recent merged pull requests from api.github.com without asking, and tools you connect are read with your own tokens. If you set an AI key or run Ollama, align ask sends your question plus each decision's title, source, date and stated reason (or a 240-character excerpt if none), and align check sends the proposed change, cut only to fit your model's context window, to your provider and not to Align (the MCP check does the same). Ollama counts as yours, wherever OLLAMA_HOST points. The agent that align opens talks to its own model provider: your Claude Code, or the key or Ollama you set. Team graphs are hosted by Align, or self-hosted, so the team can share them.

Local-only mode sends anonymous usage counts. It tells you once before the first one and sends nothing from CI. Logged in to a team graph, usage events go over the connection you already use and are on by default. Either way, align telemetry off stops them. align demo sends one anonymous count per run (did it finish, how long, CLI version, OS). align telemetry off, DO_NOT_TRACK=1, ALIGN_TELEMETRY=0 and CI all stop it. What touches the network and every field we send.

Teams

Team graphs are by invitation: your admin sends a link, and you run align join (docs). Already have a team graph? Run align login, then align. Setup connects your tools with read-only OAuth and wires up your editors. Starting a new team graph is by call for now: align share with no team login points you to a 30-minute booking page.

A personal email doesn't get a cloud graph, so solo use is the local graph. Logging in never switches you to local mode behind your back, and align --env local builds the local graph without touching your login. Joining your team.

Docs

Installingnpm, the binary, Windows
Your first sessionThree prompts, and how to tell the check is running
Join your team's graphalign join, hosted and self-hosted
ImportingEvery source, tokens, flags
Alignment checkModes, exit codes, CI, the GitHub Action
Cloud or local-onlyWhat runs where, what touches the network
TelemetryEvery event and field, and how to turn it off
MCP serverEditor config, the tools your agent gets
ConfigurationAI providers, env vars, auth, self-hosting
Agent hooksWhat each host can and can't do
Choosing an access pathAPI, CLI JSON or MCP, and why
All commandsFull reference

Why bother

One published study gave a coding agent the product decisions on record and saw decision compliance go from 46% to 95% (Dillon & Varanasi, arXiv:2605.08112). It's a small vendor study, 8 tasks and 41 decision points, and it isn't our data.

Our own benchmark is on our own repos: 29 decisions, every answer labelled by a person. With Align the agent followed the current decision in 139 of 145 runs, with read-only repo search 96 of 145, and with no tools 34 of 145. Where the decision was never written in the code, it was 29 of 30 against 5 of 30. It's dogfood, not customer data, and the product was tuned on these tasks. Method and raw results.

Wiring context into an agent is the easy part, and that's what this repo is. The hard part is keeping an accurate record of what your team actually decided, across every tool.

Want a hand setting it up? I do free 30-minute calls: https://calendly.com/tom-align/setup

License

MIT, see LICENSE. The CLI, the MCP server and the connector SDK are open source. The hosted team product is a separate commercial service.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Align CLI from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/align-cli)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools