@scotthuang/agent-knock-knock 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/README.md +45 -17
- package/dist/src/agent-session-provider.d.ts +13 -0
- package/dist/src/claude-local-transcript-provider.d.ts +29 -1
- package/dist/src/claude-local-transcript-provider.js +313 -0
- package/dist/src/claude-local-transcript-provider.js.map +1 -1
- package/dist/src/claude-terminal-agent-adapter.d.ts +6 -1
- package/dist/src/claude-terminal-agent-adapter.js +178 -0
- package/dist/src/claude-terminal-agent-adapter.js.map +1 -1
- package/dist/src/cli.js +5671 -317
- package/dist/src/cli.js.map +1 -1
- package/dist/src/codex-local-session-provider.d.ts +3 -1
- package/dist/src/codex-local-session-provider.js +17 -0
- package/dist/src/codex-local-session-provider.js.map +1 -1
- package/dist/src/codex-store-adapter.d.ts +26 -1
- package/dist/src/codex-store-adapter.js +575 -2
- package/dist/src/codex-store-adapter.js.map +1 -1
- package/dist/src/codex-terminal-agent-adapter.d.ts +6 -1
- package/dist/src/codex-terminal-agent-adapter.js +192 -0
- package/dist/src/codex-terminal-agent-adapter.js.map +1 -1
- package/dist/src/managed-session.d.ts +163 -0
- package/dist/src/managed-session.js +873 -0
- package/dist/src/managed-session.js.map +1 -0
- package/dist/src/native-thread-lifecycle-policy.d.ts +57 -0
- package/dist/src/native-thread-lifecycle-policy.js +116 -0
- package/dist/src/native-thread-lifecycle-policy.js.map +1 -0
- package/dist/src/openclaw-plugin-helpers.d.ts +45 -12
- package/dist/src/openclaw-plugin-helpers.js +386 -47
- package/dist/src/openclaw-plugin-helpers.js.map +1 -1
- package/dist/src/openclaw-plugin.js +814 -144
- package/dist/src/openclaw-plugin.js.map +1 -1
- package/dist/src/protocol.d.ts +28 -1
- package/dist/src/protocol.js +93 -4
- package/dist/src/protocol.js.map +1 -1
- package/dist/src/session-store.d.ts +57 -0
- package/dist/src/session-store.js +529 -0
- package/dist/src/session-store.js.map +1 -0
- package/dist/src/store.d.ts +5 -3
- package/dist/src/store.js +422 -17
- package/dist/src/store.js.map +1 -1
- package/dist/src/terminal-agent-adapter.d.ts +175 -0
- package/dist/src/terminal-agent-adapter.js +12 -0
- package/dist/src/terminal-agent-adapter.js.map +1 -1
- package/dist/src/terminal-agent-bridge.d.ts +9 -0
- package/dist/src/terminal-agent-bridge.js +17 -1
- package/dist/src/terminal-agent-bridge.js.map +1 -1
- package/dist/src/terminal-control-provider.d.ts +2 -0
- package/dist/src/terminal-control-provider.js +1 -0
- package/dist/src/terminal-control-provider.js.map +1 -1
- package/docs/quickstart-tmux.md +23 -2
- package/openclaw.plugin.json +19 -3
- package/package.json +1 -1
- package/templates/openclaw-skills/agent-knock-knock/SKILL.md +42 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-control-provider.js","sourceRoot":"","sources":["../../src/terminal-control-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAmD7B,MAAM,OAAO,2BAA2B;IACrB,UAAU,CAAqD;IAC/D,WAAW,CAAW;IACtB,QAAQ,CAAW;IAEpC,YAAY,OAAO,GAIf,EAAE;QACJ,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,UAAU,CAAC;QACnD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,sBAAsB,EAAE,CAAC;QACnE,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAC,QAAQ,IAAI,mBAAmB,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,SAAS;QACb,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC;IACvC,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AS,CAAC;IACnB,CAAC;IACD,OAAO,GAAG,IAAI,SAAS,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC;AACpD,CAAC"}
|
package/docs/quickstart-tmux.md
CHANGED
|
@@ -66,7 +66,28 @@ The bare task works when exactly one eligible idle coding-agent pane exists acro
|
|
|
66
66
|
|
|
67
67
|
Success returns a managed turn and, when the work finishes, its result. The same tmux pane remains available for direct human control; reattach with `tmux attach -t akk-work`.
|
|
68
68
|
|
|
69
|
-
`/akk list` keeps that physical pane as the primary resource: it appears once in `terminals[]` with live `process_state` and `activity_state`. AKK places the active
|
|
69
|
+
`/akk list` keeps that physical pane as the primary resource: it appears once in `terminals[]` with live `process_state` and `activity_state`. Its managed context follows terminal → native coding-agent session → AKK `session_id` → Turns. AKK places the active Turn under `managed.current_turn`, or the newest retained Turn under `managed.recent_turn`; retained Turns do not occupy or hide the pane.
|
|
70
|
+
|
|
71
|
+
For another request in the same coding-agent context, use the listed `send` action with its prefilled authoritative `session_id`. Every accepted ordinary send creates a new `turn_id`; a completed Turn is history, not the destination of the next send. Human-friendly selectors such as `codex`, `only`, or `@a1b2c3d4` only help `/akk list` resolve that authoritative session.
|
|
72
|
+
|
|
73
|
+
If the coding agent asks a question and the active Turn becomes `waiting_for_openclaw`, use the listed `respond` action with its prefilled `turn_id`, or the equivalent form:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
/akk respond <turn-selector>: <answer>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
This answer stays in the same Turn. Managed status, approval, cancellation, renewal, callback retry, and close also use the exact `turn_id`. Only an unmanaged raw-terminal row's own returned status or recovery action may use its prefilled compatibility selector; never construct one.
|
|
80
|
+
|
|
81
|
+
Starting a new native context, clearing it, or resuming an older native thread is an explicit lifecycle operation, not an ordinary send. Copy the full `terminal_id` from `/akk list`, then use:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
/akk threads <exact-terminal-id>
|
|
85
|
+
/akk new-thread <exact-terminal-id>
|
|
86
|
+
/akk clear-thread <exact-terminal-id>
|
|
87
|
+
/akk resume-thread <exact-terminal-id> [native-thread-uuid]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Omitting the resume UUID lists exact verified candidates; select only a complete returned UUID. The human-facing slash handler obtains a fresh binding token internally. A successful switch creates or activates an AKK Session but creates no Turn, so send the next request separately. There is no background binding poll: after an old coding-agent process exits, the next lifecycle listing can expose its sole historical Session as resumable, and resume safely detaches that stale binding before terminal input. Unsupported, busy, ambiguous, stale-token, active-elsewhere, or unverifiable transitions stop without falling back to raw `/clear`, `/new`, `/resume`, `/status`, Codex `/fork`, `/side`, or `/btw`, or Claude `/branch` text.
|
|
70
91
|
|
|
71
92
|
## Optional: Enable natural-language routing
|
|
72
93
|
|
|
@@ -100,4 +121,4 @@ Do not run `install-openclaw` after a ClawHub install. The two commands are alte
|
|
|
100
121
|
|
|
101
122
|
## Permissions and monitoring
|
|
102
123
|
|
|
103
|
-
AKK keeps the coding agent's own permission settings. Trusted, exact `autoApprove` rules may approve a supported prompt; each rule can authorize multiple canonical roots through `autoApprove.rules[].workspaces`. Those entries are the only workspace boundary for automatic approval and do not limit pane discovery or manual control. Everything else remains manual. If monitoring stalls while the same
|
|
124
|
+
AKK keeps the coding agent's own permission settings. Trusted, exact `autoApprove` rules may approve a supported prompt; each rule can authorize multiple canonical roots through `autoApprove.rules[].workspaces`. Those entries are the only workspace boundary for automatic approval and do not limit pane discovery or manual control. Everything else remains manual. If monitoring stalls while the same Turn is still live, inspect `/akk status only` and use `/akk renew only <minutes>` to resume monitoring without sending terminal input.
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "agent-knock-knock",
|
|
3
3
|
"name": "Agent Knock Knock",
|
|
4
|
-
"description": "Control local Codex and Claude Code through shared tmux terminals, with live monitoring, approvals, and human takeover.",
|
|
4
|
+
"description": "Control local Codex and Claude Code through shared tmux terminals, with native-thread lifecycle controls, live monitoring, approvals, and human takeover.",
|
|
5
5
|
"icon": "https://raw.githubusercontent.com/scotthuang/agent-knock-knock/main/docs/assets/agent-knock-knock-icon.png",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onStartup": true,
|
|
@@ -16,8 +16,12 @@
|
|
|
16
16
|
"contracts": {
|
|
17
17
|
"tools": [
|
|
18
18
|
"agent_knock_knock_list",
|
|
19
|
+
"agent_knock_knock_list_resumable_threads",
|
|
20
|
+
"agent_knock_knock_new_thread",
|
|
21
|
+
"agent_knock_knock_resume_thread",
|
|
19
22
|
"agent_knock_knock_status",
|
|
20
23
|
"agent_knock_knock_send",
|
|
24
|
+
"agent_knock_knock_respond",
|
|
21
25
|
"agent_knock_knock_renew",
|
|
22
26
|
"agent_knock_knock_retry_callback",
|
|
23
27
|
"agent_knock_knock_cancel",
|
|
@@ -29,12 +33,24 @@
|
|
|
29
33
|
"agent_knock_knock_list": {
|
|
30
34
|
"optional": true
|
|
31
35
|
},
|
|
36
|
+
"agent_knock_knock_list_resumable_threads": {
|
|
37
|
+
"optional": true
|
|
38
|
+
},
|
|
39
|
+
"agent_knock_knock_new_thread": {
|
|
40
|
+
"optional": true
|
|
41
|
+
},
|
|
42
|
+
"agent_knock_knock_resume_thread": {
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
32
45
|
"agent_knock_knock_status": {
|
|
33
46
|
"optional": true
|
|
34
47
|
},
|
|
35
48
|
"agent_knock_knock_send": {
|
|
36
49
|
"optional": true
|
|
37
50
|
},
|
|
51
|
+
"agent_knock_knock_respond": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
38
54
|
"agent_knock_knock_renew": {
|
|
39
55
|
"optional": true
|
|
40
56
|
},
|
|
@@ -60,7 +76,7 @@
|
|
|
60
76
|
"properties": {
|
|
61
77
|
"storeDir": {
|
|
62
78
|
"type": "string",
|
|
63
|
-
"description": "Stable AKK Store root. Defaults to ~/.agent-knock-knock/store and contains the compatibility manifest
|
|
79
|
+
"description": "Stable AKK Store root. Defaults to ~/.agent-knock-knock/store and contains the compatibility manifest, authoritative managed Sessions, and Turn records."
|
|
64
80
|
},
|
|
65
81
|
"openclawBin": {
|
|
66
82
|
"type": "string",
|
|
@@ -72,7 +88,7 @@
|
|
|
72
88
|
},
|
|
73
89
|
"idleTimeoutMinutes": {
|
|
74
90
|
"type": "number",
|
|
75
|
-
"description": "Minutes
|
|
91
|
+
"description": "Minutes a completed or idle AKK turn record remains retained before controlled reconciliation closes that turn. The continuing AKK session identity is preserved. Defaults to 10080."
|
|
76
92
|
},
|
|
77
93
|
"agentTimeoutMinutes": {
|
|
78
94
|
"type": "number",
|
package/package.json
CHANGED
|
@@ -24,12 +24,16 @@ Use the `/akk` command for slash-command syntax. Use the Agent Knock Knock plugi
|
|
|
24
24
|
Core slash-command forms:
|
|
25
25
|
|
|
26
26
|
- `/akk <task>`: send a new task only when exactly one eligible idle coding-agent pane exists across all workspaces.
|
|
27
|
-
- `/akk <selector>: <message>`:
|
|
27
|
+
- `/akk <selector>: <message>`: resolve one exact eligible AKK session and create a new Turn for the message.
|
|
28
28
|
- `/akk list`: list live coding-agent terminals with their current or recent managed-turn context.
|
|
29
|
-
- `/akk
|
|
30
|
-
- `/akk
|
|
29
|
+
- `/akk threads <exact-terminal-id>`: list verified native threads that may be resumed in one exact terminal.
|
|
30
|
+
- `/akk new-thread <exact-terminal-id>` or `/akk clear-thread <exact-terminal-id>`: switch that idle terminal to a verified clean native context without creating a Turn.
|
|
31
|
+
- `/akk resume-thread <exact-terminal-id> [native-thread-uuid]`: list candidates when the UUID is omitted, or resume one exact returned native thread without creating a Turn.
|
|
32
|
+
- `/akk status [turn-selector]`: inspect one live terminal or exact managed Turn.
|
|
33
|
+
- `/akk respond <turn-selector>: <answer>`: answer a coding-agent question inside a `waiting_for_openclaw` Turn.
|
|
34
|
+
- `/akk cancel <turn-selector>`: interrupt the exact Turn without closing its tmux pane.
|
|
31
35
|
|
|
32
|
-
For
|
|
36
|
+
For human-facing ordinary-send slash forms, a selector may be `codex`, `claude`, `only`, `latest`, or an `@short-ref` returned by `AKK list`. These selectors are only a resolution layer and fail closed when the target is missing or ambiguous. A natural-language tool call may preserve a selector explicitly named by the user; otherwise use a list-prefilled selector or omit it and require a unique pane. Never pass a selector as `session_id` or `turn_id`. Native-thread slash commands are stricter: copy the full `terminal_id` returned by `/akk list`, not its `@short-ref`. The slash handler reads a fresh lifecycle snapshot and immediately supplies its compare-and-swap binding token internally; the human never copies that token. Once an AKK session exists, plugin actions prefill the authoritative full `session_id` for ordinary send or `turn_id` for respond and managed controls. The same raw terminal row may advertise status, approval, cancellation, or orphan-close with its own prefilled `conversation_id` compatibility selector. Use only the exact returned action; never infer, copy, or reuse compatibility selectors. For every send, AKK must revalidate the selected agent PID and tmux pane identity, confirm that the process and pane working directories match, and verify the idle prompt.
|
|
33
37
|
|
|
34
38
|
AKK discovers eligible panes across workspaces. When more than one target matches, use a selector returned by `AKK list`; never guess based on a workspace name or path.
|
|
35
39
|
|
|
@@ -39,25 +43,42 @@ Natural-language forms:
|
|
|
39
43
|
- `AKK Codex: <task>`: call `agent_knock_knock_send` with `request=<task>` and `selector="codex"`.
|
|
40
44
|
- `AKK Claude: <task>`: call `agent_knock_knock_send` with `request=<task>` and `selector="claude"`.
|
|
41
45
|
- Requests to list AKK or local coding-agent work: call `agent_knock_knock_list`.
|
|
46
|
+
- Requests to list resumable native threads for an exact terminal: call `agent_knock_knock_list_resumable_threads` with the terminal row's prefilled `terminal_id`.
|
|
47
|
+
- Explicit requests to start a new thread or clear context: call `agent_knock_knock_new_thread` only from an advertised `new_thread` action, preserving its exact `terminal_id` and `expected_binding_token`.
|
|
48
|
+
- Explicit requests to resume prior native context: first call `agent_knock_knock_list_resumable_threads`; then call `agent_knock_knock_resume_thread` with the same exact `terminal_id`, the complete UUID and opaque `candidate_token` from one `resumable=true` row, and the `expected_binding_token` from that same result.
|
|
42
49
|
- Requests to inspect current output or ask what a task is doing: call `agent_knock_knock_status`.
|
|
43
|
-
-
|
|
50
|
+
- A later request for an existing listed AKK session: call `agent_knock_knock_send` with its authoritative `session_id` and `request=<message>`; this creates a new Turn in the same native context.
|
|
51
|
+
- Requests to continue the current thread are ordinary sends, not lifecycle actions.
|
|
52
|
+
- An answer to a coding-agent question in a `waiting_for_openclaw` Turn: call `agent_knock_knock_respond` with its authoritative `turn_id` and `request=<answer>`.
|
|
44
53
|
- Requests to stop current work: call `agent_knock_knock_cancel`.
|
|
45
54
|
|
|
46
|
-
##
|
|
55
|
+
## Sessions and Turns
|
|
47
56
|
|
|
48
|
-
|
|
57
|
+
AKK's identity hierarchy is terminal → native Codex or Claude Code session → AKK session → Turns. Once the AKK session exists, its `session_id` is the ordinary-send target. Each accepted send creates a distinct `turn_id` without clearing the native agent context. A `turn_id` is only for history, callbacks, respond, status, approval, cancellation, renewal, callback retry, and close.
|
|
49
58
|
|
|
50
|
-
|
|
59
|
+
Use `agent_knock_knock_send` with `request` and neither `session_id` nor `selector` only when the target is unspecified. AKK must resolve exactly one eligible Codex or Claude Code pane across all workspaces, attach or discover its AKK session, and verify that it is idle immediately before writing the request. If no eligible pane exists, report AKK's setup guidance; do not substitute another execution path.
|
|
51
60
|
|
|
52
|
-
|
|
61
|
+
For ordinary send or an in-flight answer:
|
|
62
|
+
|
|
63
|
+
1. Reuse an AKK session only when the user's reference uniquely identifies its verified native session and terminal incarnation.
|
|
53
64
|
2. If no ID is supplied and more than one eligible pane may exist, call `agent_knock_knock_list`.
|
|
54
|
-
3. Treat `terminals[]` as the primary resource list.
|
|
65
|
+
3. Treat `terminals[]` as the primary resource list. Its managed context exposes `session_id`; `managed.current_turn` is the only current AKK owner, while `managed.recent_turn` and `managed.history` are retained Turn history. Records in `unavailable_managed_turns[]` have no live pane in this snapshot.
|
|
55
66
|
4. Read the selected resource's `available_actions`. Use only an action present there, start with its prefilled authoritative arguments, supply every `missing_required` field, and consult the top-level contract for optional fields.
|
|
56
|
-
5.
|
|
67
|
+
5. For an existing managed Session, use `send` with its prefilled `session_id`; it creates a new Turn. For first attach only, use a discovery selector explicitly named by the user or the selected unmanaged raw-terminal row's prefilled `selector`. Never infer or reuse a selector. Use `respond` with its prefilled `turn_id` only when that Turn is explicitly `waiting_for_openclaw`; the answer stays in the same Turn. Add the text as `request`. Do not add timeout fields for ordinary use; `timeoutSeconds` is unsupported.
|
|
57
68
|
6. If multiple terminals match, show their `short_ref`, agent, and tmux target, then ask the user to choose. Never guess or send to a pane that AKK has not verified as idle.
|
|
58
69
|
|
|
59
70
|
An idle pane is at a verified ready prompt, with no current work or unresolved permission request. A previously completed managed turn alone is not proof that the pane is still idle.
|
|
60
71
|
|
|
72
|
+
Do not treat ordinary send as native clear, new-session, fork, branch, side thread, status probe, or resume. Do not send `/clear`, `/new`, `/resume`, `/status`, Codex `/fork`, `/side`, `/btw`, Claude `/branch`, or any other first-line native slash command as ordinary task or answer text. Native lifecycle tools own supported keystrokes, capability checks, serialization, identity verification, and binding changes; express other requests in natural language or leave unsupported native commands to a human in tmux. Each successful lifecycle transition creates no Turn.
|
|
73
|
+
|
|
74
|
+
For native-thread lifecycle discovery or mutation:
|
|
75
|
+
|
|
76
|
+
1. Start from the exact terminal row's currently advertised `list_resumable_threads` or `new_thread` action. Listing is read-only, requires only the full `terminal_id`, and creates no Turn.
|
|
77
|
+
2. Before either mutation, `new_thread` or `resume_thread`, the terminal must be verified idle and have no active or unresolved Turn. Preserve the exact `expected_binding_token` from the same current terminal action or lifecycle-list result. Never construct, guess, or reuse it after another terminal action.
|
|
78
|
+
3. For resume, list candidates first and invoke only the `resume_thread` action advertised by one candidate row with `resumable=true`. Preserve that row's complete `native_thread_id` and opaque `candidate_token`; never select by title, preview, recency, or a partial UUID, and never combine values from different snapshots.
|
|
79
|
+
4. Treat mutation success as a Session/native-context transition, not as task delivery. It creates or activates an AKK `session_id`, advances the terminal binding generation, and creates no `turn_id`. The next ordinary send creates the first Turn in that context.
|
|
80
|
+
5. If the agent/version is unsupported, a candidate is ambiguous or active elsewhere, the token is stale, or post-transition identity cannot be verified, fail closed and report the error. Do not fall back to raw terminal commands.
|
|
81
|
+
|
|
61
82
|
Useful examples:
|
|
62
83
|
|
|
63
84
|
```text
|
|
@@ -65,7 +86,11 @@ Useful examples:
|
|
|
65
86
|
/akk codex: inspect the repository and summarize it
|
|
66
87
|
/akk @a1b2c3d4: run the focused tests
|
|
67
88
|
/akk list
|
|
89
|
+
/akk threads terminal:v2:tmux:codex:akk-work:0.0:1234
|
|
90
|
+
/akk new-thread terminal:v2:tmux:codex:akk-work:0.0:1234
|
|
91
|
+
/akk resume-thread terminal:v2:tmux:codex:akk-work:0.0:1234 11111111-1111-4111-8111-111111111111
|
|
68
92
|
/akk status only
|
|
93
|
+
/akk respond @a1b2c3d4: use the existing JSON format
|
|
69
94
|
/akk cancel only
|
|
70
95
|
```
|
|
71
96
|
|
|
@@ -75,10 +100,10 @@ All OpenClaw-to-agent task delivery must go through Agent Knock Knock plugin too
|
|
|
75
100
|
|
|
76
101
|
AKK:
|
|
77
102
|
|
|
78
|
-
1. Resolves the selected Codex or Claude Code process and tmux pane.
|
|
103
|
+
1. Resolves the authoritative AKK session to its selected Codex or Claude Code native session, process, and tmux pane.
|
|
79
104
|
2. Revalidates the expected agent PID and tmux pane identity, confirms that the process and pane working directories match, and verifies the idle prompt.
|
|
80
105
|
3. Types only the user-facing task into the shared terminal.
|
|
81
|
-
4. Creates a managed
|
|
106
|
+
4. Creates a unique managed `turn_id` bound to the AKK `session_id`, terminal incarnation, and message.
|
|
82
107
|
5. Monitors reliable local evidence and sends callbacks to the originating OpenClaw session.
|
|
83
108
|
|
|
84
109
|
The coding agent does not run an AKK callback command and does not require an AKK-specific hook or plugin.
|
|
@@ -93,11 +118,11 @@ For managed terminal entries, `agent_knock_knock_status` captures a bounded term
|
|
|
93
118
|
|
|
94
119
|
`agent_knock_knock_cancel` uses the adapter's interrupt action—Control-C for Codex or Escape for Claude Code—and leaves the tmux pane open.
|
|
95
120
|
|
|
96
|
-
Use `agent_knock_knock_renew` only when AKK marked the same live terminal
|
|
121
|
+
Use `agent_knock_knock_renew` only when AKK marked the same live terminal Turn `stalled`, the process and Turn remain in the same pane, and the user wants monitoring to continue without terminal input. The contextual slash form is `/akk renew @a1b2c3d4 30`.
|
|
97
122
|
|
|
98
123
|
Use `agent_knock_knock_retry_callback` only for a `callback_failed` managed turn, for example `/akk retry-callback @a1b2c3d4`.
|
|
99
124
|
|
|
100
|
-
Use `agent_knock_knock_close` only when the user explicitly wants to close AKK's managed record. If `AKK list` reports an orphaned terminal dispatch, inspect the pane first and use the exact `/akk close <terminal-id>
|
|
125
|
+
Use `agent_knock_knock_close` only when the user explicitly wants to close AKK's managed record. If `AKK list` reports an orphaned terminal dispatch or lifecycle transition, inspect the pane first and use the exact `/akk close <terminal-id> ...` recovery command it returns. That command contains exactly one fresh `--expected-message-id <id>` or `--expected-transition-id <id>` fence. Never invent, substitute, or reuse the fence. Closing a managed record does not close the coding agent or tmux pane.
|
|
101
126
|
|
|
102
127
|
Use `/akk doctor` only for installation checks or troubleshooting.
|
|
103
128
|
|
|
@@ -124,9 +149,9 @@ A trusted, default-disabled plugin `autoApprove` policy may independently approv
|
|
|
124
149
|
|
|
125
150
|
## tmux Sessions
|
|
126
151
|
|
|
127
|
-
`agent_knock_knock_list` is terminal-first: every eligible already-running Codex or Claude Code pane appears once in `terminals[]`, even when retained managed
|
|
152
|
+
`agent_knock_knock_list` is terminal-first: every eligible already-running Codex or Claude Code pane appears once in `terminals[]`, even when retained managed Turns reference it. The resource chain is terminal → verified native session → managed AKK `session_id` → Turns. `process_state` reports process liveness and `activity_state` reports the parsed screen state. `managed.current_turn` is the authoritative active Turn for that terminal; otherwise `managed.recent_turn` shows the newest retained context. Request `all=true` only when older `managed.history` or retained unavailable history is needed. By default, `unavailable_managed_turns[]` contains attention-needed records whose terminal is unavailable.
|
|
128
153
|
|
|
129
|
-
The top-level `action_contracts`
|
|
154
|
+
The top-level v5 `action_contracts` summarizes each tool's managed target and its narrow compatibility inputs; `available_actions` is the authoritative current-action source after listing. An existing managed Session's ordinary `send` targets `session_id` and starts a new managed Turn. On first attach only, `selector` may preserve a discovery target explicitly named by the user or the exact selector prefilled by an unmanaged raw-terminal row; it must never be passed as `session_id`. `respond` and every managed control target `turn_id`; `respond` is offered only for a Turn waiting on OpenClaw. The read-only `list_resumable_threads` action is advertised on the terminal row, requires only its full `terminal_id`, and returns a fresh `expected_binding_token` plus candidate rows. The `new_thread` mutation is advertised on the terminal row and requires that terminal ID and token; each resumable candidate row advertises its own `resume_thread` mutation with the same snapshot token, its complete `native_thread_id`, and its opaque `candidate_token`. Lifecycle discovery and mutations never create a Turn. A raw terminal may be controlled only through the exact action that its own row advertises; prefilled compatibility selectors, lifecycle IDs, and tokens must never be inferred, copied from another row, or reused from another snapshot. Start with the prefilled full argument, supply all `missing_required` fields, and use a returned `@short-ref` only for human-facing ordinary-send selection. Availability is a snapshot, so AKK revalidates it before side effects.
|
|
130
155
|
|
|
131
156
|
Before every terminal operation, AKK revalidates the expected agent PID and tmux pane identity, then confirms that the process and pane working directories match. Sending new work additionally requires a verified idle prompt. Humans can attach to the same tmux session and continue directly at any time.
|
|
132
157
|
|