Skip to main content
Glama
kitepon
by kitepon

agent_launch

Launch coding agents into persistent background sessions from one standard entry point, then retrieve completion status without blocking the parent process.

Instructions

エージェントを単一の標準入口から永続sessionへ起動する。harnessはagent loop・認証・hook・transcriptを所有する実行基盤、modelはそのharnessが選ぶ推論モデルであり別軸。Cursor harnessからGPT/Claude/Grok等を選んでも完了相関はCursor方式のまま。Grok Composerは別harnessではなく harness=grok-cli と model=grok-composer-2.5-fast で指定する。通常CLIと同じHOME・cwd・project/user/local設定・MCP・plugin・skill・permission/trustを共有する。aitermは完了相関stateだけをlaunch単位で所有する。起動されたagentにはsub-agent自己認識、親session、delegation depth/lineage、delegation_allowed=trueを注入し、必要な追加委譲は許可する。起動して投げたら投げっぱなしでよい=親はここで待たない。完了通知は起動応答またはpty_send dispatch receiptの wait_processを、親のターンを塞がない別プロセスAPIへexecutable/argsの境界を保ったまま渡して受ける(PowerShell 7のStart-Processはwindows_start_process_argument_listを使う)(exit 0=done / 3=timeout(既定600秒・未完了) / 4=closed。receiptのoutcomeが正で、done以外は未完了。ポーリング不要・foreground実行はしない)。wait_commandは人間向け互換表示。結果回収は pty_read(agent_transcript:true)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo作業ディレクトリ(絶対パス・任意)
modelNoharnessが選ぶモデル。provider名ではなくlive catalog上のmodel ID
promptNo起動時に渡す初手プロンプト(任意)。送信後は待たずに即返る
harnessYesagent loop・session・hook・transcript・認証を所有する実行基盤
env_varsNo現在のMCP processから継承する環境変数名
write_scopeNo能力宣言。read-onlyは対応harnessの標準read-only面で実効禁止する
session_nameNoAiterm session名(省略で自動採番)
reasoning_effortNoharness adapterが標準CLI表現へ変換する思考レベル。Cursorではmodel同時指定が必要
launch_operation_idNoClaude Codeのpromptなしexact replay相関だけで使用
throughline_source_sessionNo同一端末のThroughline sessionから読み取り専用contextを初手へ注入する
throughline_supplement_fileNoThroughline 0.10.8以降へそのまま渡すproject束縛済み長期記憶・知識の補足JSON path

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaYes
harnessYes
providerYes旧互換field。新規連携はharnessを使う
session_idYes
write_scopeNo
event_cursorYes
wait_commandYes
wait_processYes
submit_residueYes
managed_completionYes
write_scope_enforcementNo
Install Server

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations present, the description carries full behavioral disclosure burden. It comprehensively details the asynchronous fire-and-forget behavior, the shared environment (HOME, cwd, MCP, plugins), the injection of sub-agent self-awareness and delegation_allowed=true, the exact meaning of exit codes (0, 3, 4), the default timeout of 600 seconds, no polling/no foreground execution, and the return value collection via pty_read(agent_transcript:true). No contradictions exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is lengthy but information-dense; every sentence contributes to understanding the tool's behavior and architecture. The core purpose is front-loaded, followed by clarifying details. Some minor over-specification occurs (e.g., the PowerShell 7 Start-Process note) but it serves to clarify platform-specific behavior. Overall, it earns its length, though slightly more focus would improve conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, the description is remarkably complete. It covers the launch flow, async behavior, completion mechanisms, exit codes, environment sharing, permission injection, and result retrieval. Although there is a declared output schema (not shown), the description also explains the receipt outcome semantics, making the agent fully equipped to invoke and interpret results without gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 11 parameters are documented in the input schema itself. The description adds conceptual context (e.g., model is a separate axis from harness), but does not provide per-parameter elaboration beyond what the schema already offers. The baseline of 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool's action: 'エージェントを単一の標準入口から永続sessionへ起動する' (launch agents to persistent sessions from a single standard entry point). It clearly distinguishes the conceptual axes of harness vs model, and explains how Grok Composer is specified via harness=grok-cli, which differentiates it from potential sibling-specific launch tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context: this is the single standard entry point for launching any agent, including via specific harnesses like Cursor or Grok Composer. It details the fire-and-forget pattern (parent does not wait), how completion notifications are received via wait_process or dispatch receipt, and explains exit codes and result retrieval via pty_read. It does not explicitly name alternative tools, but the '単一の標準入口' phrasing strongly implies it is the primary launch tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kitepon/aiterm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server