Skip to content

Agent context

A coding agent should see the project vocabulary before it invents a competing one. The context command formats a published lexicon as a compact task brief.

Terminal window
alex context lexicon/lexicon.yaml

Typical output separates:

Use these canonical terms:
- ContextSpace
- RuntimeSnapshot
Avoid:
- WorkspaceScope (use "ContextSpace" instead)

Insert the generated brief:

  • before a coding-agent task;
  • into a reusable repository instruction;
  • into a benchmark seeded condition;
  • through an MCP-compatible agent workflow.

The context command does not scan the repository, accept candidates, or modify the lexicon. It renders already reviewed vocabulary for consumption by an agent.

Use the context brief before work begins, then inspect the diff:

Terminal window
git diff | alex lint-diff --stdin

At pull-request or merge time, use:

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