Skip to content

Run Claude-compatible hooks (PreToolUse Bash, PreCompact, …) #24

Open

Description

@agent3-workflow

Problem. AgentMux writes .claude/settings.json with a PreToolUse Bash hook (agentmux-bashwrap, live Bash streaming) and PreCompact. Mux Code runs no hooks.

Do. Claude's hook format: command hooks with JSON on stdin (session_id, transcript_path, cwd, permission_mode, hook_event_name, tool_name, tool_input, tool_use_id); exit code 2 blocks; JSON output decision/reason, hookSpecificOutput.permissionDecision (allow|deny|ask|defer), updatedInput, additionalContext. Events first: PreToolUse, PostToolUse, PreCompact; then UserPromptSubmit, Stop, SessionStart.

Spec §6.1.

Spec: SPEC_MUXCODE_HARNESS_AND_FEATURE_GAPS_2026_09_26.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2mediumenhancementNew feature or requestphase-3AgentMux integration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions