Repository navigation
fix(code-review): keep all six default lenses when a profile is written, and agree lenses before drafting - #65
Conversation
…en, and agree lenses before drafting Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Tessl Reviewer
Changes approved
4 optional suggestions. Nothing blocking.
The change corrects the six-lens defaults and adds useful agreement, configuration-preservation, and validation guidance. Four documentation issues remain: profile existence is mistaken for active selection, written-rule coverage is assumed even when its lens is absent, the historical-head fetch recipe is incomplete, and the README retains its older four-lens description.
| Severity | Requires changes | Advisory |
|---|---|---|
| Minor | 0 | 4 |
Advisory (4)
- Minor · Advisory in Standard mode · The discovery step treats an unselected profile as the active lens set
code-review/skills/create-code-review-lens/SKILL.md:33 - Minor · Advisory in Standard mode · The written-rule exclusion assumes maintainability coverage that profiles need not provide
code-review/skills/create-code-review-lens/SKILL.md:43 - Minor · Advisory in Standard mode · Fetching the current PR head does not ensure the historical review head is available
code-review/skills/create-code-review-lens/references/validation.md:69 - Minor · Advisory · Pre-existing · The README still describes four defaults and profile-only prose review
code-review/README.md:65
Working with this review
Verify before acting. These findings are AI-generated and not authoritative. Check each one against the code, yourself or with an agent, before acting on it.
Answer each finding on its thread:
- Addressed: you changed the code. Say what changed.
- Refuted: the finding is wrong about the code.
- Declined: the finding is right, and you are not changing it. Say why.
Reviews are incremental. The first review shows every valid optional and required finding. A later round checks the latest changes and earlier findings, and adds a fresh finding only when it requires changes. It never repeats one you refuted or declined. The configured request-changes severity sets the consequence baseline, and review mode sets the strength required to block. Ask for a full review to inspect the whole change and show optional findings again.
Lenses are configurable. Add your own and scope them to paths with globs. Keep the set small so findings stay distinct. See https://docs.tessl.io/tutorials/setting-up-agentic-code-review#route-reviews-with-yaml
Mention @tessl-reviewer to run another review.
…address review findings Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Tessl Reviewer
Changes approved
No findings to surface.
Earlier findings: 4 addressed
About this review
These findings are AI-generated and not authoritative. Check each one against the code before acting on it. See the guidance on working with this review.
Mention @tessl-reviewer to run another review.
…sion Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Tessl Reviewer
Changes approved
The current guidance distinguishes configured profiles from active review selection, preserves written-rule coverage when maintainability is absent, fetches historical review heads by SHA, and consistently describes all six automatically routed defaults. The four earlier concerns are addressed; no unresolved findings remain.
Earlier findings: 4 addressed
About this review
These findings are AI-generated and not authoritative. Check each one against the code before acting on it. See the guidance on working with this review.
Mention @tessl-reviewer to run another review.
An agent following
create-code-review-lensto write or extend.tessl-code-review.ymlcould quietly lose review coverage. The skill said to keep the defaults by listing "the fourtessl/code-reviewlenses" at@0.2.0. A repository with no profile runs six lenses, and a profile routes only byglobs, so a profile written that way dropped Markdown and plugin review and sent those files to the code lenses. The same stale@0.2.0pin appeared in the router skill, the profile reference and the README.The plugin also stops naming a version of its own lenses anywhere. A version written into the plugin goes stale with every release, which is how
@0.2.0survived. It now explains the choice instead: an unversioned ref follows the newest lenses, and a pinned one should use a version looked up at the time, such as the installed plugin's.What changes
create-code-review-lens--profile.globsandeffort, including keys the skill does not describe.AGENTS.mdorCLAUDE.mdchain duplicatesreview-maintainability-and-code-qualitywhen that lens runs on the governed files. When the set leaves it out, the rule has no other enforcement and a lens for it is not a duplicate.validation.md: fetch a backtest's original head by its SHA.pull/<n>/headis only the latest head, which differs after a rebase or force-push, and a pull request whose reviewed commit is gone is left out of the set.repository-profile.md: documentsreviewModeand profile-leveleffort: adaptive, both of which the CLI accepts. Says to leave unrecognised keys in an existing profile alone. Uses unversioned refs and an@<version>placeholder in the examples, and says that the "Plugins and Markdown" routing is what a repository without a profile gets automatically.fork-default-lens,route-lensandroute-ad-hoc-reviewaccept a registry ref with or without a version, and the two that ask for the complete default set now expect six lenses. Their task text no longer says "four default lenses".Runs
Claude Code (Opus) was given the prompt the web app hands out under "Set up with your agent", with this branch's plugin installed from a local path in two scratch repositories:
No profile, with exported review notes describing repeated partial writes.
@0.5.0, from the text before the switch to unversioned refs) routed so each file has one owner, plus the new local lens onsrc/**.tessl code review --profileaccepts that profile: it gets past validation, while the same file with an unknown key fails at theinvalid-profile-filevalidation stage.Existing profile with
reviewMode: relaxed,requestChangesAt: minor,effort: adaptive, anignorelist, a per-lenseffort: highand a local lens.Unversioned refs, rerun. A single request naming the lens to write, in the no-profile repository, produced a profile listing all six defaults as
tessl/code-review#...with the same one-owner routing. The CLI accepts it.Every run skipped the lens review runs and backtests by instruction, to keep the test cost down. The five agent turns cost about USD 4.70 together.