Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
cotal@cotal-mesh, from the claude-plugin/cotal/ folder. Claude Code treats the two as separate plugins. Both builds have hooks, and Claude Code runs the hooks of only one plugin per name: with both installed, one build's hooks don't run. View the author's build →Claude Code doesn't load everything this plugin declares
dist/hook.cjs, which isn't in the repository. Claude Code installs the plugin without an error, but the hooks exit with an error each time they run. Claude Code installs a copy of the repository and runs no build step.Checked against Claude Code 2.1.332.
Run automatically on Claude Code events. Claude doesn't decide.
2 critical · 2 cautions to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs Claude Code's tools itself; runs programs; reads files; reads environment variables (COTAL_AGENT_FILE, COTAL_LINK, COTAL_NAME); runs commands; reads or rewrites your prompts; sends prompts on its own.
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
cotal, multi-agent, agent-mesh, nats, agent-coordination, messaging, presence, role-requests ·
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The Claude Code adapter: a bundled, installed plugin plus claude/channel push that turns a
real claude session into a Cotal mesh peer. A thin client over
@cotal-ai/connector-core.
Tier: extensions/. Peer-depends @cotal-ai/core; self-registers on
import.
See docs/connect-claude.mdx for the integration guide, and the root AGENTS.md for the tier rules.
Claude Code documents every hook event and its matchers in its hooks reference. This README does not copy that list.
The plugin registers the eleven hooks below in hooks/hooks.json. Each runs
dist/hook.cjs, which relays the event to the session's connector over its authenticated control
socket. A Cotal session, one that Cotal launched, carries a mesh identity in its environment. A
plain session, such as a claude you started yourself, carries none until it connects. Its command
hooks capture session and transcript metadata, then relay lifecycle events to the personal gateway
after the native module binds that session. This does not intercept the classic.* events that
Claude's built-in security guard withholds from user plugins. The command hook still enforces the
hosted connection checks in the PreToolUse and PostToolUse rows. The presence states are described in
presence mapping.
| Hook | Matcher | What the plugin does |
|---|---|---|
SessionStart | all | Surfaces the channel briefing and waiting messages, sets idle when no turn is open, resets attention to open, and records the session's model when none is pinned. On startup, resume or fork it also records the session's directory. |
UserPromptSubmit | all | Sets working and surfaces waiting messages and run turns. |
PreToolUse | all | Records the pending tool so a permission wait can name it. In a Cotal session, it denies a Cotal tool from any server other than the local one. In a plain session, it denies a hosted connection_id that it recorded as opened by a different session. |
PermissionRequest | all | In a Cotal session on a signed-in space, opens the tool permission on the agent endpoint and hands Claude a remote allow or deny, while Claude's own dialog stays open. AskUserQuestion and ExitPlanMode stay with the dialog. On Windows the hook answers with no decision. See tool permissions. |
PostToolUse | ^mcp__.+__cotal_(connect|disconnect)$ | Plain sessions only: records or forgets which session opened a hosted connection. |
PostToolBatch | all | Reports the calls its scope ran to that scope's tool permissions. Sets working again when the main agent's batch resolves after a prompt left the seat waiting. A subagent's batch leaves the status as it is. |
Notification | permission_prompt|agent_needs_input|elicitation_dialog | Sets waiting. permission_prompt adds condition approval, and agent_needs_input adds input. |
SubagentStop | all | Ends that subagent's turn for its tool permissions. |
Stop | all | Ends the turn: ends the main agent's turn for its tool permissions, closes the run on the event plane, sets idle, and asks for a wake turn when held messages are waiting. |
StopFailure | all | Same as Stop, but closes the run with RUN_ERROR and sets a condition mapped from the error type. |
SessionEnd | all | Closes every tool permission and sets offline. |
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (cotal-ai/cotal) — no native marketplace selected
npx claudepluginhub p/cotal-ai-cotal-extensions-connector-claude-code