Behaviour report · published
version 0.70.152 | run 2026-12-05aiterm-mcp
Recorded by Toolmark on 2026-12-05. Version 0.70.152. Run 2026-12-05. A behaviour report, not a rating or an endorsement.
- Tools declared
- 27
- Called
- 27
- Not called
- 0
- Checks passed
- 16
- Checks failed
- 0
- To review
- 1
Not a rating; there is no score. Not tested is never counted against a tool.
To review (1)
Things a person should look at. Not failures.
- Tools with no safety hints at all, so an agent cannot tell from the list which tools only read
diagnostics,ensure_forward,release_forward,forward_status,image_put,image_read,pty_open,pty_send,pty_read,pty_key,pty_close,pty_list,pty_observe,agent_approval,claude_turn,claude_approval,stream_read,stream_send,agent_auth,agent_goal,agent_configure,agent_models,agent_launch,claude_agent,codex_agent,grok_agent,agent_stop
Declared and observed
What each tool says about itself, next to what happened when we called it.
監視・自動化向けの read-only 診断。安全な状態語彙だけを機械可読 JSON で返す(PTY 内容・認証情報・path・環境値は返さない)。2つ目のtextは親配送hook(Claude Code・Cursor)の登録状態で、caller_status が setup_required なら呼出元からのagent送信は拒否される。aiterm-setup を実行する。 No hints.
review item
Keep a reverse SSH forward alive for as long as it is needed, and return the port P on that machine that reaches this computer's 127.0.0.1:D. A detached process holds it (it survives this process), re-establishes it when it drops, and keeps the same P while it can. Returns when the forward is ready (30 s, else SEAT_FORWARD_UNAVAILABLE). Call again before the next use: every call keeps it needed for 120 s more, and a session bound to the id keeps it needed. remote.ssh pins the host key file and one identity (paths only; the detached process restarts ssh by itself, so the agent socket must stay stable). No hints.
passed: reports a failure when it cannot reach its service
review item
Say this forward is not needed by you any more. It only drops the 120 s keep-alive; the holder ends itself once no session bound to the id and no keep-alive remain. No hints.
passed: reports a failure when it cannot reach its service
review item
Read-only: the port P of this forward, whether it is ready now, and when it became ready (ready_at changes when the route was rebuilt). No hints.
passed: reports a failure when it cannot reach its service
review item
Aiterm同士の中継用。画像のバイト列(base64、png/jpeg/gif/webp、全体で25 MiBまで)をこの端末の一時フォルダへ保存し、その絶対パスを返す。1通は10 MiB未満に収めるため、5 MiBを超える画像は upload_id(UUID)・offset(受け取り済みのバイト数)・final で順に送る。呼び手は pty_send の image を使い、直接は呼ばない。 No hints.
passed: reports a failure when it cannot reach its service
review item
席の端末にある画像ファイル1枚(絶対path、png/jpeg/gif/webp、25 MiBまで)のバイト列を返す。別端末の席はsession_idだけで現地のファイルを読む(1通の上限を超えないよう、現地とは一片ずつやり取りして1枚にして返す)。読める場所は、席の作業フォルダと一時フォルダの中だけ(symlinkは解いてから見る)。誤りのcode: IMAGE_PATH_INVALID / IMAGE_NOT_FOUND / IMAGE_PATH_NOT_ALLOWED / IMAGE_NOT_AN_IMAGE / IMAGE_TOO_LARGE。length を付けると、offsetから最大 length バイトの一片をchunk_base64で返す(Aiterm同士の中継用)。 No hints.
review item
ローカル永続端末(POSIXはtmux、Windows nativeはpsmux 3.3.8以上)を1個開き、session_id を返す。backend server常駐ゆえ本サーバや クライアントが再起動してもセッションは生存する。リモート操作は専用ツールにせず、開いた端末の中で pty_send(session_id, "ssh host") と打って入る。 No hints.
passed: reports a failure when it cannot reach its service
review item
セッションへテキストを送る。通常PTYへは送信のみ(出力は pty_read で取得)。agent session(launcher起動)への送信はこのtoolだけで行い、子の状態はAitermが送る時点で見て振り分ける。子のturnが実行中なら各harness標準の操作で現在のturnへ差し込み(mode=agent_steer)、完了は差し込み後の作業の終わりに元の依頼への1回だけ届く。新しいevent_cursorと配送は作らない。それ以外は新しいturnとしてdispatchし(mode=agent_dispatch)、TUI の ready gate と submit 分離を通して即返り、receipt の event_cursor を返す。dispatch した子は投げっぱなしでよい=親はここで待たない。Codex親とClaude Code親にはAitermが回答本文を自動配送する。parent_deliveryがある場合はwait起動も通常の回答回収も不要。親は作業を続けるかターンを終える。Cursor親にはparent_deliveryとwait_processが付く。作業を続ければ次のツール返りに回答が差し込まれ、ターンを終える前にwait_processを背景で起動するとidle中の完了でも起きられる。ポーリングとpty_read(agent_transcript:true)は不要。その他の親では、完了通知をreceiptの `wait_process.executable` と `wait_process.args` をそのまま親のターンを塞がない別プロセスAPIへ渡して受け、PowerShell 7のStart-Processだけは `windows_start_process_argument_list` を単一文字列として渡す。exit を完了通知として扱う(exit 0=done / 3=timeout(既定600秒・未完了) / 4=closed / 7=error(harnessの記録でturnがAPIエラー等で打ち切られた。結果は無い)。receiptのoutcomeが正で、done以外は未完了。ポーリング不要)。`wait_command` は人間向け互換表示でありprocess境界へ使わない。foreground実行で親のター No hints.
passed: reports a failure when it cannot reach its service
review item
セッションの出力をトークン削減して読む(既定は前回読取位置からの増分)。削減: 制御文字除去 / 反復圧縮 / head+tail 折りたたみ+復元ヒント+メタ併記。agent_transcript:true は agent session の直近完了ターンの最終 assistant メッセージを公開されたharness記録から平文で返す。回答が空で終わったターンは誤りにせず、空のtextとanswer_empty:trueを返す。長い回答が screen tail で切れた時の回収用。 No hints.
review item
制御キーを送る(C-c, C-d, Enter, Tab, Up, Down... の別名に対応)。acceptedは入力受付であり処理中断/会話維持の確認ではない。aiterm相関付きClaudeではC-cだけを許可し、承認UIはclaude_approvalで操作する。 No hints.
review item
セッションを閉じ、ログ/読取位置を破棄する。同じsession_idへの再試行は安全で、closed/already_closedのstructured receiptを返す。hibernate:trueはClaude・Codexのagent席を今すぐ休止し(idle時計と同じ手順)、会話と再開情報を残してhibernatedを返す。次のagent_launch(session_name)が同じ会話へ、保存した設定(起動時のmodel等。席の中で替えた物は持ち越さない)で再開する。turn・子process・子への配送が動いている間はAGENT_BUSYで断る(終わってから呼び直す)。Claudeの席が利用上限でturnを終えている時(最後の入力の後の会話記録がrate_limited)は、上限の待ち画面のままでも休止できる。他の理由で休止できない時はAGENT_HIBERNATE_UNAVAILABLE、席は触らない。 No hints.
passed: reports a failure when it cannot reach its service
review item
握っているセッション一覧(名前 / 現在の前面コマンド / attach 状態 / サイズ / agent 情報)。 No hints.
review item
指定sessionの存在、paneとharnessの生存、状態と理由、native process identity、画面変化とCPU活動を構造化して観測する。画面本文と生argvは返さない。 No hints.
review item
Codexの現在の承認をinspectし、digestへ束縛した単発許可または拒否をrespondする。恒久許可は選ばない。Claudeは既存claude_approvalを使う。未知dialogはblockedのtyped errorで返す。 No hints.
review item
aiterm相関付きClaude sessionのdurable operationを構造化issue/recoverするmachine-caller専用面。pending/unknown/completedを人間向けerror文字列の解析なしで返し、Observer固有ロジックは持たない。 No hints.
review item
aiterm相関付きClaudeのactive turn中に表示された権限確認UIを、turn相関を保ったまま検査・応答する専用面。inspectで画面digestと安全な単発Yes/Noだけを取得し、respondは同じoperation・同じdigestが現在も表示中の場合だけ送信する。 No hints.
review item
machine席(agent_launch harness:claude-machine のClaude席、またはcodex-machineのCodex席)の出力をデータで読む。claude -p stream-json(Codexは codex app-server のJSON-RPC)のstdoutの行を、解釈も整形もせず、そのまま返す(assistant・user・system・result・rate_limit_event・control_request(can_use_tool、AskUserQuestionを含む)など)。cursorは前回の返りのcursor(省略はこの起動のstreamの先頭)。wait_msを付けると、新しい行か状態の変化まで待つ。state.pendingは答えを待つ要求で、stream_offset/stream_endはその行のstream内の位置(cursorは`<launch_id>:<stream_end>`)。resume・wakeは新しい起動(launch_id)で、前の起動のcursorも、その起動のfileが残る間(席をcloseするまで)は読める。無ければSTREAM_CURSOR_STALE。vendorとharnessは返した起動の値。 No hints.
review item
machine席のclaudeへデータを送る(codex-machine席は user・control{request.subtype: interrupt・set_overrides・goal}・response{request_id, result|error} の3つ。docs/architecture/codex-machine-stream.md)。Claudeの許す形は3つだけで、中身は書き換えない(無いuuid/request_idだけ補う): user(message {role:user, content}。実行中なら同じturnへ入る。/goal もここ)、control_request(request.subtype は interrupt・set_model・apply_flag_settings・set_permission_mode・set_max_thinking_tokens)、control_response(response {subtype:success|error, request_id, response}。state.pendingにあるrequest_idの時だけ。expected_launch_idを指定すれば、その起動以外には書き込まない。can_use_toolへの答え: AskUserQuestionの選択は response.response.updatedInput.answers)。1回に1〜20行。 No hints.
passed: reports a failure when it cannot reach its service
review item
各harnessの公式CLI認証を開始・確認・取消する。CLIごとのコマンドと認証URL/codeの抽出はAitermが所有し、資格情報は各CLIだけが保存する。auth_uiの段階と公式URL・選択肢を表示する。入力はrespondで同じbindingへ送り、pty_send/pty_keyへ認証コードを渡さない。authenticatedは認証の結果であり、agent_launchの起動準備完了とは別。remoteは他toolと同じ標準対応。startは公式の状態が認証済みなら何も起こさずauthenticatedを返す。relogin:trueを付けると、認証済みに見えても公式ログインを開始する(別のアカウントへ入り直す時、ログインの期限切れを状態から見抜けない時)。Aitermは資格情報を消さず、置き換えは公式CLIが行う。Codexの公式ログインは、始めた時点で元のログインを消す(途中でcancelしても戻らない)。Antigravityは認証画面での確認後に公式CLIが共有認証とcacheを消去する。 No hints.
passed: rejects input outside its schema
review item
Read or manage the CLI's real goal for an exact session/launch. clear removes the goal without stopping its turn; resume requires a paused goal. Editing objective resets native usage accounting. User mutations require trusted host provenance. No goal store or worker is created. No hints.
review item
起動済みのClaude/Codex/Grok/Cursor/Antigravity agent sessionを再起動せず、会話contextを保ったままmodel/reasoning effort/fastを変更する。各harnessのCLI標準model操作を使う。Cursorのreasoning_effort変更はmodelと同時指定する。Claude Codeの席では /model の選ぶ画面の「この会話だけ」(s)で替え、端末の ~/.claude/settings.json の既定は書き換えない。その選び方が無い版、選ぶ画面に無いmodel、そのmodelで選べないeffortは、何も変えずに断る。fastだけの指定も受ける。ファスト(harnessの高速の応答。費用や利用量が増える)。席は必ず通常の速度で起きる。trueはその席をfastへ切り替え、falseは通常の速度にする(fastに対応していないmodelでもfalseは受ける)。切り替えは席だけに留め、harnessが利用者の既定へ書いた分は切り替えの直前の値へ戻す。断りは文の先頭の符号で分かる: FAST_MODE_NOT_SUPPORTED(そのmodelは対応していない)、FAST_MODE_UNAVAILABLE(アカウントや契約で使えない)、FAST_MODE_MODEL_CONFLICT(modelへfast版のIDを書いてfalseを渡した)、FAST_MODE_UNCONFIRMED(切り替えた後の状態を確かめられない)。 No hints.
passed: reports a failure when it cannot reach its service
review item
harnessが今返すmodelとreasoning effortの候補を、そのharnessの公式の一覧から取得する。promptもturnも送らず推論を消費しない。Codexはapp-server model/list、Claude Codeはstream-json initializeのmodels、Grokはagent stdio initializeのmodelState、Cursorはcursor-agent modelsを素のmodel IDとeffortへ分けたもの。Antigravityはagy modelsのeffortを含むIDをそのまま返す。返るidとeffortsはagent_launch/agent_configureへそのまま渡せる。modelごとのfastは、そのmodelでfastへ切り替えられるか(harnessが返す値)。fast_unavailableは、アカウントの都合でどのmodelでも使えない時の訳。取得不能はMODEL_CATALOG_UNAVAILABLE、形式異常はMODEL_CATALOG_INVALIDのエラーで返し、別の一覧へfallbackしない。remoteを付けると別端末のharnessの候補を返す。 No hints.
review item
エージェントを単一の標準入口から永続sessionへ起動する。harnessはagent loop・認証・hook・transcriptを所有する実行基盤、modelはそのharnessが選ぶ推論モデルであり別軸。Cursor harnessからGPT/Claude/Grok等を選んでも完了相関はCursor方式のまま。ComposerはCursorのmodelの一つで、harnessでもGrokのmodelでもない。harness=cursor-cli と model=composer-2.5-fast(またはcomposer-2.5)で指定する。remoteを付けると、SSHで入った別端末のAitermで同じ起動を行い、完了は同じ形で親へ届く。通常CLIと同じHOME・cwd・project/user/local設定・MCP・plugin・skill・permission/trustを共有する。aitermは完了相関stateだけをlaunch単位で所有する。起動されたagentにはsub-agent自己認識、親session、delegation depth/lineage、delegation_allowed=trueを注入し、必要な追加委譲は許可する。別のcomputer(登録済みの端末)で起こす時は、この起動にterminal(端末の登録元が渡す値をそのまま)とcwd(その端末のproject folder)を付ける。ここで起こしてからcd・sshしない。秘密の値はどの引数・prompt・送信文にも書かず、env_varsに名前だけを書く。dispatch した子は投げっぱなしでよい=親はここで待たない。Codex親とClaude Code親にはAitermが回答本文を自動配送する。parent_deliveryがある場合はwait起動も通常の回答回収も不要。親は作業を続けるかターンを終える。Cursor親にはparent_deliveryとwait_processが付く。作業を続ければ次のツール返りに回答が差し込まれ、ターンを終える前にwait_processを背景で起動するとidle中の完了でも起きられる。ポーリングとpty_read(agent_transcript:true)は不要。その他の親では、完了通知をreceiptの `wait_proc No hints.
passed: reports a failure when it cannot reach its service
review item
【旧互換alias。新規連携は agent_launch(harness=claude-code)】Claude Codeの対話エージェントTUIを永続端末に起動する。`claude -p`ではなく、同じ利用者可視sessionへpty_sendで継続入力する。通常CLIと同じHOME・cwd・project/user/local設定・MCP・plugin・skill・permission/trustを共有する。aitermは完了相関stateだけをlaunch単位で所有する。起動されたagentにはsub-agent自己認識、親session、delegation depth/lineage、delegation_allowed=trueを注入し、必要な追加委譲は許可する。別のcomputer(登録済みの端末)で起こす時は、この起動にterminal(端末の登録元が渡す値をそのまま)とcwd(その端末のproject folder)を付ける。ここで起こしてからcd・sshしない。秘密の値はどの引数・prompt・送信文にも書かず、env_varsに名前だけを書く。通常settingsへlaunch固有Stop hook settingsを加算する。起動前に共有認証を構造化確認し、未認証ならsessionを作らない。dispatch した子は投げっぱなしでよい=親はここで待たない。Codex親とClaude Code親にはAitermが回答本文を自動配送する。parent_deliveryがある場合はwait起動も通常の回答回収も不要。親は作業を続けるかターンを終える。Cursor親にはparent_deliveryとwait_processが付く。作業を続ければ次のツール返りに回答が差し込まれ、ターンを終える前にwait_processを背景で起動するとidle中の完了でも起きられる。ポーリングとpty_read(agent_transcript:true)は不要。その他の親では、完了通知をreceiptの `wait_process.executable` と `wait_process.args` をそのまま親のターンを塞がない別プロセスAPIへ渡して受け、PowerShell 7のStart-Processだけは `windows_start_process No hints.
passed: reports a failure when it cannot reach its service
review item
【旧互換alias。新規連携は agent_launch(harness=codex-cli)】Codexの対話エージェント TUI を永続端末に起動する。実装・レビュー・調査を対話で回す。通常CLIと同じHOME・cwd・project/user/local設定・MCP・plugin・skill・permission/trustを共有する。aitermは完了相関stateだけをlaunch単位で所有する。起動されたagentにはsub-agent自己認識、親session、delegation depth/lineage、delegation_allowed=trueを注入し、必要な追加委譲は許可する。別のcomputer(登録済みの端末)で起こす時は、この起動にterminal(端末の登録元が渡す値をそのまま)とcwd(その端末のproject folder)を付ける。ここで起こしてからcd・sshしない。秘密の値はどの引数・prompt・送信文にも書かず、env_varsに名前だけを書く。委譲契約を使う完全な呼び出し例: `codex_agent({"prompt":"<依頼>","model":"gpt-5.6-sol","reasoning_effort":"high","cwd":"/absolute/path/to/repo","write_scope":"read-only"})`。turn は pty_send で送る(自動で非ブロック dispatch になる)。dispatch した子は投げっぱなしでよい=親はここで待たない。Codex親とClaude Code親にはAitermが回答本文を自動配送する。parent_deliveryがある場合はwait起動も通常の回答回収も不要。親は作業を続けるかターンを終える。Cursor親にはparent_deliveryとwait_processが付く。作業を続ければ次のツール返りに回答が差し込まれ、ターンを終える前にwait_processを背景で起動するとidle中の完了でも起きられる。ポーリングとpty_read(agent_transcript:true)は不要。その他の親では、完了通知をreceiptの `wait_process.executable` と `wait_process.arg No hints.
passed: reports a failure when it cannot reach its service
review item
【旧互換alias。新規連携は agent_launch(harness=grok-cli)】Grok BuildのGrokモデル(既定 grok-4.6)の対話エージェント TUIを永続端末に起動する。通常CLIと同じHOME・cwd・project/user/local設定・MCP・plugin・skill・permission/trustを共有する。aitermは完了相関stateだけをlaunch単位で所有する。起動されたagentにはsub-agent自己認識、親session、delegation depth/lineage、delegation_allowed=trueを注入し、必要な追加委譲は許可する。別のcomputer(登録済みの端末)で起こす時は、この起動にterminal(端末の登録元が渡す値をそのまま)とcwd(その端末のproject folder)を付ける。ここで起こしてからcd・sshしない。秘密の値はどの引数・prompt・送信文にも書かず、env_varsに名前だけを書く。turn は pty_send で送る(自動で非ブロック dispatch になる)。dispatch した子は投げっぱなしでよい=親はここで待たない。Codex親とClaude Code親にはAitermが回答本文を自動配送する。parent_deliveryがある場合はwait起動も通常の回答回収も不要。親は作業を続けるかターンを終える。Cursor親にはparent_deliveryとwait_processが付く。作業を続ければ次のツール返りに回答が差し込まれ、ターンを終える前にwait_processを背景で起動するとidle中の完了でも起きられる。ポーリングとpty_read(agent_transcript:true)は不要。その他の親では、完了通知をreceiptの `wait_process.executable` と `wait_process.args` をそのまま親のターンを塞がない別プロセスAPIへ渡して受け、PowerShell 7のStart-Processだけは `windows_start_process_argument_list` を単一文字列として渡す。exit を完了通知として扱う(exit 0=done / 3=tim No hints.
passed: reports a failure when it cannot reach its service
review item
指定sessionとその呼出先へ末端から通常の停止キーを送る。sentはキー送信結果であり終了の証明ではない。 No hints.
passed: reports a failure when it cannot reach its service
review item
What the server did in the sandbox
tmux (not found in 6 places), /usr/bin/which, /usr/local/bin/nodeRecorded with strace during this run, for the server and every process it started. The recorder runs inside the same sandbox as the tool, so a tool that targets it could hide from it; it covers the whole run, not each tool call.
Package facts
- tool list size: 142171 bytes as JSON (names, descriptions and input schemas of 27 tools)
How this was tested
- network check: DNS and TCP (IPv4 and IPv6) to the outside all failed before any call
- Toolmark's synthetic fixture (files) was created in the data folder /fixture
- as claimed by the package metadata
Dependencies (103)
@hono/node-server@2.1.11, @modelcontextprotocol/sdk@1.32.2, accepts@2.0.0, aiterm-mcp@0.70.152, aiterm-steer-delivery@0.5.5, ajv-formats@3.0.1, ajv@8.20.0, ansi-regex@6.6.0, body-parser@2.4.0, bytes@3.1.2, call-bind-apply-helpers@1.0.2, call-bound@1.0.4, content-disposition@2.0.1, content-type@1.0.5, content-type@2.1.0, content-type@2.1.0, content-type@2.1.0, content-type@2.1.0, cookie-signature@1.2.2, cookie@0.7.2, cors@2.8.6, cross-spawn@7.1.2, debug@4.4.3, depd@2.0.0, dunder-proto@1.0.1, ee-first@1.1.1, emoji-regex@10.6.0, encodeurl@2.0.3, es-define-property@1.0.1, es-errors@1.3.0, es-object-atoms@1.1.2, escape-html@1.0.3, etag@1.8.1, eventsource-parser@3.1.1, eventsource@3.0.7, express-rate-limit@8.7.5, express@5.3.0, fast-deep-equal@3.1.3, fast-uri@3.1.9, finalhandler@2.1.1, forwarded@0.2.0, fresh@2.0.0, function-bind@1.1.2, get-east-asian-width@1.7.0, get-intrinsic@1.3.0, get-proto@1.0.1, gopd@1.2.0, has-symbols@1.1.0, hasown@2.0.4, hono@4.13.23, http-errors@2.0.1, iconv-lite@0.7
Only the published package was run, at this exact version, in Toolmark's sandbox with no network and no secrets, with synthetic input; the provider's hosted service, if any, was not tested. base_image node:22-bookworm-slim@sha256:e9f565d32859f0cbfb52125eafe8be39390f24dac302dc3cdf566e8ba3ab21ee, commit 82790fa70c0a875a4937bd3f9405c1243455c675, modal_sdk 1.6.4, python 3.12.16, rules 1e5a2990d01b99a3, toolmark not installed