Skip to content

feat(daemon): Dispatch the reviewer from CodeDeck when a general finishes #129

Description

@4ndreello

Context

Today the general role's prompt tells the worker to run codedeck run --role reviewer itself. Whether the review happens therefore depends on the model following prose, and the reviewer runs inside the worker's turn.

Proposal

Move the dispatch into CodeDeck itself. When a general session reaches a terminal completed state, the daemon starts the reviewer (per the reviewer role binding) against the worker's worktree/diff.

  • Record the reviewer with parentId = <general session id> and the same runId. feat(agents): Draw the run canvas as a real dispatch tree #121 added the lineage edge, so the run canvas will draw the reviewer under the worker automatically.
  • Remove or relax the mandatory reviewer dispatch in the general prompt, and update the prose tests that pin it.
  • Open questions:
    • Should this be opt-in through config?
    • What happens on failed / stopped?
    • How does the reviewer's verdict get back to the general or to the user?

Generated by Claude Code

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions