verify
星标0
分支0
更新时间2026年7月10日 19:55
How to verify ari-hooks changes end-to-end against a real Claude Code session
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
How to verify ari-hooks changes end-to-end against a real Claude Code session
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | verify |
| description | How to verify ari-hooks changes end-to-end against a real Claude Code session |
The surface is a Claude Code session in a folder where the hooks are
installed. Unit tests (npm test) exercise the hook binary against a stub
HTTP server, but real verification means booting claude and watching the
hooks fire.
http.createServer on
127.0.0.1:<port> serving the endpoints the hooks call
(/agent-activities POST, /agent-tasks GET). Log method/url/auth.ARI_HOOKS_HOME at a temp dir containing
config.json: { "token": "test", "apiUrl": "http://127.0.0.1:<port>" }..claude/settings.json whose hook
commands use the absolute local bin:
node /Users/maxheckel/Sites/ari-hooks/bin/ari-hooks.js hook <event>.cd demo && ARI_HOOKS_HOME=... claude -p "...". Hooks run in -p mode; ask Claude about injected context to
confirm additionalContext landed.expect stalls (claude waits on terminal
capability queries a dumb pty never answers). Use tmux:
tmux -L verify new-session -d -x 100 -y 40 -c <demo> "env ARI_HOOKS_HOME=... claude",
sleep ~6-8s, tmux -L verify capture-pane -p. Drive with send-keys.
First boot in a new folder shows a trust dialog (send Enter).$ARI_HOOKS_HOME/error.log.Clean up: tmux -L verify kill-server, kill stub server pids.