Skip to content

Conversation

@Githubguy132010
Copy link

@Githubguy132010 Githubguy132010 commented Jan 5, 2026

The main agent can now invoke the the review agent from /review as a subagent. It uses the exact same permissions and prompt as /review. Essentially, the main agent can now review its code easier. It's important to note that this implementation will need updating to the new permission system.

EDIT: Already done.

Fixes #6600

Make the undefined check more explicit by changing from `!item` to `item === undefined`
to ensure only undefined values trigger the condition, preventing false positives from other
falsy values like null, empty string, or zero.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

The following comment was made by an LLM, it may be inaccurate:

Results

No duplicates found.

The PR "Feat add /review command as subagent" (#6967) appears to be unique.

While the search found several related PRs that work with subagents, none of them are addressing the same feature:

These are all infrastructure/system improvements for existing subagents, not the addition of a new /review command as a subagent.

@Githubguy132010 Githubguy132010 changed the title Feat add /review command as subagent Feat: add /review command as subagent Jan 5, 2026
@dbpolito
Copy link
Contributor

dbpolito commented Jan 5, 2026

using review agent for the review command, aren't we duplicating the review prompt on it? because we're using as the prompt for the agent + sending the same prompt as a message?

@Githubguy132010
Copy link
Author

That could be the case, but I don't think so, since the review command just spawns a subagent with that prompt, but I think my implementation let's the main agent just spawn the review agent exactly the same as /review does, but if I have time, I will check for verification purposes. Or could you check for me @dbpolito if needed I will update the pr to fix that.

using review agent for the review command, aren't we duplicating the review prompt on it? because we're using as the prompt for the agent + sending the same prompt as a message?

@Githubguy132010 Githubguy132010 force-pushed the feat-add-/review-command-as-subagent branch from f01f3d2 to b385759 Compare January 6, 2026 07:53
The /review command was sending the same prompt twice - once as a user
message (via subtask) and once as the system prompt (via agent definition).
This change checks if the agent already has a prompt defined and only
includes the template text in the user message when it doesn't.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: code critic

2 participants