Repository navigation
docs: remove hard-coded agent and command counters from READMEs - #4582
Conversation
|
Hi @KuSh - a quick follow-up on this PR. It has been open for two weeks with no review activity so far. The change is documentation-only (three README counter lines), the CLA is signed, and the PR is currently mergeable. If the scope is still useful, I would appreciate a review when you have time. Happy to adjust or close it if you prefer a different approach. |
… command-list link hooks/README.md, src/discover/README.md and src/cmds/cloud/README.md still carried "70+ rewrite patterns", "60+ regex patterns" and "25 specialized filters". src/hooks/README.md now says how each agent is selected: Claude Code by default, `--agent <AgentTarget>` for the other enum agents, --gemini, --codex and --copilot for the rest, and -g --opencode for the OpenCode plugin. The openclaw command-list link pointed at a #commands anchor the root README no longer has; it now points at the command list the root README itself links to. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KuSh
left a comment
There was a problem hiding this comment.
Round 1 — APPROVED, follow-ups filed
Claim: drop the hard-coded agent and command counters from the non-root READMEs, leaving the root README's (#3457).
Scope: accept.
Ran: docs only, so every changed sentence was checked against the code it describes on develop: AgentTarget and the rtk init flags in src/lib.rs, src/hooks/init/, the hooks/ subdirectories, src/discover/rules.rs, aws_cmd.rs, the root README anchors. All 45 non-root README files were scanned for remaining counters. Nothing in the code or tests reads these lines.
Pins: no decisions (documentation only).
CI @39dfe442a: all green (15 checks)
Fixup pushed (39dfe44)
Your three lines were correct as counter removals. The fixup finishes the sweep and corrects one reworded sentence:
- Counters your scan missed:
hooks/README.md:35("70+ rewrite patterns"),src/discover/README.md:32("60+ regex patterns"),src/cmds/cloud/README.md:7("25 specialized filters"). src/hooks/README.md:9: Gemini, Codex and Copilot are selected by their own flags, not byAgentTarget, and--opencodeadds the OpenCode plugin (global only) rather than selecting a mode. The line now says how each agent is selected, and names Copilot, which the old line left out.openclaw/README.md:95: the#commandsanchor no longer exists in the root README; the link now points at the command list the root README itself links to.
Filed as follow-ups
- #4899 docs(hooks): agent lists in
hooks/README.mdmiss Kilo Code, Kimi and Droid — outside this PR's claim (lists, not counters). - #4900 docs(openclaw): "What's NOT rewritten" says
|,&&,;commands are left alone;rtk rewriterewrites them — outside this PR's hunks.
Your questions
- The other docs with counters (
docs/contributing/TECHNICAL.md,docs/TELEMETRY.md,docs/guide/getting-started/supported-agents.md,docs/contributing/ARCHITECTURE.md), offered as a separate PR → welcome as a separate PR referencing #3457; they are outside this one's README scope.
Next
Nothing — fixup 39dfe44 pushed (docs: three remaining counters, the init line, one link), approving.
Summary
Closes #3457. Removes the hard-coded counters from the README files so they cannot drift, and leaves the counters on the root README as the issue asks.
hooks/README.md— "for 13 supported agents" → "for the supported agents"openclaw/README.md— "Everything thatrtk rewritesupports (30+ commands)." → "Everything thatrtk rewritesupports."src/hooks/README.md— "6 agents viaAgentTargetenum, now including Mistral Vibe + 3 special modes: …" → "theAgentTargetenum covers the supported agents, including Mistral Vibe, plus the special modes for …"The agent and command lists themselves are unchanged, only the numbers are gone. Three commits, one per file.
Why: the two hook READMEs already disagree with each other —
hooks/README.mdsays 13 agents whilesrc/hooks/README.mdsays 6. That drift is the maintenance burden this issue describes.Test plan
git diff --check(no whitespace errors)cargo fmt --all && cargo clippy --all-targets && cargo test— not run, this PR touches documentation only and no Rust sourcesNotes
Not touched on purpose — same pattern, but outside the "all README.md" scope of the issue:
docs/contributing/TECHNICAL.md("7 agents"),docs/TELEMETRY.md("100+ commands across 15+ ecosystems"),docs/guide/getting-started/supported-agents.md("3 integration tiers"),docs/contributing/ARCHITECTURE.md("Total: 64 modules"). Happy to follow up in a separate PR.hooks/**is marked-textin.gitattributes, so that file is committed with its existing LF endings; the other two follow the repo's normal text handling.Fixes #3457