# Global install (CLI)
npm install -g @smartergpt/lex
# Or as a project dependency
npm install @smartergpt/lexAfter installation, run npx lex init to set up your workspace.
Five steps to policy-aware work continuity with receipts.
# Global install (CLI)
npm install -g @smartergpt/lex
# Or as a project dependency
npm install @smartergpt/lexAfter installation, run npx lex init to set up your workspace.
Add minimal lexmap.policy.json with module rules defining architecture boundaries, ownership, and allowed/forbidden edges.
Add lex.yaml to describe workflows (review-pr, ship-release, etc.) with their inputs and policy constraints. Learn about lex.yaml →
Use lex remember at meaningful moments; include next action, blockers, and module_scope. Frames become your episodic memory.
lex recall TICKET-123 to get rendered memory card + Atlas Frame (fold radius 1) showing neighboring modules.
Assistants cite policy violations from timestamped Frames — answers with receipts, not vibes.
Lex 2.0.0 provides three stable contract surfaces and AX guarantees that agents, CI, and runners can depend on: