Skip to content

install writes an unsupported args key into the Claude Code SubagentStart hook, so it never runs #2239

Description

@dergachoff

Problem

The SubagentStart hook cbm installs never runs — every subagent start stalls to the hook timeout and returns no graph context.

Evidence

install -y writes this into ~/.claude/settings.json:

{ "type": "command", "command": "/Users/me/.local/bin/codebase-memory-mcp", "args": ["hook-augment"], "timeout": 5 }

Claude Code's hook schema has no args — in the published settings schema, hookCommand is additionalProperties: false and takes type, command, timeout and async. So the subcommand is dropped and the bare binary runs, which is the MCP stdio server: it waits on stdin and never exits. I piped a SubagentStart payload into it and it was still running at 6s; the same payload into codebase-memory-mcp hook-augment returns in 2s.

Expected fix

The entry that was there before (from 0.9.1-rc.1) pointed at the installed cbm-subagent-reminder wrapper, which does the right thing. Either restore that, or put the subcommand in the command string: "<bin> hook-augment".

v0.11.0, macOS arm64, Claude Code 2.1.278. Same family as #1737, different client.

Activity

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

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.stability/performanceServer crashes, OOM, hangs, high CPU/memoryux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions