get_why
Explains why code is shaped this way by surfacing decision records and evidence commits, guiding safe refactors and pattern alignment.
Instructions
Why this code is shaped this way — decision records + evidence commits.
Call before refactors or pattern divergences. Query modes: a question
("why is auth using JWT?"), a file path (governing decisions + origin
story + alignment score), a question anchored to targets, or no query
(decision health dashboard). Falls back to git archaeology when no
decisions exist for a path — never empty.
Args:
query: question, file/module path, or omit for the dashboard.
targets: optional file paths to anchor the search.
repo: usually omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| query | No | ||
| targets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |