Skip to content

Agent Lexicon quickstart

This path starts with an empty repository and ends with a published terminology snapshot that agents and CI can consume.

Run this from the repository root:

Terminal window
alex init

The command creates:

  • lexicon/ for the git-tracked vocabulary;
  • .agent-lexicon/ for the local workspace and configuration;
  • default scan paths and ignore behavior.

Use the configured paths:

Terminal window
alex scan

Or override them for one run:

Terminal window
alex scan README.md docs src

Add a quality report when tuning discovery:

Terminal window
alex scan --quality-report
Terminal window
alex review

The local review UI shows candidate terms and line-numbered evidence. Accept, reject, or defer candidates; discovery itself does not publish vocabulary.

Terminal window
alex publish

Publishing creates the reviewed lexicon snapshot used by deterministic runtime and merge checks.

Terminal window
alex context lexicon/lexicon.yaml

The output is a compact brief of canonical terms and language to avoid. It is designed to be inserted before an agent task without handing the agent the entire review workspace.

Terminal window
alex check-merge --root . --base main --head HEAD

Use a blocking review gate when the team is ready:

Terminal window
alex check-merge --root . --base main --head HEAD --fail-on-review