Grokking Agentic Design Patterns
0% completed
Deterministic Lifecycle Hooks
Forge, a coding agent, has these four entries in its harness configuration:
{ "hooks": [ { "event": "beforeTool", "tool": "run a command", "run": "policy/check-command" }, { "event": "afterTool", "tool": "edit a file", "run": "lint/changed-file" }, { "event": "afterTool", "tool": "any write tool", "run": "audit/append-line" }, { "event": "beforeStop", "run": "tests/affected" } ] }
The model never reads this file and cannot skip these programs. Whenever Forge edits a file, the harness runs the second one, a linter, which finds style faults and simple errors
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%