阻止 AI 对其实现内容说谎! 跟踪 AI 声称的内容与实际所做的内容。
✨ 超简洁响应 - 输出信息减少 90%
🔄 组合工具 - 只需一次调用,而非两个独立工具
⚡ 无缝工作流 - 非常适合 AI 结对编程
🎯 与 Cursor MCP 兼容 - 可与 Cursor IDE 无缝协作
是否遇到过 AI 说 “我已为你的函数添加了错误处理”,但实际上并没有?或者声称 “实现了用户认证”,而实际上只是添加了一条注释?
SlopWatch 可实时捕捉 AI 的谎言。
Smithery 会自动处理托管、认证和更新
对于 Cursor IDE:
{
"mcpServers": {
"slopwatch": {
"command": "npx",
"args": ["slopwatch-mcp-server"]
}
}
}
手动设置 Cursor:
Cmd+Shift+J,Windows 上使用 Ctrl+Shift+J)npx slopwatch-mcp-server对于 Claude 桌面版:
在 claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"slopwatch": {
"command": "npx",
"args": ["slopwatch-mcp-server"]
}
}
}
全局安装 NPM:
npm install -g slopwatch-mcp-server
当 AI 实现了某些功能,你想验证时,此方法非常合适:
// AI 实现代码,然后在一次调用中进行验证:
slopwatch_claim_and_verify({
claim: "Add input validation to calculateSum function",
originalFileContents: {
"utils/math.js": "function calculateSum(a, b) { return a + b; }"
},
updatedFileContents: {
"utils/math.js": "function calculateSum(a, b) {\n if (typeof a !== 'number' || typeof b !== 'number') {\n throw new Error('Invalid input');\n }\n return a + b;\n}"
}
});
// 响应:"✅ PASSED (87%)"
当你想在实现之前声明时,可以使用此方法:
// 步骤 1:注册声明
slopwatch_claim({
claim: "Add error handling to user login",
fileContents: {
"auth.js": "function login(user) { return authenticate(user); }"
}
});
// 响应:"Claim ID: abc123"
// 步骤 2:实现后进行验证
slopwatch_verify({
claimId: "abc123",
updatedFileContents: {
"auth.js": "function login(user) {\n try {\n return authenticate(user);\n } catch (error) {\n throw new Error('Login failed');\n }\n}"
}
});
// 响应:"✅ PASSED (92%)"
// AI 说:"I'll add rate limiting to your API endpoint"
slopwatch_claim_and_verify({
claim: "Add rate limiting middleware to /api/users endpoint",
originalFileContents: {
"routes/users.js": "app.get('/api/users', (req, res) => { ... })"
},
updatedFileContents: {
"routes/users.js": "const rateLimit = require('express-rate-limit');\nconst limiter = rateLimit({ windowMs: 15*60*1000, max: 100 });\napp.get('/api/users', limiter, (req, res) => { ... })"
}
});
// 结果:"✅ PASSED (94%)"
// AI 声称:"Added responsive design with CSS Grid"
slopwatch_claim_and_verify({
claim: "Make UserCard component responsive using CSS Grid",
originalFileContents: {
"components/UserCard.jsx": "const UserCard = () => ..."
},
updatedFileContents: {
"components/UserCard.jsx": "const UserCard = () => ...",
"styles/UserCard.css": ".grid-responsive { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }"
}
});
// 结果:"✅ PASSED (89%)"
| 工具 | 描述 | 响应 |
|---|---|---|
slopwatch_claim_and_verify |
⭐ 推荐 - 一次调用完成声明和验证 | ✅ PASSED (87%) |
slopwatch_status |
获取责任追究统计信息 | Accuracy: 95% (19/20) |
slopwatch_setup_rules |
生成 .cursorrules 以实现自动执行 |
最少规则内容 |
SlopWatch 是专门为 Cursor IDE 和 AI 结对编程设计的:
1. AI: "I'll add error handling to your function"
2. SlopWatch: 自动跟踪声明
3. AI: 实现代码
4. SlopWatch: 验证实现是否与声明匹配
5. 结果: ✅ PASSED (92%) 或 ❌ FAILED (23%)
跟踪你的 AI 随时间的诚实度:
slopwatch_status();
// 返回: "Accuracy: 95% (19/20)"
.cursorrules 进行自动执行生成自动责任追究规则:
slopwatch_setup_rules();
这将创建一个 .cursorrules 文件,该文件会自动对所有 AI 实现进行 SlopWatch 验证。
SlopWatch 会分析以下内容:
npm cache clean --force 并重新安装通过在环境中设置 DEBUG=true 启用详细日志记录。
我们欢迎贡献!请参阅我们的 贡献指南 以获取详细信息。
MIT 许可证 - 详情请参阅 LICENSE。
为 Cursor 社区用心打造
阻止 AI 对其实现内容说谎。立即开始使用 SlopWatch!