ntm
GitHubNTM 作为可选的面板适配器,用于承载显式 Agent 角色并执行一次性命令分发。它不控制生命周期,仅负责将调用方提供的指令发送至指定面板,并基于事实堆栈监控面板活跃状态与结果返回。
Trigger Scenarios
Install
npx skills add boshu2/agentops --skill ntm -g -y
SKILL.md
Frontmatter
{
"name": "ntm",
"consumes": [
"pane-command-request"
],
"metadata": {
"tier": "execution",
"effects": [
"manage_ntm_panes",
"dispatch_pane_commands"
],
"disposition": "keep_optional_adapter",
"capabilities": [
"ntm"
],
"dependencies": [],
"canonical_status": "canonical"
},
"produces": [
"ntm-robot-state",
"agent-worker-transcript"
],
"practices": [
"pragmatic-programmer"
],
"context_rel": [
{
"kind": "supplier-to",
"with": "agent-native"
}
],
"description": "Use NTM as an optional pane adapter for caller-supplied roles and commands. Triggers: \"ntm\", \"tmux panes\", \"ntm robot state\".",
"hexagonal_role": "supporting",
"user-invocable": false,
"output_contract": "factual session, pane, command, and observation results",
"skill_api_version": 1
}
NTM — optional pane adapter
NTM hosts explicit agent roles in persistent panes. It is transport, not an AgentOps lifecycle controller. The caller chooses the panes, roles, commands, write scopes, and stopping point.
Robot surfaces work because they report what the pane is doing, not what was sent to it; a dispatch layer that only proved delivery would let every dead worker look busy.
Judge pane liveness by the truth-stack, strongest first: new artifacts on disk, then transcript growth, then robot state and attention flags, then bare process existence. A successful prompt send sits below all of these and proves nothing about work.
Named failure mode — kill-the-witness: restarting a stuck pane before capturing its state, destroying the only evidence of why it stalled.
Anti-pattern: restarting an unresponsive pane as the default remedy. Corrective: rescue before restart — snapshot robot state and transcript, attempt a nudge, and restart only when the truth-stack shows no liveness at any level.
Boundary
- Never start or probe NTM merely because it is installed.
- Discover the live command contract with
ntm --help,ntm --robot-capabilities, andntm --robot-snapshotbefore unfamiliar actions. - Dispatch each caller-supplied command once. NTM does not select work, retry a failed command, validate a candidate, integrate changes, or decide what runs next.
- Pane roles are descriptive. They grant no ownership, admission, Git, release, or delivery authority.
- Concurrent writers require caller-supplied disjoint scopes and whatever isolation the repository requires. NTM does not infer safe concurrency.
- Safety, lock, mail, and pipeline features remain substrate facts. Their state cannot change an RPI phase result or semantic verdict. The adapter cannot select AgentOps semantics, issue a binding verdict, or turn factory completion into delivery or validation proof.
One-shot dispatch
- Record the explicit session, pane, role, working directory, and command.
- Inspect robot capabilities and current snapshot.
- Create or select only the named pane.
- Send the command once.
- Observe robot state, attention, and transcript until the command exits or the caller's observation window ends.
- Return the factual result and stop.
For a software-factory layout, the caller may name producer, tester, validator,
or integrator panes. The same identity rule still applies: a validator for a
candidate must have a distinct context identity from its author. Merely placing
two roles in different panes is a declared runtime fact, not proof of semantic
independence. Mixed-model judgment panes follow
the agent-native model-dispatch recipe (probe, disclose, never
claude -p).
Output
Return:
- session and pane identifiers;
- role and exact command;
- start and observation timestamps;
- exit status when known;
- robot state and relevant transcript references;
- degraded or unavailable substrate surfaces;
- effects that were and were not observed.
Terminal outcomes are explicit, never a silent hang:
- NTM unavailable —
ntmabsent or the robot surface unreachable: report it and stop; do not fall back to blind key injection or assume the pane is idle. - Observation-window deadline reached — report the last observed robot state and transcript reference; the window ending is a stop, not a failure verdict.
- Timeout / nonzero exit / degraded source — reported as evidence with what was and was not observed.
- Cancellation and cleanup — the caller decides whether to invoke another experiment; report which panes were created or left running so nothing is orphaned silently. NTM never retries or reaps on its own.
Useful live surfaces
Prefer machine-readable robot surfaces for capability, snapshot, attention, tail, and pipeline observations. Use interactive key injection only when the caller explicitly requests an interactive action and no robot command provides the needed behavior.
External NTM documentation and examples remain the authority for command syntax;
this skill owns only the AgentOps boundary above. NTM's CLI drifts across
versions, so confirm the surface at runtime (ntm --version,
ntm --robot-capabilities) rather than trusting a remembered command.
Version History
-
7b07a7d
Current 2026-08-19 21:59
对齐 AgentOps 操作层身份,调整技能以适配新的语义工作协议和 RPI 遍历标准。
- 3f402e5 2026-07-24 22:07


