Asagiri
CLI

investigate command

Local-first structured investigation before agent execution.

investigate command

asa investigate implements the Investigation & Root Cause Engine (spec-my-A §25).

Basic usage

asa investigate "why onboarding fails after invite"
asa investigate "billing regression" --flow onboarding --depth deep --no-cloud
asa investigate "scope check" --estimate-only

Failure-driven scope

asa investigate "fix failing tests" --from-failed-tests

Parses go test -json output to narrow scope to failing packages and test files.

Work integration

asa work "develop workspace-saas" --plan-only --investigate-first
asa verify billing-v2 --investigate-on-failure

Artefacts

Each investigation writes under .asagiri/investigations/<id>/:

FilePurpose
report.md / report.jsonFull investigation report
context-pack.jsonMinimal agent context
replay-pack.jsonReplay instructions
graph.jsonRoot-cause graph

Graph visualization

asa investigate graph <investigation-id>

Modes

DepthBehavior
quickSmaller file cap, fast collectors
standardDefault
deepLarger context pack
ciTuned for CI / verify failures

Safety

  • --no-cloud disables cloud model calls
  • Sensitive paths are excluded from context packs
  • Hypotheses are scored candidates, not confirmed root causes