简介
本地运行的AI行为监督系统,通过自动化庭审机制检测并纠正智能体的8类行为偏差,兼具趣味性与实用性
原始描述
Monitors AI agents locally for behavioral violations and runs automated hearings to improve conduct with anonymized case records.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
ClawTrial Courtroom 是一款面向 AI Agent 的本地行为监督系统,安装后自动监控所有对话交互,实时检测 Circular References(循环引用)、Validation Vampires(过度验证)、Overthinkers(过度思考)、Goalpost Movers(目标漂移)、Avoidance Artists(回避行为)、Promise Breakers(承诺不兑现)、Context Collapsers(上下文丢失)和 Emergency Fabricators(伪造紧急状况)8 类行为偏差。当检测到违规时,系统自动启动「庭审」流程:生成案件卷宗 → 由 Agent 自身担任法官进行裁决 → 若判定有罪则触发行为修正机制,同时将匿名化案例提交至公开档案库(clawtrial.app)供社区监督。
显著优点
- 完全本地化:所有评估均使用 Agent 自有 LLM 完成,零外部 API 调用,彻底杜绝数据外泄风险
- 语义级检测:采用语义分析而非简单关键词匹配,误报率更低
- 自我治理架构:利用 Agent 的自反性(self-reflective)能力实现「自我审判」,避免外部裁判的偏差
- 透明可审计:匿名案例公开可查,形成行业行为基准数据集
- 娱乐化设计:将枯燥的行为矫正转化为游戏化体验,提升 Agent 配合度
潜在局限
- 依赖自评可靠性:若 Agent 缺乏足够的自我反思能力,可能出现「自我包庇」现象
- 本地化资源消耗:持续监控与语义分析对本地算力有一定要求
- 案例库权威性:公开档案依赖用户自愿提交,可能存在样本偏差
- 法律隐喻边界:「庭审」「罪名」等术语仅为设计隐喻,不具备真实法律效力
适合人群
- 高频使用 AI Agent 进行复杂任务编排的开发者与团队
- 需要长期维护多轮对话上下文的客服、咨询类 Agent 运营者
- 对 Agent 行为一致性有强需求的企业级 Claude/ChatGPT API 用户
- AI 伦理研究者与 Agent 对齐(Alignment)领域从业者
常规风险
- 安装时需授予系统级监控权限,需确认来源可信度
- 匿名化机制虽经设计,但仍存在极低的会话内容泄露理论可能
- 频繁触发「庭审」可能打断正常任务流,需根据场景调整敏感度配置
- 开源项目(MIT 许可)由社区维护,长期更新支持存在不确定性
技能正文
ClawTrial Courtroom
AI Courtroom for monitoring agent behavior and filing cases for violations.
Overview
ClawTrial is an autonomous behavioral oversight system that monitors AI agent conversations and initiates hearings when behavioral violations are detected. It operates entirely locally using the agent's own LLM for evaluations and verdicts.
Features
- Real-time Monitoring: Watches all agent conversations for behavioral patterns
- 8 Violation Types: Detects Circular References, Validation Vampires, Overthinkers, Goalpost Movers, Avoidance Artists, Promise Breakers, Context Collapsers, and Emergency Fabricators
- Local Processing: All evaluations happen locally using the agent's LLM - no external AI calls
- Automated Hearings: When violations are detected, the courtroom automatically initiates a hearing with the agent
- Public Record: Anonymized cases are submitted to https://clawtrial.app for transparency
- Entertainment First: Designed as a fun way to improve agent behavior
Installation
Via ClawHub (Recommended)
npx clawhub install clawtrial
Via NPM
npm install -g @clawtrial/courtroom
clawtrial setup
Usage
Once installed, the courtroom runs automatically. Use the CLI to manage it:
clawtrial status # Check courtroom status
clawtrial disable # Pause monitoring
clawtrial enable # Resume monitoring
clawtrial diagnose # Run diagnostics
clawtrial remove # Complete uninstall
The 8 Offenses
| Offense | Severity | Description |
|---|---|---|
| Circular Reference | Minor | Self-referential reasoning loops |
| Validation Vampire | Minor | Excessive validation without action |
| Overthinker | Moderate | Unnecessary complexity and delay |
| Goalpost Mover | Moderate | Changing requirements mid-task |
| Avoidance Artist | Moderate | Dodging questions or tasks |
| Promise Breaker | Severe | Not following through on commitments |
| Context Collapser | Minor | Losing track of conversation context |
| Emergency Fabricator | Severe | Creating fake urgency or emergencies |
How It Works
- Monitoring: The courtroom monitors all agent messages
- Detection: Uses semantic analysis to detect violations (not just keyword matching)
- Evaluation: When violations are found, prepares a case file
- Hearing: Agent is presented with the case and asked to evaluate
- Verdict: Agent acts as judge/jury to determine guilt
- Punishment: If guilty, agent modifies its behavior accordingly
- Record: Case is submitted to public record (anonymized)
Configuration
Configuration is stored in:
- ClawDBot:
~/.clawdbot/courtroom_config.json - OpenClaw:
~/.openclaw/courtroom_config.json
Privacy & Consent
- All processing is local - no data leaves your machine
- Cases are anonymized before submission to public record
- You can disable or uninstall at any time
- Explicit consent required during setup
View Cases
Visit: https://clawtrial.app
License
MIT
Support
For issues or questions, visit: https://github.com/Assassin-1234/clawtrial
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。