Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
agentwatch — Claude Code 的静默会话记录器,记录每一次操作,标记危险命令(rm -rf, sudo, curl|sh),并提供时间线审查、风险警报和跨项目分析。 | Kitploit
工具/GitHubGitHub/farjadahmed/agentwatch
脚本与自动化取证分析威胁情报事件响应日志分析
GitHubfarjadahmed/agentwatch

agentwatch

Claude Code 的静默会话记录器,记录每一次操作,标记危险命令(rm -rf, sudo, curl|sh),并提供时间线审查、风险警报和跨项目分析。

查看仓库
12236个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

agentwatch

一个用于Claude Code会话的飞行记录器。

你让Claude Code在你的机器上运行——有时几小时,有时自动批准。agentwatch 静默记录每一个操作,这样你之后可以回来查看究竟发生了什么。

root@kitploit:~
npm install -g agentwatch-dev
agentwatch install

就这样。两个命令。agentwatch 现在正在记录每一个 Claude Code 会话。

你实际上会使用的命令

root@kitploit:~
agentwatch last           # what just happened?
agentwatch danger         # did anything risky happen?
agentwatch report         # weekly summary across all projects

last 是你最常运行的命令。在一个会话之后——尤其是一个你离开的长时间会话——它提供一个完整的时间线:每个命令、每个触及的文件、每个标记的风险。

danger 扫描诸如 rm -rf、sudo、curl | sh、写入 .env 或 、强制推送等操作——任何你可能想了解的内容。

.ssh

report 显示随时间变化的模式:你在哪个项目上使用AI最多,哪些文件经常被修改,哪些命令不断失败。

所有命令

root@kitploit:~
SESSION REVIEW
  agentwatch last              review the most recent session
  agentwatch show <id>         show a specific session by ID prefix
  agentwatch sessions          list all recorded sessions (--all for full list)
  agentwatch live              live-follow current session in terminal
  agentwatch commands          all bash commands with pass/fail status
  agentwatch files             all files touched (Read/Edit/Write)
  agentwatch danger            flag potentially dangerous actions
  agentwatch export [id]       export as markdown (--json for JSON)
  agentwatch tokens [id]       token usage breakdown for a session

ANALYTICS
  agentwatch report [period]   weekly report — projects, hotspots, patterns
                               period: week (default), month, or number of days
  agentwatch hotspots [n]      top N files AI modifies most across sessions
  agentwatch stats             aggregate stats with per-project breakdown

MANAGEMENT
  agentwatch dash              open web dashboard in browser
  agentwatch status            check if agentwatch is installed and working
  agentwatch prune [days]      delete sessions older than N days (default: 30)
  agentwatch install           add hooks to Claude Code
  agentwatch uninstall         remove hooks (logs are preserved)

文件热点

agentwatch hotspots 显示AI在所有会话中触及最多的文件。被反复修改的文件通常表示复杂、脆弱或正在积极开发的代码。

什么会被标记为危险

模式级别
rm -rf严重
curl | sh严重
sudo严重
git push --force严重
git reset --hard严重
写入 .env, .ssh, .aws严重
写入 /etc/, /usr/严重
find -exec rm / find -delete严重
mkfs, dd if=严重
curl/wget to external hosts警告
git push --force-with-lease警告
读取 .env, .ssh/id_rsa警告
eval警告
ssh/scp警告
kill -9, pkill, killall警告
pip install/npm install信息
docker run信息

严重和警告级别的风险会实时触发 macOS 通知。信息级别的事件会被静默记录。

工作原理

agentwatch 使用 Claude Code 的钩子系统:

  1. SessionStart 钩子 — 记录会话元数据(当前工作目录、模型、时间戳)
  2. PostToolUse 钩子 — 记录每次工具调用,在严重风险时发送通知
  3. Stop 钩子 — 检查与历史基线的异常,如有异常则通知
  4. 日志以 JSONL 格式存储在 ~/.agentwatch/sessions/ 中

这些钩子以异步方式运行,超时时间为3秒,失败时静默处理——它们从不会阻塞或干扰 Claude Code。所有数据都保留在你的本地机器上。

卸载

root@kitploit:~
agentwatch uninstall     # removes hooks from Claude Code settings
npm uninstall -g agentwatch-dev

会话日志保留在 ~/.agentwatch/ 中——如果需要,可以手动删除。

要求

  • Node.js 18+
  • Claude Code

许可证

MIT — 由 Farjad Ahmed 创建

下载工具