You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prefix J5's MCP tools with j5_ so they cannot be mistaken for a harness's native tools #508
Decided by Jackson on 2026-10-09 after the live Claude run for the upstream advance (#500). To be its own PR, after #500 merges.
Problem
Recent Claude Code versions ship two built-in tools, SendMessage and ListAgents, for talking to other Claude sessions. J5 does not hide them, so every Claude agent J5 runs has them.
Agents pick the wrong tool. The built-in SendMessage is loaded at the start of a turn, while J5's t3-code tools sit behind Claude's tool search. J5's delivery envelope says "Reply once with send_message(…)". In the live run on Haiku (CLI 2.1.292) the agent chose the built-in tool first in three of four cases. In one, a reply to an ask was lost: the built-in tool answered that no such agent was reachable, the receiver gave up, and the sender was told the turn ended with no reply. A Crew seat made the same first call and then recovered. Only Haiku was tested.
ListAgents reaches outside the ledger. On an isolated test server it listed other Claude Code sessions on the host that had nothing to do with that server. The three built-in sends in the run all failed, so nothing crossed over, but it is a path for agent communication the ledger cannot see, which is why J5 hides upstream's raw send tools (register D2).
Change
Withhold both tools from every J5 thread on Claude, through the Claude adapter's existing disallowedTools option. J5 already spreads that option for Crew seats (j5ClaudeCrewSeatQueryOverrides, FORK.md case 47, which withholds AskUserQuestion). This changes what upstream's adapter does, so it needs a register entry in docs/j5/product/upstream.md and a FORK.md case.
Check first
Whether anything a Claude agent legitimately does inside J5 depends on either tool, in particular Claude's own provider-native subagents and background agents.
Whether Codex or another harness has an equivalent built-in that needs the same treatment.
Whether J5's delivery envelope should also name its tool less ambiguously, for harnesses where a built-in cannot be withheld.
Reproduce
Two Haiku threads in one project; send_message with expect_reply=true from one to the other; read the receiver's native provider log for a SendMessage call.
changed the title [-]Withhold Claude Code's native SendMessage and ListAgents from J5's Claude sessions[/-][+]Prefix J5's MCP tools with j5_ so they cannot be mistaken for a harness's native tools[/+]on Oct 10, 2026
Direction changed (Jackson, 2026-10-10). Nothing is withheld.
Why not withhold. On Claude, SendMessage is the only way a parent continues a provider-native subagent it spawned: every Agent tool result says to use it, and with it disallowed a follow-up to a subagent is impossible (spawning, results and background runs still work). Native subagents are one of J5's three shapes of help, so that would remove a core thing. Withholding the subagent tool itself would remove more. ListAgents also lists the agent's own subagents, no harm from it was shown, and hiding sessions that are not J5's is not a reason that differentiates J5; that question belongs with #336.
The root cause is the name. J5's send_message and Claude's SendMessage read as the same tool, the native one is loaded first, and J5's delivery text says "reply once with send_message(…)". Upstream's thread tools carry a t3_ prefix (t3_thread_send), so its equivalent does not collide.
The change. Every tool J5 owns gets a j5_ prefix: messaging (j5_send_message, j5_clear_own_ask, j5_list_participants), agents and Crews (j5_spawn_agent, j5_stop_agent, j5_propose_crew, j5_request_crew_member, j5_stop_crew, j5_archive_crew), personas and playbooks (j5_list_personas, the nine j5_playbook_* tools), and artifacts (j5_write_artifact, j5_read_artifact, j5_list_artifacts). Upstream's names that J5 re-declares stay: delegate_task, orchestrator_capabilities, t3_thread_fork, t3_thread_organize, t3_thread_send_attachments.
No aliases for the old names. Stored history keeps rendering: the timeline and every reader of past tool calls recognize both the old and new names.
Measured before and after on Haiku: how often the receiver of an ask reaches for the native tool first, and how often the reply arrives.
Activity
[-]Withhold Claude Code's native SendMessage and ListAgents from J5's Claude sessions[/-][+]Prefix J5's MCP tools with j5_ so they cannot be mistaken for a harness's native tools[/+]Jacksondr5 commentedon Oct 10, 2026
Direction changed (Jackson, 2026-10-10). Nothing is withheld.
Why not withhold. On Claude,
SendMessageis the only way a parent continues a provider-native subagent it spawned: everyAgenttool result says to use it, and with it disallowed a follow-up to a subagent is impossible (spawning, results and background runs still work). Native subagents are one of J5's three shapes of help, so that would remove a core thing. Withholding the subagent tool itself would remove more.ListAgentsalso lists the agent's own subagents, no harm from it was shown, and hiding sessions that are not J5's is not a reason that differentiates J5; that question belongs with #336.The root cause is the name. J5's
send_messageand Claude'sSendMessageread as the same tool, the native one is loaded first, and J5's delivery text says "reply once with send_message(…)". Upstream's thread tools carry at3_prefix (t3_thread_send), so its equivalent does not collide.The change. Every tool J5 owns gets a
j5_prefix: messaging (j5_send_message,j5_clear_own_ask,j5_list_participants), agents and Crews (j5_spawn_agent,j5_stop_agent,j5_propose_crew,j5_request_crew_member,j5_stop_crew,j5_archive_crew), personas and playbooks (j5_list_personas, the ninej5_playbook_*tools), and artifacts (j5_write_artifact,j5_read_artifact,j5_list_artifacts). Upstream's names that J5 re-declares stay:delegate_task,orchestrator_capabilities,t3_thread_fork,t3_thread_organize,t3_thread_send_attachments.No aliases for the old names. Stored history keeps rendering: the timeline and every reader of past tool calls recognize both the old and new names.
Measured before and after on Haiku: how often the receiver of an ask reaches for the native tool first, and how often the reply arrives.