Repository navigation
Claude Code
Claude Code connects its original terminal session to Agentix through the agentix-bridge@agentix plugin. The plugin starts a local MCP subprocess, which connects outbound to the existing ~/.local/share/agentix/control.sock. Agentix still owns IM credentials, authorization, session bindings, and card rendering.
AGENTIX_CLAUDE_DELIVERY accepts exactly three modes. It defaults to auto; rmux, tmux, and rex are not delivery-mode values.
| Mode | Selection | Behavior |
|---|---|---|
| Auto | Unset or auto
|
Read-only probes verify the inherited socket, pane and original process ancestry. Exactly one of rmux/tmux/Rex must match before any input is sent. |
| Multiplexer | multiplexer |
Uses the effective service multiplexer.kind received during Bridge registration, refreshed on every reconnect. Disabled (null) configuration permits registration but disables terminal prompt delivery; missing or invalid configuration rejects registration. |
| Channel | channel |
Uses Claude Channels with the startup flags below. No terminal multiplexer is needed for prompt delivery. |
Terminal modes require the relevant terminal executable (Rex also supports standard macOS app discovery) and starting Claude inside it. All modes require the bridge plugin. There is no fallback to another adapter after submission or an uncertain delivery.
The service configuration is global, shared by every agent:
[multiplexer]
kind = "tmux" # default: autoBoth settings require restarting Agentix when changed. Per-agent working-directory keys have been removed.
Use Node.js 22 or later and a Claude Code release supporting exec-form command hooks (tested with 2.1.236). For the default non-Channel mode, install rmux or tmux on PATH, or Rex in a standard macOS Applications directory (or on PATH). The MCP SDK is bundled; plugin users do not need npm install. The default prompt delivery detects the original terminal and does not require Channels.
From the Agentix checkout:
claude plugin marketplace add .
claude plugin install agentix-bridge@agentixThe marketplace is named agentix, matching Taskix Manager. You can install either plugin independently or both together. No official marketplace submission is required. If you already registered agentix from another checkout, update that marketplace source to the checkout containing this plugin before installing.
Add the backend to the Agentix configuration:
[agent.claude]
command = "claude"
session_dir = "~/.claude/projects"session_dir is the allowed transcript root, not a directory passed to Claude as a session-storage flag. Set it to your actual Claude projects directory when using a custom Claude configuration directory. It can coexist with [agent.codex], [agent.pi], and [agent.omp]. There is no backend kind field.
Start or restart Agentix. For an unreleased local build, run cargo build -p agentix and ./target/debug/agentix serve from the worktree; a previously installed Homebrew binary may not support the new backend or named configuration tables.
In an rmux, tmux, or Rex terminal, change to your project directory and start Claude normally:
claudeCreate or attach a workspace with tmux new-session -A -s claude-work (or the corresponding rmux command), then run claude there. The bridge uses inherited TMUX and TMUX_PANE to address the original socket and pane, including a custom socket. A regular terminal outside a multiplexer can report history and events but cannot receive prompts through terminal delivery.
No --channels or --dangerously-load-development-channels argument is needed. If you saved the earlier fish wrapper that always adds the flag, remove it with functions --erase claude and remove ~/.config/fish/functions/claude.fish only if it is that wrapper. For a single launch, command claude bypasses the wrapper.
Send /rmux claude, /tmux claude, or /rex claude in IM, matching multiplexer.kind, and create a terminal. Agentix launches Claude without Channel flags; agentix-bridge@agentix must already be installed for that user. Complete any ordinary trust or permission dialogs in the terminal.
Keep the original terminal running. Use /sessions claude in IM to select and attach the session. Leave Claude idle in insert mode, then send an ordinary message in IM. Before pasting, Agentix reads the existing terminal draft (including multiline text) and shows it in IM with Clear and send and Cancel sending. Only confirmation clears the matching draft with Ctrl+C; cancellation preserves it. A changed draft is shown again for confirmation. An already empty input box is left alone. The adapter then pastes and submits the IM text through the original terminal. A matching UserPromptSubmit hook confirms receipt; the Stop hook reports the answer and completes the turn. Model cooperation with an acknowledgement tool is not required for terminal delivery.
A Claude Code session using a third-party API such as DeepSeek can show:
--dangerously-load-development-channels ignored (plugin:agentix-bridge@agentix)
Channels are not currently available
In the previous Channel-only implementation, hooks still reported terminal activity to IM, but IM prompts never reached Claude: the two directions use different mechanisms. The development flag bypasses the plugin allowlist only; it does not enable an unavailable Channel feature. Official Channels require supported Anthropic authentication and applicable organization settings.
The default terminal delivery avoids this dependency. It submits ordinary terminal input without changing Claude's authentication or provider configuration. The plugin still connects to Agentix's configured Unix or loopback TCP endpoint for requests, events, history, and delivery receipts.
Channel delivery remains supported alongside the default auto adapter. To select it explicitly, start Claude with:
AGENTIX_CLAUDE_DELIVERY=channel claude --dangerously-load-development-channels plugin:agentix-bridge@agentixThis mode requires Claude to accept the development-channel confirmation and enable Channels. It uses agentix_acknowledge and agentix_reply. These tools, the Channel capability, and Channel-specific model instructions are exposed only in Channel mode; terminal mode advertises none of them. There is no automatic fallback between adapters: switching after an uncertain delivery could duplicate a prompt. Omit the environment variable for the default auto adapter.
- The adapter checks the pane's original process ancestry, active command, cursor, and surrounding prompt borders, then verifies the cleared input row. Existing drafts require explicit IM confirmation before clearing and submission. A dialog, copy mode, non-insert Vim mode, unrecognized layout, or unsuccessful clearing prevents submission. An already active turn is rejected.
- Text is loaded into a uniquely named terminal buffer through stdin, pasted with bracketed-paste support, then submitted with Enter. It is not interpreted by a shell. Messages are limited to 64 KiB; terminal control characters and leading slash/bang commands are rejected. Newlines are supported.
- Clearing uses the default Claude Ctrl+C binding only for a detected nonempty draft; it is not the
/clearcommand and does not reset conversation history. These checks are best effort, not an atomic terminal lock. Do not type or change pane state while Agentix is submitting. UI changes or another user typing between checks can still interfere. Handle permissions and steering locally./newhas a separate restricted terminal path that interrupts active work before submitting native/clear; it does not use plain prompt delivery. - Successful terminal commands alone do not confirm delivery. The bridge waits for a matching prompt hook. A partial paste or acknowledgement timeout is retained as
delivery_uncertainand is never replayed automatically. Inspect the terminal and/history; remove any unsubmitted pasted draft locally before using/queue clearand sending a new request. Clearing a receipt does not cancel text already submitted. - If resuming a session with an uncertain receipt from the old Channel adapter, inspect it and use
/queue clearbefore retrying with terminal delivery./statusidentifies the active delivery adapter and unresolved receipts.
IM /new requires terminal delivery with the original Claude process in rmux/tmux/Rex. It waits for active work to stop, validates an empty Claude input row, and submits /clear. Starting /clear locally also transfers the IM binding using the SessionEnd clear reason and SessionStart clear source. Parent process identity and the previous session ID distinguish replacement from resume or another Claude process. Messages sent during the gap are retained by Agentix until the replacement is attached, or paused after 120 seconds. This does not enable arbitrary slash commands through prompt delivery.
For Rex, start Claude in a local Rex pane. The bridge reads REX_SESSION and REX_BLOCK, verifies the local host and process ancestry, and uses the full IDs for subsequent operations. Set service multiplexer.kind = "rex" for the /rex menu. Executable discovery also checks Rex.app and Rex Beta.app in standard macOS Applications directories; remote Rex endpoints are rejected.