Consolidates three codebases into a single agent orchestration repo: - agentci (from go-scm): Clotho dual-run verification, agent config, SSH security (sanitisation, secure commands, token masking) - jobrunner (from go-scm): Poll-dispatch-report pipeline with 7 handlers (dispatch, completion, auto-merge, publish draft, dismiss reviews, send fix command, tick parent epic) - plugins marketplace (from agentic/plugins): 27 Claude/Codex/Gemini plugins with shared MCP server All 150+ tests passing across 6 packages. Co-Authored-By: Virgil <virgil@lethean.io>
87 lines
2.9 KiB
JSON
87 lines
2.9 KiB
JSON
{
|
|
"description": "Agentic Flows workflow hooks - project detection, core CLI suggestions, and completion verification",
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/suggest-core-cli.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/post-edit.sh",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/post-edit.sh",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/prompt-context.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "prompt",
|
|
"prompt": "Before allowing task completion, verify the work quality. Check the conversation transcript for:\n\n1. **Tests**: Were tests run? Look for test output, `go test`, `npm test`, `pytest`, or similar.\n2. **Build**: Did the build pass? Look for successful compilation or build output.\n3. **Verification**: Was the change verified to work? Look for confirmation the feature works.\n4. **Uncommitted changes**: If code was written, was it committed (if user requested)?\n\n**Decision criteria:**\n- If this was a CODE CHANGE task and no tests were run → block with suggestion to run tests\n- If this was a RESEARCH/QUESTION task → approve (no tests needed)\n- If tests were run and passed → approve\n- If tests failed and weren't fixed → block\n- If user explicitly said \"don't run tests\" or \"skip tests\" → approve\n\nReturn JSON:\n- `{\"decision\": \"approve\"}` - work is complete\n- `{\"decision\": \"block\", \"reason\": \"Specific action needed\"}` - needs more work\n\nBe pragmatic: don't block for minor tasks, documentation, or when user clearly wants to stop.",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreCompact": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/pre-compact.sh",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|