Skip to content
Commit Detail

Commit a582a6b

Author
James M Snell <jsnell@cloudflare.com> 2026-02-21 20:33:42 -0800
Parents
3489399
Tree
2449a32
Add useful agent commands

- `/explain <file|symbol>` — architectural explanation with relationships
    e.g. `/explain IoContext`, `/explain ReadableStream`
- `/find-owner <path>` — identify active contributors and suggest reviewers
    e.g. `/find-owner src/workerd/api/streams/`
- `/compat-flag [name]` — look up a flag or list all flags
    e.g. `/compat-flag nodejs_compat`, `/compat-flag` (no arg lists all)
- `/autogate [name]` — look up a gate or list all gates
    e.g. `/autogate RUST_BACKED_NODE_DNS`, `/autogate` (no arg lists all)
- `/deps <target>` — show Bazel dependency graph
    e.g. `/deps //src/workerd/api:streams`
- `/changelog` — summarize current branch changes for a PR description
- `/trace <function>` — trace callers and callees across the codebase
    e.g. `/trace ReadableStream::constructor`
- `/test-for <file>` — find tests with coverage assessment
    e.g. `/test-for src/workerd/api/encoding.h`
- `/whats-new <N|since DATE|this week|...>` — recent commit summary
    e.g. `/whats-new 10`, `/whats-new this week`

Most of these perform rather deep analysis of the codebase and are
designed to surface details that are not easily found through simple
code search. They can be used to quickly understand the impact of a change,
identify reviewers, write better commit messages and PR descriptions,
learn about unfamiliar parts of the codebase (particularly before making
changes).

Files changed