Agent Lexicon quickstart
This path starts with an empty repository and ends with a published terminology snapshot that agents and CI can consume.
1. Initialize the workspace
Section titled “1. Initialize the workspace”Run this from the repository root:
alex initThe command creates:
lexicon/for the git-tracked vocabulary;.agent-lexicon/for the local workspace and configuration;- default scan paths and ignore behavior.
2. Discover candidate terms
Section titled “2. Discover candidate terms”Use the configured paths:
alex scanOr override them for one run:
alex scan README.md docs srcAdd a quality report when tuning discovery:
alex scan --quality-report3. Review the evidence
Section titled “3. Review the evidence”alex reviewThe local review UI shows candidate terms and line-numbered evidence. Accept, reject, or defer candidates; discovery itself does not publish vocabulary.
4. Publish accepted decisions
Section titled “4. Publish accepted decisions”alex publishPublishing creates the reviewed lexicon snapshot used by deterministic runtime and merge checks.
5. Give an agent canonical context
Section titled “5. Give an agent canonical context”alex context lexicon/lexicon.yamlThe 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.
6. Check terminology before merge
Section titled “6. Check terminology before merge”alex check-merge --root . --base main --head HEADUse a blocking review gate when the team is ready:
alex check-merge --root . --base main --head HEAD --fail-on-review