deciduous: Command for Claude Code

.claude/commands/decision-graph.md

decision-graph is a command for Claude Code from notactuallytreyanastasio/deciduous. It costs 0 tokens per session (3,863 once invoked), scanned B, original, Apache-2.0.

A command that builds a decision graph—a directed map showing how a codebase’s design choices changed over time—from its Git commit history.

In plain words
What is it for?
Use it to trace why design decisions were introduced, changed, or removed in a repository and to document their history.
Why use it?
It turns scattered commit messages, code, comments, and tests into a record of how the project evolved, while keeping the explanation grounded in the repository.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is notactuallytreyanastasio/deciduous's own configuration. It tells Claude Code how to work on deciduous itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deciduous configures →

Reuse

Borrowing it

Nothing to install: this file belongs to notactuallytreyanastasio/deciduous. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/notactuallytreyanastasio/deciduous/main/.claude/commands/decision-graph.md
Clone the repo
git clone --depth 1 https://github.com/notactuallytreyanastasio/deciduous

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for decision-graph

README.md
[![agentmods](https://agentmods.dev/badge/commands/notactuallytreyanastasio/deciduous/decision-graph/github.svg)](https://agentmods.dev/commands/notactuallytreyanastasio/deciduous/decision-graph)
Your own site
<a href="https://agentmods.dev/commands/notactuallytreyanastasio/deciduous/decision-graph"><img src="https://agentmods.dev/badge/commands/notactuallytreyanastasio/deciduous/decision-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for decision-graph

Your own site · 80×15
<a href="https://agentmods.dev/commands/notactuallytreyanastasio/deciduous/decision-graph"><img src="https://agentmods.dev/badge/commands/notactuallytreyanastasio/deciduous/decision-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03863
Opus 5.5 $0.00000 $0.01545
Sonnet 5.5 $0.00000 $0.00773
Haiku 4.5 $0.00000 $0.00386

Measured 1mo ago against content hash e323be14f3fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

decision-graph scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

allowed-tools: *
.claude/commands/decision-graph.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Decision Graph Construction

You are building a deciduous decision graph - a DAG that captures the evolution of design decisions in a codebase.

Target repository: $ARGUMENTS (if provided), otherwise the current directory.

Use the deciduous CLI (at ~/.cargo/bin/deciduous) to build the graph. Run deciduous commands in the current directory (not inside the source repo).

For git commands to explore commit history, use git -C <repo-path> to target the source repo.

CRITICAL: Only use information from the repository itself (commits, code, comments, tests). Do not use your prior knowledge about the project. Everything must be grounded in what you find in the repo.

Commit Exploration

Use a layered strategy to find all relevant commits:

Layer 1: See all commits. Start with the full list when building narratives.

git log --oneline --after="..." --before="..." -- path/

Layer 2: Keyword expansion. Once you have narratives, search for spelling variations and related terms you might have missed (e.g., "cache" -> "caching", "cached", "LRU", "invalidate"). For each key identifier in your narratives, trace its full lifecycle:

  • Introduction
  • Changes and modifications
  • Renames
  • Deprecation or removal
  • Replacement by other mechanisms
  • Becoming stable/public API

If there's a feature flag controlling the feature, search for commits mentioning that flag.

Layer 3: Follow authors. If a narrative has a key author, check their commits +/-1 month from known commits. They often work on related things.

Layer 4: Pull request context. If the gh CLI is available, use it to find PRs associated with key commits and paths. PRs often contain design discussion, review comments, and rationale that never appears in commit messages.

# Find PRs that touched a specific path
gh pr list --state merged --search "path/to/module" --limit 50

# Find the PR that introduced a specific commit
gh pr list --state merged --search "<commit-sha>" --limit 5

# Read PR description and review comments for context
gh pr view <pr-number>
gh api repos/{owner}/{repo}/pulls/<pr-number>/comments

# Search PR titles/bodies for keywords from your narratives
gh pr list --state merged --search "<keyword>" --limit 30

Read the full file on GitHub · 400 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines e323be14f3fc
  2. 2mo ago First seen · 396 lines · 0 tokens per session scan B 4a4a918ed16c

Subscribe to this mod's changes

decision-graph is a command published in the GitHub repository notactuallytreyanastasio/deciduous (169 stars, last pushed 13d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,863 tokens. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

decision-graph compared with commands from other repositories

decision-graph next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
decision-graphnotactuallytreyanastasio/deciduousCommand16913d agoApache-2.0B0Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
release-notesOpenHands/extensionsCommand176yesterdayMITA44Claude Code
commitechoVic/blade-codeCommand18124d agoMITA8Claude Code
repo-audittractorjuice/arc-kitCommand2.3k2d agononeA29Claude Code
propsmill/infrahub-mcpCommand10yesterdayApache-2.0A18Claude Code
codex-reviewoalders/kitchen-sinkCommand53d agoMITA41Claude Code