Make targets¶
Every
maketarget in the Makefile, grouped asmake helpgroups them, with the VS Code task that runs it — generated from the Makefile and.vscode/tasks.json.
make help prints the same list (Law AI — Docker-first development). Each target shells into docker compose unless its group says host; the rule is in AGENTS.md § Docker-First Workflow. Edit the help: recipe or a target's comment in the Makefile, then run python3 scripts/gen_make_reference.py.
Stack¶
| Command | What it does | VS Code task |
|---|---|---|
make dev |
Start full stack (foreground, builds images) | Docker: Start Full Stack |
make down |
Stop and remove containers | Docker: Stop Stack |
make logs |
Tail logs from all services | Docker: Tail Logs |
make ps |
List running services | |
make debug |
Start stack with debugpy/inspect attach ports | Docker: Start Full Stack (Debug) |
make debug-frontend |
Build/start debug stack detached until frontend is healthy | Docker: Build & Start Frontend |
Shells / one-offs (in containers)¶
| Command | What it does | VS Code task |
|---|---|---|
make shell-backend |
Bash shell in the backend container | Docker: Backend Shell |
make shell-frontend |
Sh shell in the frontend container | Docker: Frontend Shell |
make manage CMD='...' |
Run Django manage.py inside backend container | Docker: Manage.py (prompt) |
make migrate |
Run Django + Neo4j migrations + ensure_checkpointer | Docker: Migrate |
make ingest |
Run scripts/ingest_sample.py | Docker: Ingest Sample Data |
make densify-backfill |
Re-resolve historical citations into :CITES edges (COMMIT=1 to write) | |
make backfill-embeddings |
Embed historical :Case/:StatuteSection nodes locally (COMMIT=1 to write) |
Tests (all run in containers)¶
| Command | What it does | VS Code task |
|---|---|---|
make test |
Backend pytest + frontend vitest | Docker: Run All Tests |
make test-backend |
Backend pytest (all unit tests, excludes integration+legalbench) | Docker: Backend Tests |
make test-frontend |
Frontend vitest | Docker: Frontend Tests |
make test-lsat-static |
Static LSAT site vitest (node container, no compose service) | |
make test-coverage |
Coverage reports for backend + frontend | Docker: Coverage Report |
make test-smoke |
Repo-wide smoke + spec/backlog lint | |
make test-specs |
Spec validator + backlog lint | |
make test-integration |
Integration tests against real Neo4j/Postgres | Docker: Integration Tests (real DBs) |
make test-integration-ollama |
Factory run against the local Ollama model | |
make test-e2e |
Browser end-to-end against the live stack (nightly; docs/e2e-testing.md) | |
make test-legalbench |
LegalBench eval | Docker: LegalBench Eval |
make legalbench-cache |
Download the real LegalBench data (pinned revision) into backend/var/legalbench/ |
Quality¶
| Command | What it does | VS Code task |
|---|---|---|
make lint |
ruff + black + frontend lint --fix (in containers) | Docker: Format & Lint All |
make lint-root |
Report ruff/black drift in scripts/ + tests/ (never gates) | |
make format |
black + ruff fix + prettier (in containers) | |
make typecheck |
mypy --strict (ratcheted) + tsc --noEmit (in containers) | Docker: Type Check (mypy + tsc) |
make mypy-baseline |
re-bank backend/mypy-baseline.txt after a burn-down | |
make lint-specs |
spec drift + BACKLOG + UI/UX contract (host stdlib) | Docker: Spec & Backlog Validators |
make nightly-dry-run |
smoke-test nightly-tests.yml locally via nektos/act (dry_run path) | |
make ux-audit |
UI/UX contract, both front ends (docs/ui-ux-review.md) | |
make ui-sync |
mirror the shared UI/keyboard/timer primitives into lsat-static | |
make lsat-static-build |
build the static LSAT site in a container (as Pages does) | |
make lsat-static-e2e |
viewport/sticky measurements over the built export (real browser) | |
make lsat-static-e2e-cached |
the same suite, reusing node_modules and out/ when they are current |
Local AI stack (Spec 010)¶
| Command | What it does | VS Code task |
|---|---|---|
make local-ai-up |
Start postgres/redis/neo4j/ollama/phoenix | Docker: Local AI Stack Up |
make local-ai-down |
Stop the above | |
make local-ai-pull |
Pull default Ollama models | Docker: Pull Local AI Models |
make local-ai-pull-small |
Pull one small instruct model so the local integration tests can run on a laptop | |
make local-ai-health |
Hit /api/agents/health/local-ai | Docker: Local AI Health Check |
make local-ai-up-gpu |
Workstation tier: Ollama on NVIDIA GPUs, 70B default (docker-compose.gpu.yml) | |
make dev-gpu |
Full stack on the GPU overlay | |
make vllm-up |
Optional vLLM server on :8001 (GPU overlay, profile vllm) | |
make local-ai-bundle |
Build the air-gapped bundle (models + images) into dist/ | |
make local-ai-offline-install |
Restore a bundle on a disconnected host | |
make observability-up |
Prometheus :9090 + Grafana :3002 (queue depth; GPU panels need the server tier) | |
make local-ai-up-server |
Server tier: GPU + vLLM + Prometheus/Grafana/DCGM | |
make validate-claude-code |
Validate the dev-time Claude Code OAuth integration (LSAT) | |
make llm-spend |
Roll up llm_call token/cost accounting by agent + tier | |
make xai-login |
Authorise the xAI Grok tier (subscription OAuth, device code) | |
make validate-xai |
Validate the xAI Grok tier end-to-end | |
make studio-up |
LangGraph Studio host for LegalWorkflow (needs LANGSMITH_API_KEY; docs/local-ai.md) | |
make studio-down |
Stop the Studio host | |
make lsat-author-demo |
Run the LSATContentAuthor agent live (via Claude Code when opted in) | Agents: LSAT Author Demo |
make lsat-guide-backfill |
Draft solve guides for guide-less questions into the HITL queue | |
make lsat-library-audit |
Deterministic knowledge-library health report (no LLM) | |
make lsat-cross-check-sweep |
Blind-solve unchecked questions; disagreements to the HITL queue | |
make lsat-library-review |
HITL-gated LSATLibrarian review pass over the library | |
make lsat-contrast-sweep |
Draft contrast variations (same stimulus, new type) through the judge/revise loop into the HITL queue | |
make lsat-type-review |
Blind-read question types; disagreements with the stamp to the HITL queue | |
make lsat-question-review |
Judge every bank item; rewrite the ones the judge objects to, into the HITL queue (Fable final review) | |
make lsat-synth-list |
Schemas and domain packs the synthesis engine ships | |
make lsat-synth-sweep |
Generate across every schema x domain and verify each | |
make lsat-synth-polish-yield |
Measure the polish prompt's yield (calls the provider chain) | |
make lsat-synth-calibrate |
Measured vs declared difficulty per schema | |
make legal-analyst-demo |
Run the LegalAnalyst IRAC agent live (via Claude Code when opted in) | Agents: Legal Analyst (IRAC) Demo |
Autonomy (Spec 018 — requires AUTONOMY_ENABLED=true)¶
| Command | What it does | VS Code task |
|---|---|---|
make autonomy-run KIND=corpus_growth SOURCE=courtlistener |
one cycle (also accepts AUTONOMY_KIND/SOURCE) | Autonomy: Run Cycle (dry-run) |
make autonomy-run KIND=digest |
compose + deliver the digest | Autonomy: Run Cycle (dry-run) |
make autonomy-status |
show beat schedule | Autonomy: Beat Status |
make autonomy-stop |
stop consuming from autonomy queue (does NOT purge) |
Misc¶
| Command | What it does | VS Code task |
|---|---|---|
make reset-db |
DESTRUCTIVE: drop ONLY the Postgres volume (see the major-version pin in docker-compose.yml), then 'make dev && make migrate' | |
make clean |
'docker compose down -v' + clear caches | |
make host-setup |
LEGACY: pip install + npm install on host | |
make host-test |
LEGACY: run tests on host (no Docker) |
Not listed in make help¶
Helpers and companions of the targets above. The note is the first sentence of the comment above the target in the Makefile, when it has one.
| Command | Note | VS Code task |
|---|---|---|
make setup |
||
make test-live-network |
Live-network drift smoke (BL-20260511-07). | |
make test-e2e-down |
Put the frontend back on the dev backend after a make test-e2e run. |
|
make test-e2e-typecheck |
Type-checks the specs against the Playwright/axe types, which only exist in the e2e image — the app's own tsc --noEmit excludes frontend/e2e. |
|
make test-legalbench-gate |
CI form: fails the build when a listed subset drops more than 1 pp against backend/var/legalbench/baseline.json (constitution §3). | |
make legalbench-baseline |
Record the current accuracies as the tracked baseline. | |
make fleet-kit |
||
make local-ai-verify |
Is the configured gate model actually present? | |
make logs-gpu |
||
make local-ai-down-gpu |
||
make vllm-down |
||
make observability-down |
||
make local-ai-down-server |
||
make lsat-export |
Regenerate the static LSAT practice-site artifact (spec 025): export the bank in Docker, then copy it into the committed site directory that GitHub Pages deploys. | LSAT: Export Static Site Data |
make lsat-synth-preview |
||
make lsat-synth-generate |