Skip to content

feat(cli): serve guidance from the CLI - #1382

Draft
cristifalcas wants to merge 9 commits into
mainfrom
cf/agent-guidance-surface
Draft

feat(cli): serve guidance from the CLI#1382
cristifalcas wants to merge 9 commits into
mainfrom
cf/agent-guidance-surface

Conversation

@cristifalcas

@cristifalcas cristifalcas commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What changed

Adds aspect prompts, a bundled prompt library for coding agents working with repositories.

  • aspect prompts list lists the available guidance.
  • aspect prompts show <PROMPT> prints one prompt as Markdown.
  • aspect prompts detect inspects repository markers, recommends an ordered prompt sequence, and explains each recommendation; --json provides the same information structurally.
  • When launched through bazel run, detection uses BUILD_WORKSPACE_DIRECTORY, so it inspects the caller's checkout rather than the runfiles tree.

The catalogue deliberately focuses on high-signal guidance: Rust, Go, Python, JavaScript/TypeScript, Scala, protobuf, container, rules_rs, rules_py, rules_oci, and Aspect Remote scenarios. Java and generic in-place Go/JavaScript upgrade prompts were removed. Shared foundations now cover only version precedence, root labels, Git ignore policy, and meaningful validation.

Prompt bodies are compiled Markdown assets. Repository AXL/config cannot redefine the catalogue or its policy. aspect describe remains the resolved task and feature surface; it does not own prompt content.

Why

Prompts need to be available before a repository has Bazel or Aspect configuration. Keeping scenario inference in the CLI makes them discoverable without allowing it to silently choose an agent's final artefact.

Validation

  • ASPECT_WRAPPER_SKIP=1 bazel test //crates/aspect-cli:test
  • ASPECT_WRAPPER_SKIP=1 bazel build //crates/aspect-cli

LLMs used

Best from my tests: Claude with Opus 5, with high effort. It's also faster.

Codex, gpt-5.6-terra with medium effort was less capable. But, better I got better results with sol and high effort
At least for rust, Codex with terra seems to draw the wrong conclusions more often.

@aspect-workflows

aspect-workflows Bot commented Aug 11, 2026

Copy link
Copy Markdown

✨ Aspect Workflows Tasks

📅 Sun Aug 16 19:31:04 UTC 2026

❌ 2 failed tasks

  • ❌ delivery-uncacheable [delivery] · ⏱ 37.5s · ✨ Aspect · 🐙 GitHub Actions
    💬 failed in deliver · Delivery failed (1 delivery fail)
  • ❌ test-gha [test] · ⏱ 3m 6s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 failed in test · Bazel test failed

⚠️ 3 flagged tasks

  • ⚠️ delivery-gha-debug [delivery] · ⏱ 31.4s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Delivery complete (1 delivered · 2 warn · 4 skipped)
  • ⚠️ delivery-gha [delivery] · ⏱ 33.9s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Delivery complete (1 delivered · 2 warn · 4 skipped)
  • ⚠️ delivery-uncacheable-warn [delivery] · ⏱ 12.1s · ✨ Aspect · 🐙 GitHub Actions
    💬 Delivery complete (1 warn)

✅ 28 successful tasks

  • ✅ axl-smoke-gha-bootstrap [build] · ⏱ 1m 10s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (1 built)
  • ✅ run-axl-smoke [run] · ⏱ 20.4s · 🐙 GitHub Actions · ☑️ Check
    💬 Ran //examples/deliverable:py_deliverable
  • ✅ run-axl-smoke-2 [run] · ⏱ 12.4s · 🐙 GitHub Actions · ☑️ Check
    💬 Ran //examples/deliverable:sh_deliverable
  • ✅ axl-tests-gha-bootstrap [build] · ⏱ 2m 7s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (1 built)
  • ✅ build-gha-debug [build] · ⏱ 13m 46s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (172 built)
  • ✅ build-gha [build] · ⏱ 8m 49s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (172 built)
  • ✅ build-gha-ephemeral [build] · ⏱ 1m 2s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (10 built)
  • ✅ buildifier-gha-debug [buildifier] · ⏱ 33.6s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ buildifier-gha [buildifier] · ⏱ 51.7s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ delivery-no-remote-exec [delivery] · ⏱ 6.8s · ✨ Aspect · 🐙 GitHub Actions
    💬 Delivery complete (no deliveries)
  • ✅ format-gha-debug [format] · ⏱ 1m 19s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task [format] · ⏱ 1m 21s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task-2 [format] · ⏱ 10.8s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task-3 [format] · ⏱ 8.8s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-format-repeat-task-4 [format] · ⏱ 8.5s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ format-gha [format] · ⏱ 1m 33s · 🐙 GitHub Actions · ☑️ Check
    💬 Format complete (clean)
  • ✅ gazelle-gha-debug [gazelle] · ⏱ 1m 7s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ gazelle-from-source-gha-debug [gazelle] · ⏱ 1m 59s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ gazelle-from-source-gha [gazelle] · ⏱ 2m 27s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ gazelle-gha [gazelle] · ⏱ 34.8s · 🐙 GitHub Actions · ☑️ Check
    💬 Gazelle complete (clean)
  • ✅ init-shell [build] · ⏱ 45.9s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (10 built)
  • ✅ lint-gha-debug [lint] · ⏱ 41.6s · 🐙 GitHub Actions · ☑️ Check
    💬 Lint complete (clean)
  • ✅ lint-gha [lint] · ⏱ 43.3s · 🐙 GitHub Actions · ☑️ Check
    💬 Lint complete (clean)
  • ✅ test-gha-debug [test] · ⏱ 15m 50s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (26/26 passed · 26 cached)
  • ✅ test-gha-ide-target-pattern-file [build] · ⏱ 14.2s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel build complete (1 built)
  • ✅ test-gha-coverage [test] · ⏱ 23.6s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed · 1 cached)
  • ✅ test-gha-target-pattern-file [test] · ⏱ 14.5s · ✨ Aspect · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed · 1 cached)
  • ✅ test-gha-ephemeral [test] · ⏱ 33.5s · 🐙 GitHub Actions · ☑️ Check
    💬 Bazel test complete (1/1 passed)

🔁 Reproduce

❌ delivery (delivery-uncacheable · delivery-gha-debug · delivery-gha · delivery-uncacheable-warn)

# --mode=always --track-state=false for off-runner with no state backend.
aspect delivery \
  --commit-sha=6b1de56e6902b204bd13e726cf8d46ba659aa790 \
  --mode=always \
  --track-state=false \
  --dry-run=true

Install aspect: aspect.build/docs/cli/install


⏱ Last updated Sun Aug 16 19:50:28 UTC 2026 · 📊 GitHub API quota 1,329/15,000 (9% used, resets in 24m)
🚀 Powered by Aspect CLI (v0.0.0-dev)  |  Aspect Build · X · LinkedIn · YouTube

@cristifalcas cristifalcas changed the title feat(cli): serve guidance from the CLI, and stop dumping the whole surface feat(cli): serve guidance from the CLI Aug 12, 2026
@cristifalcas
cristifalcas force-pushed the cf/agent-guidance-surface branch from 83a3616 to e1405cf Compare August 16, 2026 16:02
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ec9e1874-b4e5-4c9b-be46-b2d4de1df61e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@cristifalcas
cristifalcas force-pushed the cf/agent-guidance-surface branch 5 times, most recently from cbf302d to a3476cb Compare August 16, 2026 18:28
@cristifalcas
cristifalcas force-pushed the cf/agent-guidance-surface branch from a3476cb to ff26d07 Compare August 16, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant