Daily Usage
Once you’ve initialized lexicon (Quickstart), here are the workflows you’ll use most often.
The essentials
Section titled “The essentials”Most days you only need two commands:
lexicon verify # run gates + compute scorelexicon # start a chat session (or resume the last one)Starting a design session
Section titled “Starting a design session”lexicon (or lexicon chat) is the primary interface. It starts an interactive session where the AI guides you through designing contracts, gates, tests, and implementation prompts.
lexicon auth login # one-time setuplexicon # start or resume a chat sessionWithin the chat session, the AI can:
- Create and update contracts, gates, conformance tests, behavior scenarios
- Infer contracts from existing code
- Check coverage gaps and API drift
- Sync CLAUDE.md, check repo health, manage prompts
- Generate implementation prompts from session or existing contracts
Sessions are automatically saved and can be resumed when you restart. On resume, you’ll see the session topic and where you left off.
If an action fails during a session (e.g., referencing a contract that doesn’t exist), the AI catches the error and suggests corrections — you don’t need to debug action failures manually.
Checking your work
Section titled “Checking your work”After making changes, verify everything still passes:
lexicon verifyThis runs your gates (formatting, linting, tests), computes the quality score, checks coverage, and detects API drift — all in one command.
For a deeper check including repo health:
lexicon verify --healthThis adds health checks for manifest, gates, scoring model, CLAUDE.md, and API baseline.
Common patterns
Section titled “Common patterns”Before a PR
Section titled “Before a PR”lexicon verify --healthAfter adding a new module
Section titled “After adding a new module”Start a chat session and ask the AI to scan your API and suggest a contract:
lexiconThen tell it: “Scan the public API and suggest a contract for the new module.”
Weekly review
Section titled “Weekly review”Start a chat session and ask for a coverage report and improvement suggestions:
lexiconThen use directives like COVERAGE_REPORT, API_SCAN, or ask for general advice.