Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ark-turn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "loopx/control_plane/turn_driver/**"
- "loopx/control_plane/collaboration/**"
- "loopx/collaboration_mcp.py"
- "loopx/dsh_goal_mode/**"
- "loopx/hosts/dsh/**"
- "loopx/cli_commands/turn*.py"
- "loopx/control_plane/goals/acceptance*.ts"
- "loopx/control_plane/goals/acceptance.py"
Expand Down
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Todo として計画して、ホストの有効化をガイドします。アク
| ZCode | `loopx slash-commands --install --surface zcode` でスキルファサードをインストールし、プロジェクトの ZCode セッションから `$loopx` スキル(または `/loopx <complex task>`)を呼び出します。 | ZCode セッション自身のターンループ。すべての継続は `quota should-run` を経由します |
| Antigravity CLI (agy) | `loopx slash-commands --install --surface agy` でスキルファサードをインストールし、プロジェクトの `agy` セッションから `loopx` スキル(または `/loopx <complex task>`)を呼び出します。 | セッションのネイティブな `/goal` ループ(`<!-- GOAL_COMPLETE -->` まで監査されます)と、セッションが生きている間の `schedule` による自己起床。ファサードは各ターン/起床で `quota should-run` を経由して再入するよう指示します。これは助言的なペース配分であり、ホストが強制するゲートではありません |
| Kiro CLI | `loopx slash-commands --install --surface kiro-cli` でスキルファサードをインストールし、プロジェクトの `kiro-cli` セッションから `/loopx <complex task>` を実行します。 | セッションのネイティブな `/goal --max <N> <task_body> Done when: <criteria>` ループ。ホストがゴール文から受け入れ基準を導出するため、基準はゴール文の中に記述します。ホスト自身の反復予算(デフォルトは 5)で制限され、組み込みの `goal` 完了契約によって確定されます。ファサードは各ターンと反復で `quota should-run` を経由して再入するよう指示します。これは助言的なペース配分であり、ホストが強制するゲートではありません |
| DeepSeek Harness (dsh) | [ネイティブの DSH プラグイン](packages/dsh-loopx-plugin/README.md)をインストールし、`loopx` スキルを選択して、タスクを記述します。ヘッドレスなターンには、引き続き [dsh goal-mode アダプター](loopx/dsh_goal_mode/README.md)を利用できます。 | ネイティブな同一セッション内での継続と GoalBar、またはヘッドレスな dsh セグメント。どちらも LoopX の権限によってゲートされます |
| DeepSeek Harness (dsh) | [ネイティブの DSH プラグイン](packages/dsh-loopx-plugin/README.md)をインストールし、`loopx` スキルを選択して、タスクを記述します。ヘッドレスなターンには、引き続き [dsh goal-mode アダプター](loopx/hosts/dsh/README.md)を利用できます。 | ネイティブな同一セッション内での継続と GoalBar、またはヘッドレスな dsh セグメント。どちらも LoopX の権限によってゲートされます |
| Cursor、シェル、カスタムランナー | `loopx start-goal --guided --project . --goal-text "<task>"` を実行するか、ランナーから LoopX を呼び出します。 | お使いのシェル、スケジューラー、ランナー |

そのままコピーできるセットアップメッセージとホストの復旧手順は、
Expand All @@ -311,7 +311,7 @@ Todo として計画して、ホストの有効化をガイドします。アク
[Claude Code アダプター](loopx/claude_goal_mode/README.md)、
[KunlunCode のネイティブ Goal アダプター](loopx/kunluncode_goal_mode/README.md)、
[Kiro CLI の goal-mode アダプター](loopx/hosts/kiro_cli/README.md)、または
[DeepSeek Harness のターンアダプター](loopx/dsh_goal_mode/README.md)を確認できます。
[DeepSeek Harness のターンアダプター](loopx/hosts/dsh/README.md)を確認できます。

ネイティブな手順については、[60 秒の DSH × LoopX Replan の録画と再現可能な
フィクスチャ](docs/showcases/cases/dsh-loopx-replan-demo.md)をご覧ください:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ upgrades, rollback and uninstall.
| ZCode | Install the skill facade with `loopx slash-commands --install --surface zcode`, then invoke the `$loopx` skill (or `/loopx <complex task>`) from a ZCode session in the project. | The ZCode session's own turn loop; every continuation enters through `quota should-run` |
| Antigravity CLI (agy) | Install the skill facade with `loopx slash-commands --install --surface agy`, then invoke the `loopx` skill (or `/loopx <complex task>`) from an `agy` session in the project. | The session's native `/goal` loop (audited until `<!-- GOAL_COMPLETE -->`) with `schedule` self-wakes while the session lives; the facade instructs every turn/wake to re-enter through `quota should-run` — advisory pacing, not a host-enforced gate |
| Kiro CLI | Install the skill facade with `loopx slash-commands --install --surface kiro-cli`, then run `/loopx <complex task>` from a `kiro-cli` session in the project. | The session's native `/goal --max <N> <task_body> Done when: <criteria>` loop, with the acceptance criteria stated inside the goal statement because the host derives them from it, bounded by the host's own iteration budget (default 5) and settled through the built-in `goal` completion contract; the facade instructs every turn and iteration to re-enter through `quota should-run` — advisory pacing, not a host-enforced gate |
| DeepSeek Harness (dsh) | Install the [native DSH plugin](packages/dsh-loopx-plugin/README.md), select the `loopx` skill, and describe the task. The [dsh goal-mode adapter](loopx/dsh_goal_mode/README.md) remains available for headless turns. | Native same-session continuation and GoalBar, or headless dsh segments; both remain gated by LoopX authority |
| DeepSeek Harness (dsh) | Install the [native DSH plugin](packages/dsh-loopx-plugin/README.md), select the `loopx` skill, and describe the task. The [dsh goal-mode adapter](loopx/hosts/dsh/README.md) remains available for headless turns. | Native same-session continuation and GoalBar, or headless dsh segments; both remain gated by LoopX authority |
| Cursor, shell, or custom runner | `loopx start-goal --guided --project . --goal-text "<task>"`, or call LoopX from your runner. | Your shell, scheduler, or runner |

The exact, copy-ready setup messages and host recovery paths live in
Expand All @@ -325,7 +325,7 @@ the [Codex CLI packaged install path](docs/product/runtimes/codex-cli/codex-cli-
the [Claude Code adapter](loopx/claude_goal_mode/README.md), the
[KunlunCode native Goal adapter](loopx/kunluncode_goal_mode/README.md), the
[Kiro CLI goal-mode adapter](loopx/hosts/kiro_cli/README.md), or the
[DeepSeek Harness turn adapter](loopx/dsh_goal_mode/README.md).
[DeepSeek Harness turn adapter](loopx/hosts/dsh/README.md).

See the [60-second DSH × LoopX Replan recording and reproducible
fixture](docs/showcases/cases/dsh-loopx-replan-demo.md) for the native path:
Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ LoopX 会复用项目已有状态或连接项目,把工作规划成 Todo,并
| ZCode | 用 `loopx slash-commands --install --surface zcode` 安装 skill facade,然后在项目里的 ZCode 会话中调用 `$loopx` skill(或 `/loopx <复杂任务>`)。 | ZCode 会话自身的 turn loop;每次续跑都从 `quota should-run` 进入 |
| Antigravity CLI(agy) | 用 `loopx slash-commands --install --surface agy` 安装 skill facade,然后在项目里的 `agy` 会话中调用 `loopx` skill(或 `/loopx <复杂任务>`)。 | 会话原生 `/goal` 循环(审计至 `<!-- GOAL_COMPLETE -->`)加 `schedule` 自唤醒,随会话存活;facade 指示每次 turn/唤醒都先过 `quota should-run`——advisory 节流,非宿主强制 gate |
| Kiro CLI | 用 `loopx slash-commands --install --surface kiro-cli` 安装 skill facade,然后在项目里的 `kiro-cli` 会话中执行 `/loopx <复杂任务>`。 | 会话原生 `/goal --max <N> <任务> Done when: <验收条件>` 循环,验收条件写入目标语句本身(宿主由该语句推导验收标准),由宿主自己的迭代预算兜底(默认 5),并通过内置 `goal` 完成契约收口;facade 指示每次 turn 与迭代都先过 `quota should-run`——advisory 节流,非宿主强制 gate |
| DeepSeek Harness(dsh) | 安装 [DSH 原生 Plugin](packages/dsh-loopx-plugin/README.md),在技能选择器中点 `loopx`,然后直接描述任务;[dsh goal-mode adapter](loopx/dsh_goal_mode/README.md) 继续支持 headless turn。 | 原生同会话续跑与 GoalBar,或 headless dsh 工作段;两条路径都遵守 LoopX authority |
| DeepSeek Harness(dsh) | 安装 [DSH 原生 Plugin](packages/dsh-loopx-plugin/README.md),在技能选择器中点 `loopx`,然后直接描述任务;[dsh goal-mode adapter](loopx/hosts/dsh/README.md) 继续支持 headless turn。 | 原生同会话续跑与 GoalBar,或 headless dsh 工作段;两条路径都遵守 LoopX authority |
| Cursor、shell、自有 runner | `loopx start-goal --guided --project . --goal-text "<任务>"`,或由你的 runner 调用 LoopX。 | 你的 shell、scheduler 或 runner |

可直接粘贴的完整 setup message、host-specific 路由和故障恢复见
Expand All @@ -273,7 +273,7 @@ LoopX 会复用项目已有状态或连接项目,把工作规划成 Todo,并
[Claude Code adapter](loopx/claude_goal_mode/README.md)、
[KunlunCode 原生 Goal adapter](docs/guides/kunluncode-adapter.zh-CN.md)、
[Kiro CLI goal-mode adapter](loopx/hosts/kiro_cli/README.md),以及
[DeepSeek Harness turn adapter](loopx/dsh_goal_mode/README.md)。
[DeepSeek Harness turn adapter](loopx/hosts/dsh/README.md)。

可查看 [60 秒 DSH × LoopX Replan 真实录屏和可复现
fixture](docs/showcases/cases/dsh-loopx-replan-demo.md):安装 Plugin、选择一个
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/rfcs/harness-selection-dsh-pi-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ LoopX's public [Ark Managed Agent host contract](../../../loopx/ark_managed_agen
currently specifies one-shot Goal activation, native continuation and no outer
Turn driver. A cloud governed-Turn adapter is a **separate, unqualified opt-in
candidate**, not a reinterpretation of that profile. DSH's
[bounded Turn adapter](../../../loopx/dsh_goal_mode/README.md) and
[bounded Turn adapter](../../../loopx/hosts/dsh/README.md) and
[same-session plugin](../../../packages/dsh-loopx-plugin/README.md) likewise have
different continuation contracts; qualification cannot be borrowed between them.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ DeepSeek-V4.1-Flash 世代的正式 ID `deepseek-flash`。该退役拼写仍被
LoopX 公开的 [Ark Managed Agent host contract](../../../loopx/ark_managed_agent_host.py)
当前规定一次 Goal 激活、原生续跑、无外层 Turn driver。云端 governed-Turn adapter
是**独立、尚未资格化、需显式选择的候选**,不能重新解释该 profile。DSH 的
[有界 Turn adapter](../../../loopx/dsh_goal_mode/README.md)与
[有界 Turn adapter](../../../loopx/hosts/dsh/README.md)与
[同会话 plugin](../../../packages/dsh-loopx-plugin/README.md)也有不同续跑合同,资格
不能互借。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ The current [`projectManagedOperationTransport`](../../../loopx/control_plane/wo
accepts only `codex-cli`. A configured `dsh` executor can pass the existing
runtime, credential and model-profile checks while a request for operation
tools returns `operation_transport_host_unsupported`. The
[`DSH Turn adapter`](../../../loopx/dsh_goal_mode/turn_host_adapter.py) runs the
[`DSH Turn adapter`](../../../loopx/hosts/dsh/turn_host_adapter.py) runs the
model through the SDK; it does not install the owned `loopx_operation`
connection described above. SDK built-in tools, a successful model response,
`unrestricted` permission mode, or a registered source thread cannot replace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ Codex 宿主。其合成 File/SQLite 验证不证明真实确认、本机宿主
只接受 `codex-cli`。已配置的 `dsh` 执行器可以通过既有 runtime、凭据和模型
profile 检查,同时在请求 operation tools 时返回
`operation_transport_host_unsupported`。
[`DSH Turn adapter`](../../../loopx/dsh_goal_mode/turn_host_adapter.py) 通过 SDK
[`DSH Turn adapter`](../../../loopx/hosts/dsh/turn_host_adapter.py) 通过 SDK
运行模型,没有安装上述受管 `loopx_operation` 连接。SDK 内置工具、模型回复
成功、`unrestricted` 权限模式或已登记源线程不能代替原生身份 producer;开放
更多 shell 工具也不会提供它。
Expand Down
8 changes: 4 additions & 4 deletions docs/architecture/rfcs/loopx-overall-roadmap-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ surface** rather than forcing one generic wrapper across every environment:
|---|---|---|---|
| **Level 1 · `BoundaryCLI`** | Boundary-isolated external CLI hosts (`codex-cli`, `claude-code`, `opencode`, `pi`, `zcode`, `kiro-cli`, `kunluncode`, skill-facade CLIs) where LoopX observes only turn boundaries | Keeps routine uncontested steps zero-ceremony (**`Quiet-Turn`**, zero per-Turn schema tax) and preserves native `KeepRaw` prefix KV-cache stability within a phase, deferring prefix rebasing and compact delta/snapshot resets to explicit quiescent **`EpochReset`** boundaries | [`loopx/host_loop_activation.py`](../../../loopx/host_loop_activation.py), [`loopx/hosts/skill_facade.py`](../../../loopx/hosts/skill_facade.py), `context_delivery.ts` ([History working sets](history-working-set-context-policy-v0.md#51-one-projection-owner)) |
| **Level 2 · `OrchestratedApp`** | Multi-unit app, IDE, IM, and `Controller–Worker` orchestrators coordinating concurrent lanes and handoffs | Enforces **`Subagent Scope`** isolation (`collaboration_brief_v0`, bounded `remaining_work`, per-worker workspace/lease fences, and async wake predicates) so long worker execution neither blocks controller/user interaction nor leaks parent prompt gravity across slices | [`controller-executor-unified-contract-v0.md`](controller-executor-unified-contract-v0.md#router-controller-worker), [`capable-manager-semantic-handoff-v0.md`](capable-manager-semantic-handoff-v0.md) |
| **Level 3 · `InTree`** | Runtime-embedded harnesses running inside or directly wired to LoopX's process transport (such as `loopx turn run-once --host dsh` for DeepSeek Harness) | Pairs receipt-gated `FoldToReceipt` / `EpochReset` queue compaction with deterministic turn-start context/artifact prefetch (**`FoldAndPrefetch`**) and typed failure-class recovery (`loopx_turn_host_failure_v0`) inside one process boundary | [`loopx/dsh_goal_mode/turn_host_adapter.py`](../../../loopx/dsh_goal_mode/turn_host_adapter.py), [`harness-selection-dsh-pi-v0.md`](harness-selection-dsh-pi-v0.md) |
| **Level 3 · `InTree`** | Runtime-embedded harnesses running inside or directly wired to LoopX's process transport (such as `loopx turn run-once --host dsh` for DeepSeek Harness) | Pairs receipt-gated `FoldToReceipt` / `EpochReset` queue compaction with deterministic turn-start context/artifact prefetch (**`FoldAndPrefetch`**) and typed failure-class recovery (`loopx_turn_host_failure_v0`) inside one process boundary | [`loopx/hosts/dsh/turn_host_adapter.py`](../../../loopx/hosts/dsh/turn_host_adapter.py), [`harness-selection-dsh-pi-v0.md`](harness-selection-dsh-pi-v0.md) |

To prevent host divergence from duplicating control-plane logic across
top-level packages:
Expand All @@ -190,9 +190,9 @@ top-level packages:
fence fidelity—never claiming autonomous execution or budget enforcement a host
cannot verify.
- **Consolidating `loopx/*_goal_mode/` into `loopx/hosts/`:** migrate the `9`
top-level `loopx/*_goal_mode/` packages (`4` migrated into `loopx/hosts/`:
`hosts/kiro_cli`, `hosts/opencode`, `hosts/opencode2`, `hosts/pi`; `5` remaining:
`agy_goal_mode`, `claude_goal_mode`, `dsh_goal_mode`, `kunluncode_goal_mode`,
top-level `loopx/*_goal_mode/` packages (`6` migrated into `loopx/hosts/`:
`hosts/agy`, `hosts/dsh`, `hosts/kiro_cli`, `hosts/opencode`, `hosts/opencode2`,
`hosts/pi`; `3` remaining: `claude_goal_mode`, `kunluncode_goal_mode`,
`zcode_goal_mode`) under shared `HostHarnessCapabilities` projections per
[the unified contract's retirement gate](controller-executor-unified-contract-v0.md#3-normative-retirement-backlog-and-ratchet-rules)
and [`top_level_module_budget.json`](../../../tests/architecture/top_level_module_budget.json),
Expand Down
Loading
Loading