Skip to content

docs: remove hard-coded agent and command counters from READMEs - #4582

Merged
KuSh merged 4 commits into
rtk-ai:developfrom
guitarmanchan911-byte:docs/remove-hardcoded-counters
Oct 31, 2026
Merged

KuSh merged 4 commits into
rtk-ai:developfrom
guitarmanchan911-byte:docs/remove-hardcoded-counters

Conversation

@guitarmanchan911-byte

Copy link
Copy Markdown
Contributor

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 that rtk rewrite supports (30+ commands)." → "Everything that rtk rewrite supports."
  • src/hooks/README.md — "6 agents via AgentTarget enum, now including Mistral Vibe + 3 special modes: …" → "the AgentTarget enum 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.md says 13 agents while src/hooks/README.md says 6. That drift is the maintenance burden this issue describes.

Test plan

  • git diff --check (no whitespace errors)
  • Targeted scan: no agent / command / mode totals remain in non-root README files
  • cargo fmt --all && cargo clippy --all-targets && cargo test — not run, this PR touches documentation only and no Rust sources
  • Manual testing: not applicable for a documentation-only change

Notes

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 -text in .gitattributes, so that file is committed with its existing LF endings; the other two follow the repo's normal text handling.

Fixes #3457

@guitarmanchan911-byte

Copy link
Copy Markdown
Contributor Author

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 KuSh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 by AgentTarget, and --opencode adds 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 #commands anchor 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.md miss 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 rewrite rewrites 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.

@KuSh
KuSh merged commit 550a5c1 into rtk-ai:develop Oct 31, 2026
15 checks passed
@rtk-release-bot rtk-release-bot Bot mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(all): Remove hard coded counters (number of agents, commands) to avoid maintenance

2 participants