Page: tools/agent-hooks
Job: generated chapter
Level: F#
Source lines:
tools/agent-hooks/ReplGuard.fs:1
tools/agent-hooks
grug measure this project from its own files. nobody write this page, so it cannot go stale. why the code is shaped so is for the topics.
what this repository says it is
The IO around ReplGuard.decide: stdin, the project scan, the /health probe, the lease ask, stdout. The decision itself is ReplGuard.fs and the run around it is Verdict.fs, the files SageFs.Tests compiles and tests.tools/agent-hooks/Hook.fs:1
where it start
a program start in
tools/agent-hooks/Hook.fs
the files, in the order to read them
the project file lists these in compile order, and in F# a file can use only what came before it. read from the top and each file stand on the ones above. lines count code only, with comments and blanks left out.
| # | file | lines | what the file say about itself |
|---|---|---|---|
| 1 | tools/agent-hooks/ReplGuard.fs | 368 | The decision behind the sagefs-repl-guard Claude Code hook. tools/agent-hooks/ReplGuard.fs:1 |
| 2 | tools/agent-hooks/Verdict.fs | 110 | The hook's whole run, minus the parts that touch the machine. tools/agent-hooks/Verdict.fs:1 |
| 3 | tools/agent-hooks/Hook.fs | 95 | The IO around ReplGuard.decide: stdin, the project scan, the /health probe, the lease ask, stdout. The decision itself is ReplGuard.fs and the run around it is Verdict.fs, the files SageFs.Tests compiles and tests. tools/agent-hooks/Hook.fs:1 |
| 4 | tools/agent-hooks/publish.fsx | 88 | tools/agent-hooks/publish.fsx build the Claude Code hook programs where settings.json can point at them Run with: dotnet fsi tools/agent-hooks/publish.fsx tools/agent-hooks/publish.fsx:1 |
what it use and who use it
1 package(s) named in SageFs.AgentHooks.fsproj: FSharp.Core.
it reference no other project of this repo.
no other project of this repo reference it.
what test it
no test project reference this one.
where to look for trouble
the demon watch catalog match nothing here. it list only patterns grug know, so a quiet file can still hide behaviour.