Skip to content

feat(agent): give Work and Code distinct Review subagents #113

Closed

Description

@mdev34-lab

Problem

After splitting AlphaCode into specialized Work and Code runtimes, their Review subagents should not remain identical by default.

Work and Code operate in different environments and have different responsibilities, so a single generic review behavior will either over-review ordinary filesystem work or under-review repository/code changes.

Expected behavior

Once the Work/Code split is in place:

  • Work should use a Work-specific Review subagent optimized for general workspace tasks, file operations, configuration, documents, and mixed non-repository work.
  • Code should use a Code-specific Review subagent optimized for software changes, repository correctness, tests, types, integration, regressions, and project conventions.
  • The two reviewers should have distinct system instructions, context/tool access, or configuration where appropriate rather than merely different names.
  • Each reviewer should receive the context relevant to its runtime and avoid unnecessary repository/code-specific checks when reviewing Work output.
  • The existing deterministic Work/Code execution flow should remain intact; this issue is about specialization of the Review stage, not redesigning the whole loop.

Design constraints

  • Reuse the existing Review infrastructure where practical.
  • Do not duplicate large amounts of orchestration logic just to specialize prompts/configuration.
  • Keep the boundary explicit so future runtime-specific reviewer behavior can evolve independently.
  • Avoid making Review more verbose or more expensive merely for the sake of specialization.

Acceptance criteria

  • Work invokes the Work-specific reviewer.
  • Code invokes the Code-specific reviewer.
  • Reviewer behavior is observably appropriate to each runtime's responsibilities.
  • Existing Review functionality continues to work for both runtimes.
  • Focused tests cover the runtime → reviewer selection and the important runtime-specific configuration/context differences.

Verification

Run focused local tests, typecheck/lint/build checks relevant to the change, and inspect the resulting behavior.

Do not repeatedly wait for GitHub Actions/CI. Verify locally and investigate concrete failures instead of repeatedly polling for CI.

Follow the repository's existing Actions bot / PR conventions when implementing this as a PR.

Activity

  1. mdev34-lab commented on Sep 26, 2026

    @mdev34-lab
    OwnerAuthor

    @kilocode-bot Begin work on this. Open a new end-to-end PR. Don't overtest, or spend hours running test/typecheck/etc on your VM (we'll only do that after this gets an LGTM from a review agent). Comply with Actions template so PR doesn't auto-close.

  2. kilo-code-bot commented on Sep 26, 2026

    @kilo-code-bot

    Implemented in PR #201: #201

    Summary of changes:

    • Added subagent (general workspace tasks: file ops, config, documents)
    • Added subagent (software changes: spec compliance, tests, types, integration, regressions, conventions)
    • Task tool auto-routes generic to specialized reviewer based on parent agent (Work→work-review, Code→code-review, others→generic review)
    • Updated finish tool, review stagnation, and prompts for all three review agent types
    • Added focused test for runtime→reviewer selection

    All review tests pass, typecheck passes.

  3. kilo-code-bot commented on Sep 26, 2026

    @kilo-code-bot

    One or more Cloud Agent sessions failed:

    • mdev34-lab/alphacode (agent_03d24789-5648-485e-848c-f1ce1756e331): Assistant request was rate limited
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions