Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Agents

symposium supports multiple AI agents. Each agent has its own hook protocol, file layout, and configuration locations. This page documents the agent-specific details that symposium needs to handle.

Supported agents

Config nameAgent
antigravityAntigravity CLI
claudeClaude Code
copilotGitHub Copilot
codexCodex CLI
kiroKiro
opencodeOpenCode
gooseGoose

The agent name is stored in [agent] name in either the user or project config.

Agent responsibilities

For each agent, symposium needs to know how to:

  1. Register hooks: write the hook configuration so the agent calls symposium hook on the right events.
  2. Install extensions — place skill files (and eventually workflow/MCP definitions) where the agent expects them.

Where these files go depends on whether the agent is configured at the user level or the project level (see sync --agent).

Unregistering takes symposium’s entries out of a hooks file it shares with the user, along with the event arrays and the hooks object that this leaves empty. Whatever else is in the file stays as it was.

Extension locations

When installing skills, symposium prefers vendor-neutral paths where possible:

ScopePathSupported by
Project skills.agents/skills/<skill-name>/SKILL.mdAntigravity, Copilot, Codex, Goose
Project skills.claude/skills/<skill-name>/SKILL.mdClaude Code (does not support .agents/skills/), only for a skill no compiled plugin carries
Project skills.kiro/skills/<skill-name>/SKILL.mdKiro (uses its own path)
Project skills.opencode/skills/<skill-name>/SKILL.mdOpenCode (also reads .agents/skills/)

At the project level, Claude Code requires .claude/skills/, Kiro requires .kiro/skills/, while Antigravity, Copilot, Codex, OpenCode, and Goose all support .agents/skills/. symposium uses the vendor-neutral .agents/skills/ path whenever the agent supports it, except for OpenCode: an agent that reads .agents/skills/ and takes a plugin enabled with use --global as a plugin would also find OpenCode’s per-skill copies of its skills, so they go to .opencode/skills/, which only OpenCode reads. A skill authored in .agents/skills/ gets no copy there, since OpenCode reads it where it is.

At the global level, each agent has its own path:

AgentGlobal skills path
Antigravity CLI~/.gemini/config/skills/<skill-name>/SKILL.md
Claude Code~/.claude/skills/<skill-name>/SKILL.md
Copilot(no global skills path)
Codex~/.agents/skills/<skill-name>/SKILL.md
Kiro~/.kiro/skills/<skill-name>/SKILL.md
OpenCode~/.agents/skills/<skill-name>/SKILL.md
Goose~/.agents/skills/<skill-name>/SKILL.md

A plugin enabled with use --global reaches an agent as one compiled plugin directory instead, through Agent::deliver_user_plugins: Claude Code receives it in ~/.claude/skills/<plugin>/, Antigravity CLI in ~/.gemini/config/plugins/<plugin>/, Goose in ~/.agents/plugins/<plugin>/, Codex CLI installs it into its plugin cache through two entries in ~/.codex/config.toml, the Copilot CLI loads it in place through two entries in ~/.copilot/settings.json, and the other agents keep per-skill copies in the project. See sync.

Every other plugin that applies to the workspace is compiled the same way into the project staging root, <project>/.symposium/plugins/<plugin>/, and reaches an agent that can scope a plugin to a project through Agent::deliver_project_plugins. Only Claude Code does: it receives each directory in <project>/.claude/skills/<plugin>/ and then gets no per-skill copies of that plugin’s skills. Every other agent keeps per-skill copies in the project. See sync.


Claude Code

Hooks reference · Settings reference · Skills reference

Hook registration

Claude Code hooks live under the "hooks" key in settings JSON files. Each event maps to an array of matcher groups, each containing an array of hook commands. The user’s own handlers can share symposium’s group, so unregistering removes symposium’s handler from it and drops the group only once it is empty.

ScopeFile
Global~/.claude/settings.json ($CLAUDE_CONFIG_DIR/settings.json when set)
Project (shared).claude/settings.json
Project (personal).claude/settings.local.json

Example hook registration:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "symposium hook claude pre-tool-use"
          }
        ]
      }
    ]
  }
}

Supported events

Claude Code supports many hook events. Symposium registers these:

EventDescription
PreToolUseBefore a tool is invoked. Can allow, block, or modify the tool call.
PostToolUseAfter a tool completes.
UserPromptSubmitWhen the user submits a prompt.
SessionStartSession starts, resumes, or is cleared or compacted. Where symposium adds its own context.
StopAgent turn completes. Claude Code reads no context from it.

Other events include Notification, SubagentStart, and more.

Hook payload/output

Claude Code wraps hook-specific fields in a nested hookSpecificOutput object:

{
  "continue": true,
  "hookSpecificOutput": {
    "hookEventName": "PreToolUse",
    "permissionDecision": "allow",
    "additionalContext": "...",
    "updatedInput": "..."
  }
}

GitHub Copilot

Hooks reference · Using hooks (CLI) · Skills reference

Hook registration

Copilot hooks are defined in JSON files with a version field. Hook entries use platform-specific command keys (bash, powershell) rather than a single command field.

ScopeFile
Global~/.copilot/settings.json ($COPILOT_HOME/settings.json when set), under the hooks key
Project.github/hooks/*.json

Example hook registration:

{
  "version": 1,
  "hooks": {
    "preToolUse": [
      {
        "type": "command",
        "bash": "symposium hook copilot pre-tool-use",
        "timeoutSec": 10
      }
    ]
  }
}

Note: Copilot uses camelCase event names (preToolUse), unlike Claude Code’s PascalCase (PreToolUse).

Supported events

EventDescription
preToolUseBefore a tool is invoked. Can allow, deny, or modify tool args.
postToolUseAfter a tool completes.
sessionStartNew session begins. Supports command and prompt types.
sessionEndSession completes.
userPromptSubmittedWhen the user submits a prompt.
errorOccurredWhen an error occurs.

Hook payload/output

Copilot uses a flat output structure (no nested hookSpecificOutput). The input payload has toolName and toolArgs (where toolArgs is a JSON string that must be parsed separately):

{
  "permissionDecision": "allow",
  "permissionDecisionReason": "...",
  "modifiedArgs": { ... },
  "additionalContext": "..."
}

Valid permissionDecision values: "allow", "deny", "ask".


Antigravity CLI

Hooks reference

Hook registration

Antigravity hooks live in a dedicated hooks.json under the customization root — .agents/ in a workspace, ~/.gemini/config/ globally. Entries are keyed by a hook name, so symposium owns a single symposium key and leaves anything else in the file untouched.

ScopePath
Global~/.gemini/config/hooks.json
Project.agents/hooks.json
{
  "symposium": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "symposium hook antigravity pre-tool-use",
            "timeout": 30
          }
        ]
      }
    ],
    "SessionStart": [
      {
        "type": "command",
        "command": "symposium hook antigravity session-start",
        "timeout": 30
      }
    ]
  }
}

Note the two shapes: tool events (PreToolUse, PostToolUse) wrap their handlers in a matcher group, while lifecycle events (PreInvocation, SessionStart, Stop) take a flat list. Timeouts are in seconds, not milliseconds. An unrecognised shape or an unknown event name is accepted silently and simply never fires.

SessionStart is missing from Antigravity’s published documentation but present in its hook proto. It fires with the first turn of a new conversation (in the TUI, at the first prompt rather than at launch) and never on resume, so a resumed conversation skips the SessionStart refresh. There is no prompt event, so PreInvocation stands in for user-prompt-submit; because it fires before every model call, only invocationNum == 0 dispatches (AgentHookInput::should_dispatch).

Hook output

Exit codes are ignored entirely — only stdout matters. On PreToolUse, an object without a valid decision (including {}) is treated as a denial, so symposium always emits {"decision": "allow"} unless a plugin actually denied. Context is returned as an injected step rather than an additionalContext field:

{ "injectSteps": [{ "ephemeralMessage": "..." }] }

Kiro

Hooks reference

Hook registration

Kiro hooks live in agent JSON files under .kiro/agents/. Symposium creates a symposium.json agent file with its hooks. Kiro uses camelCase event names.

ScopeFile
Global~/.kiro/agents/symposium.json
Project.kiro/agents/symposium.json

Example hook registration:

{
  "hooks": {
    "preToolUse": [
      {
        "matcher": "*",
        "command": "symposium hook kiro pre-tool-use"
      }
    ],
    "agentSpawn": [
      {
        "command": "symposium hook kiro session-start"
      }
    ]
  }
}

Kiro uses a flat entry format: each entry has command directly (and optional matcher), with no nested hooks array or type field.

Supported events

EventDescription
preToolUseBefore a tool is invoked. Can block (exit code 2).
postToolUseAfter a tool completes.
userPromptSubmitWhen the user submits a prompt.
agentSpawnSession starts (maps to session-start internally).
stopAgent finishes.

Hook payload/output

Kiro uses exit-code-based control flow:

  • Exit 0: stdout captured as additional context
  • Exit 2: block (preToolUse only), stderr as reason
  • Other: warning, stderr shown

Input includes hook_event_name, cwd, tool_name, and tool_input on stdin as JSON.

Unregistration

Unregistration deletes the symposium.json file.


Codex CLI

Hooks reference

Hook registration

Codex CLI hooks live in hooks.json files. The structure is similar to Claude Code — nested matcher groups with hook command arrays. Codex uses PascalCase event names and timeout in seconds.

ScopeFile
Global~/.codex/hooks.json ($CODEX_HOME/hooks.json when set)
Project.codex/hooks.json

Example hook registration:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "",
        "hooks": [{
          "type": "command",
          "command": "symposium hook codex pre-tool-use",
          "timeout": 10
        }]
      }
    ]
  }
}

Note: An empty matcher string matches everything in Codex (equivalent to "*" in other agents).

Unregistering works as in Claude Code: symposium’s handler leaves its matcher group, and the group goes only once it is empty.

Supported events

EventDescription
PreToolUseBefore a tool is invoked. Can block.
PostToolUseAfter a tool completes. Can stop session (continue: false).
UserPromptSubmitWhen the user submits a prompt.
SessionStartSession starts or resumes.
StopAgent turn completes.

Hook payload/output

Codex uses a protocol similar to Claude Code, with two methods to block:

  1. JSON output: { "decision": "block", "reason": "..." }
  2. Exit code 2 with reason on stderr

Also supports hookSpecificOutput with additionalContext, and { "continue": false } to stop the session.

Input includes session_id, cwd, hook_event_name, model, turn_id, tool_name, tool_use_id, and tool_input.


OpenCode

Hooks reference

Hook registration

OpenCode does not support shell-command hooks. Its extensibility is based on TypeScript/JavaScript plugins. Symposium cannot register hooks for OpenCode.

Supported events

OpenCode’s plugin system supports these events, but Symposium does not currently bridge them:

OpenCode eventSymposium eventDescription
tool.execute.beforepre-tool-useBefore a built-in tool runs. Can block by throwing Error, or mutate output.args.
tool.execute.afterpost-tool-useAfter a built-in tool completes.
message.updateduser-prompt-submitFiltered to role === "user" messages.
session.createdsession-startWhen a new session begins.

Goose

Hooks reference

Hook registration

Symposium registers no hooks for Goose. Goose has lifecycle hooks of its own (a plugin can carry them in hooks/hooks.json), but symposium does not use them.

Goose is supported as a skills-only agent: symposium sync will install skill files in the vendor-neutral .agents/skills/ path.


Cross-agent event mapping

The following table maps symposium’s internal event names to each agent’s wire-format event name. — means the agent does not support shell-command hooks; not registered means symposium does not hook that event there.

Symposium eventAntigravityClaudeCopilotCodexKiroOpenCodeGoose
pre-tool-usePreToolUsePreToolUsepreToolUsePreToolUsepreToolUse——
post-tool-usePostToolUsePostToolUsepostToolUsePostToolUsepostToolUse——
user-prompt-submitPreInvocationUserPromptSubmituserPromptSubmittedUserPromptSubmituserPromptSubmit——
session-startSessionStartSessionStartsessionStartSessionStartagentSpawn——
stopStopStopnot registerednot registerednot registered——

Tool names are each agent’s own, and symposium passes them to plugin hooks unchanged: the same shell tool is Bash in Claude Code and Codex, bash in Copilot, execute_bash in Kiro and run_command in Antigravity. A matcher that should fire on several agents has to name each of them.


Adding a new agent

To add support for a new agent:

  1. Add a variant to the HookAgent enum in hook_schema.rs.
  2. Create an agent module (e.g., hook_schema/newagent.rs) implementing the Agent trait and the event-specific payload/output types.
  3. Implement the AgentHookPayload and AgentHookOutput traits to convert between the agent’s wire format and the internal HookPayload/HookOutput types.
  4. Document the agent’s hook registration locations and extension file layout in this page.