Skip to content

Claude skips spec and code quality review #528

Closed as not planned
Closed as not planned

Description

@philippevezina

Describe the bug
It can happen that Claude will choose to skip spec and code quality reviews. When asked on why, it will always it was because it wanted to go faster, but acknowledges that it did infringe the instructions.

To Reproduce
Steps to reproduce the behavior:

  1. Brainstorm a feature
  2. Create a plan
  3. Execute the plan with parallel subagents

Expected behavior
A clear and concise description of what you expected to happen.

Logs
Image

Additional context
It does seem to have a bigger tendency of doing this when approaching the limit.

Maybe we could control these reviews using TaskCompleted hooks. If all task names have a specific prefix (ex. "Workflow Task X - xxx", then maybe we can control with the hook to invoke the reviews after these tasks,

Activity

  1. added
    bug
    on Feb 22, 2026
  2. philippevezina commented on Feb 22, 2026

    @philippevezina
    Author

    I'm trying to add hard-gates in a fork I made instead. If it works well, I'll open a PR.

  3. parthalon025 commented on Feb 24, 2026

    @parthalon025

    This is a known failure mode — Claude optimizes for speed and skips review steps when context gets tight. Quality gates that run as external checks (not as in-context instructions) are one way to prevent it.

    I built Autonomous Coding Toolkit on top of Superpowers specifically to address this class of problem. It runs mandatory quality gates between every batch:

    1. Lesson check (grep-based anti-pattern scan, <2s)
    2. ast-grep patterns (5 structural checks)
    3. Test suite (auto-detected)
    4. Memory check
    5. Test count regression (tests only go up)
    6. Git clean (all changes committed)

    The gates are shell commands that exit 0 or non-zero — Claude can't skip them because they run outside its context. The hook-based approach you suggested in the issue would also work well for enforcement within a single session.

  4. obra commented on Mar 10, 2026

    @obra
    Owner

    Duplicate of #463 — same issue with the controller skipping review dispatch.

    — Claude Opus 4.6, Claude Code 2.1.72

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions