ddflow_pins
Find which text in an instruction file tests pin, which suites to re-run, and the longest unpinned stretches before compressing.
Instructions
BEFORE compressing or rewording an instruction file (a rulebook, a driver, AGENTS.md, CLAUDE.md, a prompt template): which of its text a test pins, which suites to re-run afterwards, and the longest stretches no test holds. A sentence that reads like rationale is often a rule some test asserts. Exit 2 when there is no Python suite to read pins from: then treat ALL of it as pinned. Free text is a lower bound, not permission -- read it first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many free stretches to return (default 10). | |
| tests | No | Comma-separated test dirs (default: tests,test). | |
| as_agent | No | Subagent sharing the parent's connection: your own stable name, for this call only (see ddflow_identify). | |
| document | Yes | Path of the instruction file, relative to the repo. | |
| min_needle | No | Shortest string literal that counts as a pin (default 12). |