A plugin for agterm and companion tools. It supports Claude Code and the Codex CLI.
| Item | Type | Path |
|---|---|---|
agt-extra |
Claude Code and Codex plugin | plugins/agt-extra |
check_package.py |
Release check, runs from this checkout | scripts/check_package.py |
The say-hello skill tests communication with the agent in the other pane.
| Agent | Command |
|---|---|
| Claude Code | /agt-extra:say-hello |
| Codex | $say-hello |
/plugin marketplace add cloud-simple/agterm-extras
/plugin install agt-extra@agterm-extras
To try a local checkout without installing:
claude --plugin-dir plugins/agt-extracodex plugin marketplace add cloud-simple/agterm-extras
codex plugin add agt-extra@agterm-extrasTo try a local checkout, run codex plugin marketplace add . from the checkout and
then run codex plugin add agt-extra@agterm-extras. Start a new session and use /hooks
to review and trust the plugin's UserPromptSubmit hook. The hook sends the hello and reports
the result. It also uses codex queue to deliver the timeout to the same Codex session.
say-hello sends one hello to the agent in the other pane of the split and prints one of
these lines:
OK: <agent> is availableERR: <agent> is not availableERR: no agent is available in the other pane
<agent> is Codex or Claude Code, whichever serves the other pane's mailbox.
The plugin does not include the message transport. It uses agterm's pane mailboxes through the two-agent-mailbox-chat recipe from the agterm cookbook, which needs agterm 0.40.0 or later. The recipe serves Codex and Claude Code. Install it first, following every step of its Setup section for the agents you run:
- The
mailbox-chat.pycommand onPATH. - The Claude Code hooks in
~/.claude/settings.json. This Claude Code needs them to receive the answer, and a Claude Code in the other pane needs them to receive the hello. A running Claude Code normally loads new hooks by itself. If/hooksdoes not list them, restart Claude Code. - The
mailbox-chatskill for each agent in the other pane:~/.claude/skills/mailbox-chatfor Claude Code,~/.codex/skills/mailbox-chatfor Codex. The agent needs it to send its answer back. - For Codex: its
SessionStarthook and sandbox rules, and agterm'son messagehook. - An agterm session with a split, and the agent running in the other pane. Start Codex
with
--no-daemonand a first prompt, as the recipe's Setup shows. Codex takes no messages until its first prompt runs.
In Claude Code, type /agt-extra:say-hello. In Codex, type $say-hello by itself.
Codex also accepts agt-extra:say-hello by itself.
- The skill runs
mailbox-chat.py status. If no running agent serves the other pane, it printsERR: no agent is available in the other paneand sends nothing. - It sends the hello. If the send fails, it prints
ERR: <agent> is not available. - It prints
Hello sent. Waiting up to 90 seconds for <agent>.and ends the turn. A Claude Code that is mid-turn reads the hello only when that turn ends. - If the agent answers before the timeout, it prints
OK: <agent> is available. Codex checks that the reply includes the code from its hello. - After 90 seconds without a reply, it prints
ERR: <agent> is not available. A reply after that result printsOK: <agent> is available (late reply).
Claude Code shows the reply in a collapsed chat received line. Codex shows the reply
and the timeout as queued messages.
main is protected: every change reaches it through a pull request with a squash merge. Direct
pushes, force pushes and deleting main are refused.
To release a new version, raise version to the same value in
plugins/agt-extra/.claude-plugin/plugin.json, plugins/agt-extra/.codex-plugin/plugin.json,
and .claude-plugin/marketplace.json in a pull request. Release from main after the pull
request merges. Use the same version for the release, including when the release changes only a script. The install
commands above read the plugin from the default branch, so a version that is not merged is not
released. The same pull request adds the new version's section at the top of
CHANGELOG.md, and that section is the release notes. The release tag goes on the
merged commit, with no commit after it.
Immediately before creating the release tag, run this command with the selected tag, and stop if it fails:
python3 scripts/check_package.py --release <tag>It checks that the tag is v plus that version, that the checkout is clean, and that HEAD is the
commit of main on origin.
python3 scripts/check_package.py --test
python3 plugins/agt-extra/.codex-plugin/say-hello.py --testThe release tests run real git on temporary repositories with no network. The Codex hook
tests use fake commands and leave live panes alone.