matesofmate/self-review-extension
Composer 安装命令:
composer require matesofmate/self-review-extension
包简介
Human-in-the-loop code review extension for symfony/ai-mate
README 文档
README
Warning Experimental development tool. Use at your own risk.
Human-in-the-loop code review extension for Symfony AI Mate. AI agents can request code reviews from humans with a non-blocking, two-tool MCP pattern.
Features
- Two-phase review: Start returns immediately (non-blocking), then poll for completion
- Bidirectional chat: Agent and reviewer can ask questions during review (blocks on responses)
- Browser UI: Diff viewer with inline comments and code suggestions
- Token-efficient: TOON format reduces output by 40-50%
- Comment types: question, issue, suggestion, praise, nitpick, blocker
Installation
composer require matesofmate/self-review-extension vendor/bin/mate discover
Requirements
- PHP 8.2+
- ext-pdo_sqlite
- Git repository
MCP Tools
self-review-start
Starts a review session and opens browser. Returns immediately (non-blocking).
Parameters:
base_ref(string): Base git reference, default:"HEAD"head_ref(string): Head git reference, default:"HEAD"paths(array): Optional file paths to filtercontext(string): Context message shown to reviewerstaged(bool): Review staged changes instead of refs
Returns: Session ID for checking results later
self-review-result
Checks if review is complete and retrieves results. Polls for events (review submitted or new questions) until timeout.
Parameters:
session_id(string): Session ID fromself-review-starttimeout(int): Max seconds to wait, default: 60
Returns: Review results, pending questions, or waiting status
self-review-chat
Gets pending questions from reviewer about the code changes.
Parameters:
session_id(string): Session ID fromself-review-start
Returns: Questions that need answers
self-review-answer
Submits answer to a reviewer question.
Parameters:
session_id(string): Session IDquestion_id(int): Question ID fromself-review-chatanswer(string): Your answer
CLI Usage
Standalone CLI for blocking code review (waits for completion):
# Review changes between main and HEAD bin/self-review --base=main # Review staged changes bin/self-review --staged # Review specific files bin/self-review --path=src/Auth.php # With context bin/self-review --context="Please review the auth changes"
Main options: --base, --head, --staged, --path, --context, --port
Note: Chat is disabled in CLI mode since no agent is available to answer questions.
Development
composer install # Install dependencies composer test # Run tests composer lint # Check quality composer fix # Fix code style
License
MIT License - see LICENSE for details.
matesofmate/self-review-extension 适用场景与选型建议
matesofmate/self-review-extension 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 277 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「git」 「diff」 「ai」 「mcp」 「code-review」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 matesofmate/self-review-extension 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 matesofmate/self-review-extension 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 matesofmate/self-review-extension 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.
Easily manage git hooks in your composer config
The bundle for easy using json-rpc api on your project
Schema Diff: Show difference between MySQL databases
MediaWiki extension that allows embedding external content, specified by URL, into your wiki pages
统计信息
- 总下载量: 277
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-16