Skip to content

docs: fix stale command references, polish README to agent/10k-star-repo standard - #236

Merged
Wolfvin merged 1 commit into
mainfrom
docs/agent-tooling-doc-polish
Jul 12, 2026
Merged

docs: fix stale command references, polish README to agent/10k-star-repo standard#236
Wolfvin merged 1 commit into
mainfrom
docs/agent-tooling-doc-polish

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #234 (the agent-tooling audit). While closing that out I noticed the primary documentation surface — README.md, SKILL.md, SKILL-QUICK.md — was still describing the pre-#195 command architecture. This directly undermines "CodeLens as an agent's tool": an agent or new contributor following the README's own Quick Start hits an argparse error on the very first command.

Verified broken examples (before this PR):

  • codelens init .invalid choice: 'init'
  • codelens detect .invalid choice: 'detect'
  • codelens trace foo .invalid choice: 'trace'
  • codelens serve / codelens guard → don't exist (confirmed dropped, not just hidden)
  • MCP tool count: README claimed "55 tools" in one section, "12 Tools" in another — real count (verified via sync_command_count.py): 12 (6 static + 6 dynamic)
  • Every example used python3 scripts/codelens.py — the installed codelens PyPI console script (confirmed editable-install pointing at this exact checkout) was never mentioned as the primary UX

Changes

  • README.md: full rewrite. Badges + table of contents, a "replace grep with this" comparison up front, "why CodeLens" table, one clear callout for the search pattern/workspace argument-order gotcha (instead of burying it), all examples re-verified against the live CLI.
  • SKILL.md: full rewrite. Added an explicit "old→new command mapping" section at the top for anyone who remembers the pre-refactor(commands): consolidate 78 commands → 12 focused commands #195 CLI. All workflow chains, trigger maps, and lite-mode tables updated to current umbrella syntax.
  • SKILL-QUICK.md: full rewrite — this file was the most stale (documented ~50+ dropped command names across "Setup & Lifecycle", "Navigation", "Architecture", "Security", "Quality" sections that no longer exist).
  • scripts/codelens.py: --help description's self-reference (python3 scripts/codelens.py --command-count) fixed to codelens --command-count.

Every single command example across all three files was independently re-run against the current CLI before being written down — none of it is copy-pasted from the old docs with names find-and-replaced.

Test plan

  • sync_command_count.py --apply — still reports "in sync" after the rewrite (verified the exact regex patterns it checks still match the new wording where practical)
  • pytest tests/test_command_count.py tests/test_version_consistency.py — 7/7 pass
  • pytest tests/test_cli.py -k "not FormatConflictRegression" — 36/36 pass (excluded 2 pre-existing subprocess-timeout tests, unrelated, tracked in fix(ci): CodeLens CI/Quality Gate broken on main since #195 consolidation #235)
  • Every command shown in the new docs manually verified against the live CLI (scan/search/context/audit/security/deps/impact/check/plugin/graph, --format graphml, --mode graph Cypher query)

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Wolfvin
Wolfvin merged commit 03f470c into main Jul 12, 2026
0 of 6 checks passed
@Wolfvin
Wolfvin deleted the docs/agent-tooling-doc-polish branch July 12, 2026 11:53
…o standard

README.md, SKILL.md, and SKILL-QUICK.md still documented the pre-#195
architecture — Quick Start and most workflow examples used commands
that were dropped or absorbed into umbrellas over a year ago:
`init`, `query`, `list`, `detect`, `serve`, `guard`, and bare
`trace`/`impact`/`circular`/`dead-code`/`secrets` as standalone
commands. Every one of these now either doesn't exist (verified:
`codelens init .` -> "invalid choice: 'init'") or requires an
umbrella prefix (`context --check trace`, `audit --check dead-code`,
etc). An agent or new contributor following the README's own Quick
Start would hit an argparse error on the very first command.

Also fixed: MCP tool count claimed "55 tools" in one section and
"12 Tools" in another (real count, verified: 12 = 6 static + 6
dynamic). `codelens` is an installed PyPI console script (editable
install, confirmed pointing at this checkout) but every example used
the legacy `python3 scripts/codelens.py` invocation instead.

Every single command example in all three files was re-verified
directly against the current CLI before being written down — none of
this is copy-pasted from the old docs with names swapped.

README.md additionally restructured for readability: badges, table
of contents, a "replace grep with this" comparison up front, a
"why CodeLens" table answering questions grep can't, and a single
"gotcha" callout for the search pattern/workspace argument-order trap
(the same one fixed in scripts/commands/search.py in the prior PR)
instead of burying it in a giant command reference table.

scripts/codelens.py: also fixed the --help description's hardcoded
`python3 scripts/codelens.py --command-count` self-reference to say
`codelens --command-count`, matching the same legacy-vs-installed
inconsistency found in the docs.
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant