feat: add hooks example for Claude, Codex, and OpenCode

Demonstrates using the filesystem API to write agent hook configs
inside a Docker sandbox, then verifies they fire by prompting each
agent and reading back a shared log file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nathan Flurry 2026-03-09 20:40:21 -07:00
parent 5d65013aa5
commit c79acbece2
3 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{
"name": "@sandbox-agent/example-hooks",
"private": true,
"type": "module",
"scripts": {
"start": "tsx src/index.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@sandbox-agent/example-shared": "workspace:*",
"sandbox-agent": "workspace:*"
},
"devDependencies": {
"@types/node": "latest",
"tsx": "latest",
"typescript": "latest"
}
}