Loading...
Loading...
Request interactive code review from users using the agent-review CLI tool. Automatically captures user feedback on code changes.
npx skill4agent add 4shub/agent-review agent-reviewnpm install -g agent-review
# or run directly: npx agent-reviewBash({
command: "npx agent-review",
description: "Start code review session",
timeout: 600000, // 10 minutes - user needs time to review
})run_in_background: trueRead({
file_path: "/path/to/project/.agent-review/latest-review.json"
})// 1. Run code review (inline, long timeout)
const result = await Bash({
command: "npx agent-review",
description: "Request code review from user",
timeout: 600000, // 10 min
});
// 2. Read structured feedback
const reviewData = await Read({
file_path: ".agent-review/latest-review.json"
});
// 3. Parse and process
const review = JSON.parse(reviewData);
// 4. Address feedback
for (const comment of review.feedback.lineComments) {
console.log(`${comment.file}:${comment.line} - ${comment.comment}`);
// Make changes based on comment
}
// 5. Report back to user
"I've addressed your feedback:
- Fixed the issue in src/app.ts:42 (using const instead of let)
- Updated error handling as suggested
...".agent-review/latest-review.json{
"id": "review-1234567890",
"timestamp": "2026-02-03T17:23:33.377Z",
"diff": { /* full git diff data */ },
"feedback": {
"timestamp": "2026-02-03T17:23:33.377Z",
"lineComments": [
{
"file": "src/app.ts",
"line": 42,
"oldLine": 41,
"comment": "Consider using const instead of let",
"context": "let x = calculateTotal();"
}
],
"generalFeedback": "Overall looks good!",
"stats": {
"filesReviewed": 5,
"commentsAdded": 3
}
}
}// WRONG - you won't get the output automatically
Bash({
command: "npx agent-review",
run_in_background: true
})// WRONG - will timeout before user finishes
Bash({
command: "npx agent-review",
timeout: 120000 // 2 min too short
})// WRONG - feedback is already in the JSON file!
"What feedback do you have?"// RIGHT - inline, long timeout, auto-read
await Bash({
command: "npx agent-review",
timeout: 600000
});
const review = await Read({
file_path: ".agent-review/latest-review.json"
});