How intent-hq/intent works
This checkout is the cross-cutting tooling layer of Intent, not the desktop app or daemon: the README identifies those as separate component repositories. Its visible responsibilities include agent evaluation, Rust test-gate support, repository checks, and runner-fleet planning. The main workflow shown is an evaluation run starting isolated daemons, exercising task scenarios, scoring results, and writing a report. Edges follow excerpts or SOURCE INDEX references; the broader product workflow is documented in the README, but its implementation is not present in this file tree.
Main entry points: run.mjs Eval runner · resumable_nextest.py Resumable test runner · check-mcp-bindings.mjs MCP binding check · fleet_slots.py Fleet slot totals
Components 23
Agent evaluation
- Eval runner
scripts/agent-eval/run.mjs - Isolated daemon
scripts/agent-eval/lib/daemon.mjs - RPC client
scripts/agent-eval/lib/rpc.mjs - Task scenarios
scripts/agent-eval/tasks.mjs - Transcript scoring
scripts/agent-eval/lib/score.mjs - Report rendering
scripts/agent-eval/lib/report.mjs - Stored metrics
scripts/agent-eval/metrics.mjs
Test gate support
- Nextest stress runner
scripts/nextest_stress.py - Resumable test runner
scripts/resumable_nextest.py - Gate storage policy
scripts/gate_storage.py - TOML parser
scripts/_vendor/tomli/_parser.py - TOML types
scripts/_vendor/tomli/_types.py
Repository checks
- Agent toggle check
scripts/check-agent-feature-toggles.mjs - Documentation link check
scripts/check-doc-links.mjs - Makefile target check
scripts/check-makefile-targets.mjs - MCP binding check
scripts/check-mcp-bindings.mjs - Markdown scanner
scripts/lib/markdown-tables.mjs - Fixture copy utility
scripts/lib/fixture-copy.mjs - Submodule ref utility
scripts/submodule-ref.mjs
Runner fleet
- Fleet slot totals
infra/runners/fleet_slots.py - Smoke plan
infra/runners/smoke_plan.py
Other components
- Coding agents
- Self-hosted runners
Connections 20
- Eval runner → Isolated daemon: starts
scripts/agent-eval/run.mjs - Eval runner → RPC client: connects
scripts/agent-eval/run.mjs - Eval runner → Task scenarios: loads tasks
scripts/agent-eval/run.mjs - Eval runner → Transcript scoring: scores transcripts
scripts/agent-eval/run.mjs - Eval runner → Report rendering: renders report
scripts/agent-eval/run.mjs - Isolated daemon → RPC client: connects via
scripts/agent-eval/lib/daemon.mjs - Eval runner → Coding agents: evaluates
- Stored metrics → Transcript scoring: uses scoring
scripts/agent-eval/metrics.mjs - Resumable test runner → Gate storage policy: uses policy
scripts/resumable_nextest.py - Resumable test runner → Nextest stress runner: uses runner
scripts/resumable_nextest.py - Resumable test runner → TOML parser: parses TOML
scripts/resumable_nextest.py - TOML parser → TOML types: imports types
scripts/_vendor/tomli/_parser.py - Agent toggle check → Submodule ref utility: uses ref helper
scripts/check-agent-feature-toggles.mjs - MCP binding check → Submodule ref utility: uses ref helper
scripts/check-mcp-bindings.mjs - MCP binding check → Makefile target check: references check
scripts/check-mcp-bindings.mjs - Documentation link check → Markdown scanner: uses scanner
- Fixture copy utility → Self-hosted runners: validates copies
- Fleet slot totals → Smoke plan: imports fleet config
infra/runners/fleet_slots.py - Fleet slot totals → Self-hosted runners: totals capacity
infra/runners/fleet_slots.py - Smoke plan → Self-hosted runners: plans jobs