atagen

roundabout

public
Star0
Watch0
caac091f257ad8d53409925aac0d377b716994f8
1
ssh://brewery@pls.lobotomise.me:33/atagen/roundabout.git

Blame: nix/codex-hooks.nix

4e5ca2e20401atagen2026-09-28 11:42 UTC1
{ lib, roundabout }:
4e5ca2e20401atagen2026-09-28 11:42 UTC2
4e5ca2e20401atagen2026-09-28 11:42 UTC3
let
4e5ca2e20401atagen2026-09-28 11:42 UTC4
  hook = event: {
4e5ca2e20401atagen2026-09-28 11:42 UTC5
    type = "command";
4e5ca2e20401atagen2026-09-28 11:42 UTC6
    command = "${lib.getExe roundabout} hook codex-${event}";
4e5ca2e20401atagen2026-09-28 11:42 UTC7
  };
4e5ca2e20401atagen2026-09-28 11:42 UTC8
in
4e5ca2e20401atagen2026-09-28 11:42 UTC9
{
4e5ca2e20401atagen2026-09-28 11:42 UTC10
  PreToolUse = [
4e5ca2e20401atagen2026-09-28 11:42 UTC11
    {
4e5ca2e20401atagen2026-09-28 11:42 UTC12
      matcher = "Bash";
4e5ca2e20401atagen2026-09-28 11:42 UTC13
      hooks = [ (hook "pre-tool-use") ];
4e5ca2e20401atagen2026-09-28 11:42 UTC14
    }
4e5ca2e20401atagen2026-09-28 11:42 UTC15
  ];
4e5ca2e20401atagen2026-09-28 11:42 UTC16
  PostToolUse = [ { hooks = [ (hook "post-tool-use") ]; } ];
4e5ca2e20401atagen2026-09-28 11:42 UTC17
  UserPromptSubmit = [ { hooks = [ (hook "prompt-submit") ]; } ];
4e5ca2e20401atagen2026-09-28 11:42 UTC18
  Stop = [ { hooks = [ (hook "stop") ]; } ];
4e5ca2e20401atagen2026-09-28 11:42 UTC19
  SubagentStop = [ { hooks = [ (hook "subagent-stop") ]; } ];
4e5ca2e20401atagen2026-09-28 11:42 UTC20
  SessionEnd = [ { hooks = [ (hook "session-end") ]; } ];
4e5ca2e20401atagen2026-09-28 11:42 UTC21
}