Repository navigation
feat(rtk): scc rtk, plus a leaner entry file - #12
Merged
Merged
Conversation
`scc rtk` wires in RTK — the CLI proxy that filters command output down to what is worth spending context on. It finds the binary or builds it with cargo, then puts RTK's marker-delimited block into CLAUDE.md/AGENTS.md. `scc init --rtk` does both in one step. Insert-only: a block already between the markers is left exactly as it is, whatever version it claims, because RTK writes that text and `rtk init` is what refreshes it. --force is the separate decision. --check reports without writing and exits 2 when the block is missing; --no-install never touches cargo. The splice preserves the document's own line endings and refuses a half-block rather than leaving two openings and one close. Opt-in in both places: the block tells the agent to prefix every command with a binary the machine may not have. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tUUXfGWX3huWmMZwSkmrc
…t nine exist The table listed all nine rules as equals, which is false: five fire on their own trigger (autonomy at kickoff, routing when work arrives, methodology at the start of a task, verification when the code looks done, delivery at the last task) and four are looked up by name when you are already in that territory. Splitting them says what a table cannot. Costs the per-rule Markdown link, so TestEntryFileLinksResolve is replaced by TestEntryFileNamesEveryRule — it holds the guarantee that actually breaks: a rule shipped without being announced, or an entry file that never says where the rules live. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tUUXfGWX3huWmMZwSkmrc
Same gates, same report shape, fewer words in the way of them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tUUXfGWX3huWmMZwSkmrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three changes that ship together as template-set version 8.
scc rtk, andscc init --rtk. Wires in RTK, the CLI proxy that filters command output down to what is worth spending context on: it finds the binary or builds it with cargo, then puts RTK's marker-delimited usage block intoCLAUDE.md/AGENTS.md.Insert-only by default. A block already between the markers is left exactly as it is, whatever version it claims — RTK writes that text, stamps its own version into the opening marker, and
rtk initis what refreshes it. An scc that rewrote it every run would silently downgrade a newer block inside a file the user owns. Opt-in in both places, because the block tells the agent to prefix every command with a binary the machine may not have.A leaner entry file. The table listed all nine rules as equals, which is false: five fire on their own trigger, four are looked up by name once you are already in that territory. The rewrite says which is which.
Tighter prose in both review agents. Same gates, same report shape.
Why it is shaped this way
internal/rtkis the only package that shells out to another program, and that boundary is deliberate.--checkcounts a missing block, never the binary: a CI checkout has no reason to have RTK installed, and failing there would train people to ignore the check.AGENTS.md, so the splice runs per entry file rather than per harness.Notes
assets.Version7 → 8. The entry file isOwned, soscc updatereports the new template without overwriting anyone's edits.TestEntryFileLinksResolve→TestEntryFileNamesEveryRule: the format no longer carries a link per rule, but the guarantee that matters — a rule shipped without being announced — is still enforced.go.modis still stdlib-only.🤖 Generated with Claude Code
https://claude.ai/code/session_013tUUXfGWX3huWmMZwSkmrc