feat(cli): agent-native inspection surfaces#68
Merged
Conversation
Add five read-only, --json-capable CLI commands so AI agents can inspect Boruna projects without reading source: - boruna lang codes — registry of stable diagnostic codes (E001–E009) - boruna doctor — environment + toolchain health checks - boruna workflow graph — DAG facts: nodes, edges, topo order, roots, leaves - boruna size — bytecode artifact cost report - boruna skills — embedded, agent-curated documentation The diagnostic-code registry (tooling/src/diagnostics/registry.rs) is the single source of truth; a drift test parses diagnostics/mod.rs so a code added without a registry entry fails the build. Motivated by a competitive review of vercel-labs/zero. See docs/design-agent-native-cli.md and claudedocs/research_zerolang_vs_boruna_2026-05-17.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Five read-only,
--json-capable CLI commands so AI agents can inspect Boruna projects without reading source. Motivated by a competitive review ofvercel-labs/zero— seeclaudedocs/research_zerolang_vs_boruna_2026-05-17.md.boruna lang codes [--json]E001–E009) — name, summary, categoryboruna doctor [--json]boruna workflow graph <dir> [--json]boruna size <file.ax> [--json].axbcbyte sizeboruna skills list/get <name>ax-language,cli,workflows,diagnostics) — usable with no repo checkoutAll five are read-only. No persisted-schema changes, no determinism/replay impact, no new MCP tools.
Notes
E001–E009). Per the agreed scope it was replaced with the machine-readable registry (tooling/src/diagnostics/registry.rs) — the agent-facing piece that was missing. A drift test parsesdiagnostics/mod.rsso a code added without a registry entry fails the build (convention §33).boruna lang codeslives underlang(already "diagnostics, repair") rather than a new top-level command, to avoid surface bloat.Test plan
crates/llmvm-cli/tests/cli_agent_native.rscargo clippy --workspace --all-targets -D warningscleancargo fmt --all --checkcleancargo test --workspace— all 46 test targets pass exceptcli_watch::watch_reruns_on_file_change, verified pre-existing: it fails identically on cleanmaster(filesystem-watch timing test, unrelated to this branch).Design / architecture / test plan:
docs/design-agent-native-cli.md,docs/architecture-agent-native-cli.md,docs/test-plan-agent-native-cli.md.🤖 Generated with Claude Code