About Agentihooks
Agentihooks is an MCP server published by the-cloud-clockwork in the Agents category: hook system and MCP tool server for Claude Code agents. Designed for agenticore — fork and extend for custom workflows. Conduid read 28 tools from its source: brain_refresh, brain_status, channel_acknowledge, channel_clear, channel_list, channel_publish and 22 more. No package is published for it, so it installs from a source checkout.
The repository has 1 stars and 2 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. Its topics include agenticore and hooks.
Install
git clone https://github.com/the-cloud-clockwork/agentihooksTools (28)
brain_refreshForce the brain adapter to re-read its source and republish to the brain channel.brain_statusReturn current brain adapter state: source type, path, entry count, channel.channel_acknowledgeAcknowledge a broadcast message — stops it from re-injecting for this session.| Parameter | Type | Description |
|---|---|---|
| message_id * | string | The broadcast message ID to acknowledge |
| session_id | string | THIS session's own id, shown to you at session start. The ack is recorded against it, so it must name a real session — required under a network MCP transport, which has no per-caller environment to fall back on. |
channel_clearClear broadcast messages.| Parameter | Type | Description |
|---|---|---|
| channel | string | Channel name to clear (optional) |
| message_id | string | Specific message ID to clear (optional) |
channel_listList all channels with active (non-expired) messages.channel_publishPublish a message to a named broadcast channel.| Parameter | Type | Description |
|---|---|---|
| channel * | string | Channel name (e.g. "brain", "ops-alerts", "deploy-status") |
| message * | string | Message content to broadcast |
| severity | string | "info", "alert", or "critical" (default: info) |
| ttl_seconds | integer | Time-to-live in seconds (default: 3600) |
condition_clearDelete a condition file. Only when the operator asks to remove/clear/delete| Parameter | Type | Description |
|---|---|---|
| cwd | string | as in condition_list. |
| file * | string | the condition's file name. |
| scope | string | "global", "shared", "user", "profile" or "directory" when the name exists in several layers. |
| session_id * | string | your session id (from the SessionStart banner). |
condition_listList condition layers (bundle, profiles, runtime, directory), the active| Parameter | Type | Description |
|---|---|---|
| cwd | string | directory whose repository's directory layer to include; defaults to the session's project directory. |
condition_setCreate a condition: a script agentihooks runs on every matching tool call.| Parameter | Type | Description |
|---|---|---|
| cwd | string | directory inside the target repository for scope="directory". |
| language | string | "bash", "python" or "filter" (script is the filter YAML, checked against the filter schema; written as <step>-<matcher>-<name>.filter.yaml). |
| matcher * | string | "" or any for stop and start; otherwise any, a tool name (bash, edit, write, read, webfetch), mcp, mcp__<server>, mcp__<server>__<tool>, bash.<cli> (e.g. bash.kubectl); join alternatives with "+". |
| name * | string | letters, digits and "_" only. |
| profile | string | profile name for scope="profile"; defaults to the chain's first. |
| replace | boolean | overwrite an existing condition with the same file name. |
| run_async | boolean | run detached; its output is ignored. |
| scope | string | "global" (bundle-wide; ~/.agentihooks when no bundle is linked), "shared" (the shared bundle), "user" (the personal user bundle), "profile" (one profile of the chain), or "directory" (<git-root>/.agentihooks/conditions of the current repository). |
| script * | string | the script body. |
| session_id * | string | your session id (from the SessionStart banner). |
| step * | string | "pre" (before the tool runs), "post" (after it succeeds), "stop" (when the agent stops; exit 2 or decision deny keeps it working) or "start" (at SessionStart; context only, it can never deny or rewrite). |
condition_showReturn the script of an active condition by file name (see condition_list).| Parameter | Type | Description |
|---|---|---|
| cwd | string | as in condition_list. |
| file * | string | the condition's file name, e.g. "pre-bash.kubectl-readonly.sh". |
enforcement_clearClear enforcement messages.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Directory inside the target repository; defaults to the session's project directory. |
| enforcement_id | string | Specific enforcement ID to clear (optional) |
| local | boolean | Clear from the current repository's store instead of the global one. |
| tag | string | Tag to clear all matching enforcements (optional) |
enforcement_listList active enforcements with their cadence and tag.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Directory inside the target repository; defaults to the session's project directory. |
| local | boolean | List only the current repository's entries. |
enforcement_setRegister a drumbeat enforcement that re-injects every N tool calls.| Parameter | Type | Description |
|---|---|---|
| cadence | integer | Re-inject every N tool calls. Required, must be >= 1. |
| cwd | string | Directory inside the target repository; defaults to the session's project directory. |
| local | boolean | Store it in the current repository only (see above). |
| matcher | string | Optional tool matcher; the enforcement is then delivered only on matching tool calls and its cadence counts those calls only. Grammar: any, bash, edit, mcp, mcp__<server>, mcp__<server>__<tool>, bash.<cli> (e.g. bash.kubectl); join alternatives with "+". |
| message | string | Reminder text to inject for type=message. |
| path | string | Absolute UTF-8 rule file path required for type=rule. Its complete current contents are read on every injection. |
| tag | string | Optional tag for grouping (lets you clear-by-tag later). |
| type | string | Enforcement type: message (default) or rule. |
memory_clearClear ALL memories. Requires confirm=true.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be true to proceed with deletion |
memory_deleteDelete a specific memory by ID.| Parameter | Type | Description |
|---|---|---|
| memory_id * | string | UUID of the memory to delete |
memory_recallRecall recent memories, optionally filtered by session, tags, or time.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum results to return (default: 10) |
| session_id | string | Filter by source session ID |
| since_hours | integer | Only return memories from the last N hours (0 = no limit) |
| tags | string | Comma-separated tags to filter by (all must match) |
memory_saveSave a memory for future recall across sessions.| Parameter | Type | Description |
|---|---|---|
| content * | string | The memory text to store |
| session_id | string | Source session ID (defaults to "manual") |
| summary | string | Short one-line summary (auto-generated from first 100 chars if empty) |
| tags | string | Comma-separated tags for categorization (e.g., "architecture,fastapi") |
memory_searchSearch memories by keyword across content, summary, and tags.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum results to return (default: 10) |
| query * | string | Search keyword or phrase |
| tags | string | Comma-separated tags to filter by (all must match) |
recall_getReturn one recall item in full: its whole text, parent chain and comments.| Parameter | Type | Description |
|---|---|---|
| ref * | string | an item key from recall_search ("<ledger>/tasks/rc6") or a ref inside the scope ("tasks/rc6"). |
| scope | string | as in recall_search. |
recall_searchSearch tasks, phases, comments, chat, handoffs and learned notes of earlier| Parameter | Type | Description |
|---|---|---|
| author | string | only records by this author. |
| kinds | string | comma separated record kinds, e.g. "task,comment,handoff". |
| limit | integer | most hits returned. |
| period | string | "SINCE", "SINCE..UNTIL" or "..UNTIL"; each an ISO time, epoch milliseconds or a span back from now such as 1d or 3h. |
| query * | string | words, a task id such as rc6, a ref such as tasks/rc6, or a PR number such as #6774. |
| scope | string | "" for your own swarm, a ledger or swarm slug, or "all" for every swarm. |
| seat | string | only records under seats/<seat>/. |
recall_sourcesList the indexed ledgers and swarms with record and item counts, lastrecall_timelineList recall items in time order, oldest first.| Parameter | Type | Description |
|---|---|---|
| kinds | string | as in recall_search. |
| limit | integer | most entries returned. |
| period | string | as in recall_search. |
| scope | string | as in recall_search. |
session_getReturn one session's harness, projects, tasks, source timestamps and sources.| Parameter | Type | Description |
|---|---|---|
| session_uid * | string | a session_uid from session_list or a search hit. |
session_listList retained sessions inside your grant with harness, projects, tasks, source timestamps and sources.| Parameter | Type | Description |
|---|---|---|
| cursor | string | next_cursor from an earlier page of the same listing. |
| limit | integer | most sessions per page, 1 to 50. |
| projects | string | comma separated projects narrowing your grant; empty for every granted project. |
session_recordsExpand a search hit's citation to the exact records and archived source text it was built from.| Parameter | Type | Description |
|---|---|---|
| after | integer | extra records after the cited range, 0 to 20. |
| before | integer | extra records before the cited range, 0 to 20. |
| citation * | string | the citation object of a search hit, as JSON. |
| cursor | string | next_cursor from an earlier page of the same expansion. |
| limit | integer | most records per page, 1 to 200. |
session_searchSearch session evidence inside your grant. Each hit carries a citation for session_records.| Parameter | Type | Description |
|---|---|---|
| limit | integer | most hits, 1 to 50. |
| projects | string | comma separated projects narrowing your grant. |
| query * | string | words, identifiers or "quoted phrases". |
transcript_getGet transcript entries for a specific session.| Parameter | Type | Description |
|---|---|---|
| last_n | integer | Number of most recent entries to return (default: 50) |
| session_id * | string | Session ID to retrieve |
transcript_searchSearch through past conversation transcripts in agent.log.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum results (default: 20) |
| query * | string | Search keyword or phrase |
| session_id | string | Filter to a specific session |
Security checks
6 checks have not been run yet.