Skip to content

consult claude lane: five follow-ups from the live review (api-key logged-out advice, tool-guard duplicates, npm install hint, configurable caps, docs) #1941

Done

Description

@waleedkadous

Summary

Five small defects in consult's claude lane, found by a live review of the installed build after the lane moved to the installed claude command line tool (PR #1913, issue #1912). None blocks reviews today. Fix all five in one PR.

The five points

  1. Wrong advice in api-key mode. When the lane runs in api-key mode and the result says the session is logged out, the message tells the user to run claude auth login. That is the subscription remedy; in api-key mode the fix is the key. Give the advice that matches the mode. (packages/codev/src/lib/claude-cli.ts, and the lane's failure path in packages/codev/src/commands/consult/index.ts.)

  2. The tool-list guard fails on a harmless duplicate. The guard near packages/codev/src/commands/consult/index.ts:1020 requires each review tool "exactly once". claude self-updates, so a cosmetic change that lists a tool twice would stop every review at once. Compare as sets: the session must report exactly Read, Glob, Grep and nothing else. A duplicate is fine; an extra or a missing tool still aborts. Do not weaken the extra-tool check — that is the security half.

  3. "claude not found" names only the curl installer. CLAUDE_INSTALL_HINT (packages/codev/src/lib/claude-cli.ts:43) is curl -fsSL https://claude.ai/install.sh | bash. A locked-down CI image needs the npm route. Name both, as the update hint beside it already does.

  4. The $25 and 200-turn caps are hard-coded. CLAUDE_MAX_BUDGET_USD = 25 and CLAUDE_MAX_TURNS = 200 (packages/codev/src/commands/consult/index.ts:821-824). On the subscription the dollars are notional, so the budget cap can stop a large review over spend that never happens. Make both configurable under consult in .codev/config.json, keeping today's values as the defaults, and have the cap-reached message name the setting. Validate the values and fail loudly on a bad one.

  5. Docs. README.md and INSTALL.md do not mention the claude 2.1.141 minimum version. Add it. Also state plainly, where the docs describe withholding the API key from the lane, that this is a billing guarantee and not secrecy: the reviewer can still read the workspace .env with its Read tool (this was equally true of the old Agent SDK lane).

Notes for the builder

  • Mirror any doc or framework-file change in codev-skeleton/ where a twin exists; CLAUDE.md and AGENTS.md stay byte-identical.
  • Tests for points 1, 2 and 4: a logged-out result in each auth mode; a duplicated tool list (passes), an extra tool (aborts), a missing tool (aborts); a configured cap reaching the claude argv, and a bad value rejected.
  • Targeted tests while iterating; the full suite once, for the porch check.

Activity

  1. added
    area/consult
    on Nov 21, 2026
  2. waleedkadous commented on Nov 21, 2026

    @waleedkadous
    ContributorAuthor

    On it! Working on a fix now.

  3. added 8 commits that reference this issue on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/consult

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions