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 README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Todo として計画して、ホストの有効化をガイドします。アク
[Codex CLI のパッケージインストール手順](docs/product/runtimes/codex-cli/codex-cli-packaged-install.md)、
[Claude Code アダプター](loopx/claude_goal_mode/README.md)、
[KunlunCode のネイティブ Goal アダプター](loopx/kunluncode_goal_mode/README.md)、
[Kiro CLI の goal-mode アダプター](loopx/kiro_cli_goal_mode/README.md)、または
[Kiro CLI の goal-mode アダプター](loopx/hosts/kiro_cli/README.md)、または
[DeepSeek Harness のターンアダプター](loopx/dsh_goal_mode/README.md)を確認できます。

ネイティブな手順については、[60 秒の DSH × LoopX Replan の録画と再現可能な
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ the [Codex App host command registry contract](docs/reference/protocols/codex-ap
the [Codex CLI packaged install path](docs/product/runtimes/codex-cli/codex-cli-packaged-install.md),
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/kiro_cli_goal_mode/README.md), or the
[Kiro CLI goal-mode adapter](loopx/hosts/kiro_cli/README.md), or the
[DeepSeek Harness turn adapter](loopx/dsh_goal_mode/README.md).

See the [60-second DSH × LoopX Replan recording and reproducible
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ LoopX 会复用项目已有状态或连接项目,把工作规划成 Todo,并
[Codex CLI packaged install](docs/product/runtimes/codex-cli/codex-cli-packaged-install.md)和
[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/kiro_cli_goal_mode/README.md),以及
[Kiro CLI goal-mode adapter](loopx/hosts/kiro_cli/README.md),以及
[DeepSeek Harness turn adapter](loopx/dsh_goal_mode/README.md)。

可查看 [60 秒 DSH × LoopX Replan 真实录屏和可复现
Expand Down
2 changes: 1 addition & 1 deletion apps/presentation/dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ so a Kiro tool call that needs approval is refused rather than auto-approved.
LoopX passes no `--trust-all-tools`. Reaching the host this way drives one
read-only Chat session; it is not the governed `/goal` loop, which is entered
from a Kiro CLI session through the
[Kiro CLI goal-mode adapter](../../../loopx/kiro_cli_goal_mode/README.md).
[Kiro CLI goal-mode adapter](../../../loopx/hosts/kiro_cli/README.md).

Source-checkout development is a separate mode:

Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/rfcs/desktop-execution-frontends-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ checkout or passing helper test does not qualify this native process boundary.
- [Extensions](../../reference/extensions.md)
- [LoopX Turn v0](../../reference/protocols/loopx-turn-v0.md)
- [DeepSeek Harness connector](../../integrations/deepseek-harness-connector.md)
- [Pi Goal mode](../../../loopx/pi_goal_mode/README.md)
- [Pi Goal mode](../../../loopx/hosts/pi/README.md)
- [Goal Channel collaboration v0](goal-channel-collaboration-v0.md)
- [Volcengine Ark Agent Plan documentation](https://www.volcengine.com/docs/82379/1928262)
- [Volcengine Ark API overview](https://api.volcengine.com/api-docs/view?serviceCode=ark&version=2024-01-01)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ provider 新增忙碌回合输入能力。
- [Extensions](../../reference/extensions.md)
- [LoopX Turn v0](../../reference/protocols/loopx-turn-v0.md)
- [DeepSeek Harness connector](../../integrations/deepseek-harness-connector.md)
- [Pi Goal mode](../../../loopx/pi_goal_mode/README.md)
- [Pi Goal mode](../../../loopx/hosts/pi/README.md)
- [Goal Channel collaboration v0](goal-channel-collaboration-v0.md)
- [Volcengine Ark Agent Plan documentation](https://www.volcengine.com/docs/82379/1928262)
- [Volcengine Ark API overview](https://api.volcengine.com/api-docs/view?serviceCode=ark&version=2024-01-01)
Expand Down
9 changes: 4 additions & 5 deletions docs/architecture/rfcs/loopx-overall-roadmap-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,10 @@ 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`
remaining top-level `loopx/*_goal_mode/` packages (`agy_goal_mode`,
`claude_goal_mode`, `dsh_goal_mode`, `kiro_cli_goal_mode`,
`kunluncode_goal_mode`, `opencode2_goal_mode`, `opencode_goal_mode`,
`pi_goal_mode`, `zcode_goal_mode`) into `loopx/hosts/` under shared
`HostHarnessCapabilities` projections per
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`,
`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),
keeping CLI compatibility aliases strictly until caller cutover completes.
Expand Down
10 changes: 5 additions & 5 deletions docs/architecture/rfcs/loopx-overall-roadmap-v0.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ LoopX 的权威与决策基座(`AuthorityStore`、`CAS`、`claim/lease`、`Tur
围栏保真度),绝不伪造宿主无法执行的自治承诺或预算强约束。
- **把 `loopx/*_goal_mode/` 收敛至 `loopx/hosts/`:** 按
[统一契约的退役门禁](controller-executor-unified-contract-v0.zh-CN.md#3-具名退役清单与棘轮规则)与
[`top_level_module_budget.json`](../../../tests/architecture/top_level_module_budget.json),将现存
`9` 个顶层 `loopx/*_goal_mode/` 包(`agy_goal_mode`、`claude_goal_mode`、`dsh_goal_mode`、
`kiro_cli_goal_mode`、`kunluncode_goal_mode`、`opencode2_goal_mode`、`opencode_goal_mode`、
`pi_goal_mode`、`zcode_goal_mode`)迁入 `loopx/hosts/` 并收敛至共享 `HostHarnessCapabilities`
投影,仅在调用方切换完成前保留 CLI 兼容别名。
[`top_level_module_budget.json`](../../../tests/architecture/top_level_module_budget.json),将
`9` 个顶层 `loopx/*_goal_mode/` 包迁入 `loopx/hosts/` 并收敛至共享 `HostHarnessCapabilities`
投影(已迁入 `4` 个:`hosts/kiro_cli`、`hosts/opencode`、`hosts/opencode2`、`hosts/pi`;
待迁移 `5` 个:`agy_goal_mode`、`claude_goal_mode`、`dsh_goal_mode`、`kunluncode_goal_mode`、
`zcode_goal_mode`),仅在调用方切换完成前保留 CLI 兼容别名。
- **漏斗验证门禁:** `BoundaryCLI`、`OrchestratedApp` 与 `InTree` 的协同优化(`Quiet-Turn`、
`EpochReset`、`Subagent Scope`、`FoldAndPrefetch`)在通过[四层漏斗验证协议](long-horizon-harness-benchmark-research-program-v0.zh-CN.md#55-四层漏斗验证协议)前均为架构与设计目标,不直接等同已测收益或默认切换。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ Source anchors for the classifications include
`loopx/global_registry.py`, and the host state in
`loopx/control_plane/scheduler/state.py`,
`loopx/control_plane/turn_driver/codex_cli.py`,
and `loopx/pi_goal_mode/pi-goal-loop-runtime.mjs`.
and `loopx/hosts/pi/pi-goal-loop-runtime.mjs`.

## 4. What Goes Into This Coordination Ledger

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ owner,新 host 或 extension 也可以新增本地 artifact,而无需修改
`loopx/global_registry.py`,以及这些 host state:
`loopx/control_plane/scheduler/state.py`、
`loopx/control_plane/turn_driver/codex_cli.py` 和
`loopx/pi_goal_mode/pi-goal-loop-runtime.mjs`。
`loopx/hosts/pi/pi-goal-loop-runtime.mjs`。

## 4. 这本协调账里到底放什么

Expand Down
4 changes: 2 additions & 2 deletions docs/book/chapters/00-reading-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ live operation 不进入当前主线。需要这些能力时,应回到官方

接入主线只以 Codex App 与 Codex CLI 为例,因为这两条路径可以端到端复现。LoopX 的 agent type
覆盖面更宽:`loopx/host_loop_activation.py` 的 `SUPPORTED_AGENT_TYPES` 列出 21 个类型,其中 9 个
另有独立的 goal-mode 适配包(`claude_goal_mode`、`kunluncode_goal_mode`、`opencode_goal_mode`、
`pi_goal_mode`、`zcode_goal_mode`、`agy_goal_mode`、`dsh_goal_mode`、`kiro_cli_goal_mode` 等)。
另有目标模式适配包(`hosts/{kiro_cli,opencode,opencode2,pi}` 已迁入 `loopx/hosts/`,其余为 `claude_goal_mode`、
`kunluncode_goal_mode`、`zcode_goal_mode`、`agy_goal_mode`、`dsh_goal_mode` 等)。
路线选择是教学取舍:其余 harness 的接入差异,以各自适配包和
[协议文档](/loopx/docs/reference/protocols/) 为准。
4 changes: 2 additions & 2 deletions docs/book/en/chapters/00-reading-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ workflows.
The onboarding path uses Codex App and Codex CLI as its worked examples, because those two routes can be
reproduced end to end. LoopX's agent type coverage is wider: `SUPPORTED_AGENT_TYPES` in
`loopx/host_loop_activation.py` lists 21 types, and 9 of them have a dedicated goal-mode adapter package
(`claude_goal_mode`, `kunluncode_goal_mode`, `opencode_goal_mode`, `pi_goal_mode`, `zcode_goal_mode`,
`agy_goal_mode`, `dsh_goal_mode`, `kiro_cli_goal_mode`, and others). Choosing two routes is a teaching
(`hosts/{kiro_cli,opencode,opencode2,pi}` consolidated under `loopx/hosts/`, alongside `claude_goal_mode`,
`kunluncode_goal_mode`, `zcode_goal_mode`, `agy_goal_mode`, `dsh_goal_mode`, and others). Choosing two routes is a teaching
tradeoff, not a capability boundary: for another harness, follow its own adapter package and the
[protocol documentation](/loopx/docs/reference/protocols/).
2 changes: 1 addition & 1 deletion docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ can discover user-installed skills:
loop runs through the persistent `loopx opencode2-goal-worker` process,
which drives the session over the OpenCode 2 HTTP API and owns the loop
timers, so long runs survive TUI close. OpenCode 1 plugins do not run under
OpenCode 2; see `loopx/opencode2_goal_mode/README.md`.
OpenCode 2; see `loopx/hosts/opencode2/README.md`.
- Pi: the self-contained goal extension exposes `/loopx` after `/reload` or a
restart and runs the quota-gated goal loop through `loopx_goal_activate`.
`loopx slash-commands --install --surface pi` installs it for the current
Expand Down
4 changes: 2 additions & 2 deletions examples/kiro-cli-goal-command-contract-probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

This probe is replayable and public-safe: it starts the host as an ACP stdio
agent, reads the advertised `/goal` entry, and compares it with what
`loopx.kiro_cli_goal_mode` projects. It exits 0 and reports `skipped` when the
`loopx.hosts.kiro_cli` projects. It exits 0 and reports `skipped` when the
binary is absent, so it is safe in environments without the host.

python3 examples/kiro-cli-goal-command-contract-probe.py
Expand All @@ -28,7 +28,7 @@
REPO_ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(REPO_ROOT))

from loopx.kiro_cli_goal_mode import ( # noqa: E402
from loopx.hosts.kiro_cli import ( # noqa: E402
KIRO_CLI_GOAL_CLEAR_COMMAND,
KIRO_CLI_GOAL_COMMAND,
KIRO_CLI_GOAL_MAX_FLAG,
Expand Down
2 changes: 1 addition & 1 deletion examples/loopx-chat-acp-adapter-smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from loopx.chat.endpoints import AgentEndpointRegistry # noqa: E402
from loopx.chat_runtime import ChatRuntimeController # noqa: E402
from loopx.chat_store import ChatSessionStore # noqa: E402
from loopx.kiro_cli_goal_mode import KIRO_CLI_CHAT_AGENT_ID # noqa: E402
from loopx.hosts.kiro_cli import KIRO_CLI_CHAT_AGENT_ID # noqa: E402


FAKE_ACP = r'''#!/usr/bin/env python3
Expand Down
4 changes: 2 additions & 2 deletions loopx/agent_onboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
)
from .history import load_registry
from .install_contract import NO_CLONE_INSTALL_URL
from .kiro_cli_goal_mode import (
from .hosts.kiro_cli import (
KIRO_CLI_GOAL_CLEAR_COMMAND,
KIRO_CLI_GOAL_COMPLETION_TOOL,
KIRO_CLI_GOAL_DEFAULT_MAX_ITERATIONS,
kiro_cli_goal_invocation,
)
from .kiro_cli_goal_mode import (
from .hosts.kiro_cli import (
SKILLS_ROOT_LABEL as KIRO_CLI_SKILLS_ROOT_LABEL,
)
from .project_prompt import (
Expand Down
2 changes: 1 addition & 1 deletion loopx/chat/endpoint_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
MANAGED_TURN_HOST,
managed_executor_binding,
)
from ..kiro_cli_goal_mode import (
from ..hosts.kiro_cli import (
KIRO_CLI_CHAT_ADAPTER_KIND,
KIRO_CLI_CHAT_AGENT_ID,
KIRO_CLI_CHAT_DISPLAY_NAME,
Expand Down
2 changes: 1 addition & 1 deletion loopx/chat/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from ..chat_store import utc_now
from ..file_lock import exclusive_file_lock, write_json_atomic
from ..kiro_cli_goal_mode import KIRO_CLI_CHAT_AGENT_ID
from ..hosts.kiro_cli import KIRO_CLI_CHAT_AGENT_ID


CHAT_ENDPOINT_REGISTRY_SCHEMA_VERSION = "loopx_chat_endpoint_registry_v1"
Expand Down
2 changes: 1 addition & 1 deletion loopx/chat/session_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
from ..control_plane.turn_driver.execution_profile import managed_execution_profile
from ..control_plane.turn_driver.host_binding import MANAGED_TURN_HOST
from ..file_lock import exclusive_cross_runtime_file_lock
from ..kiro_cli_goal_mode import KIRO_CLI_CHAT_AGENT_ID, kiro_cli_chat_command
from ..hosts.kiro_cli import KIRO_CLI_CHAT_AGENT_ID, kiro_cli_chat_command
from .coordination import PROJECT_CONTEXT_VERSION

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion loopx/chat_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from .control_plane.todos.contract import TODO_DECISION_OUTCOME_VALUES
from .history import load_registry
from .host_loop_activation import build_host_loop_activation_packet
from .kiro_cli_goal_mode import KIRO_CLI_CHAT_AGENT_ID
from .hosts.kiro_cli import KIRO_CLI_CHAT_AGENT_ID
from .paths import resolve_runtime_root
from .public_safe_text import OPAQUE_ID_PATTERN as _OPAQUE_ID
from .quota import build_quota_should_run
Expand Down
2 changes: 1 addition & 1 deletion loopx/chat_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
LOCK_HOLDER_DEAD, LOCK_HOLDER_LIVE, LOCK_HOLDER_RELEASED, LockAcquireTimeoutError,
_lock_id, lock_holder_host_label, lock_holder_liveness, process_is_alive, try_exclusive_file_lock,
)
from .kiro_cli_goal_mode import KIRO_CLI_BIN
from .hosts.kiro_cli import KIRO_CLI_BIN
from .chat_store import (
CHAT_SESSION_MODE_ATTACHED,
CHAT_SESSION_MODE_MANAGED,
Expand Down
2 changes: 1 addition & 1 deletion loopx/chat_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
from .presentation.research_analysis_api import RESEARCH_ANALYSIS_PATH, ResearchAnalysisRequestMixin
from .presentation.goal_source_routing import GOAL_SOURCE_LINKS_PATH, GOAL_SOURCE_STRATEGIES_PATH, GOAL_SOURCE_DOCUMENT_PATH, GoalSourceRequestMixin
from .chat.todo_detail import TodoDetailRequestMixin
from .kiro_cli_goal_mode import KIRO_CLI_BIN
from .hosts.kiro_cli import KIRO_CLI_BIN
from .paths import resolve_runtime_root
from .release_manifest import release_runtime_identity
from .control_plane.projects.registry_codec import load_registry
Expand Down
2 changes: 1 addition & 1 deletion loopx/cli_commands/opencode2_goal_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pathlib import Path
from collections.abc import Callable, Iterable

from ..opencode2_goal_mode import worker_source
from ..hosts.opencode2 import worker_source

PrintPayload = Callable[
[dict[str, object], str, Callable[[dict[str, object]], str]],
Expand Down
2 changes: 1 addition & 1 deletion loopx/cli_commands/slash_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
from pathlib import Path

from ..pi_goal_mode.installation import inspect_pi_installations, render_pi_installation_markdown
from ..hosts.pi.installation import inspect_pi_installations, render_pi_installation_markdown
from ..slash_command_install import install_slash_commands, render_slash_command_install_markdown
from ..slash_commands import build_slash_command_catalog, render_slash_command_catalog_markdown

Expand Down
2 changes: 1 addition & 1 deletion loopx/cli_commands/support_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
render_heartbeat_pre_quota_markdown,
run_heartbeat_pre_quota,
)
from ..kiro_cli_goal_mode import KIRO_CLI_BIN
from ..hosts.kiro_cli import KIRO_CLI_BIN
from ..paths import default_public_scan_root
from ..registry import (
inspect_registry,
Expand Down
2 changes: 1 addition & 1 deletion loopx/cli_commands/support_control_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from typing import Any

from ..chat_server import DEFAULT_CHAT_HOST, DEFAULT_CHAT_PORT
from ..kiro_cli_goal_mode import KIRO_CLI_BIN
from ..hosts.kiro_cli import KIRO_CLI_BIN
from ..paths import default_public_scan_root
from .support_control_agent_runtime import (
ensure_agent_runtime_path,
Expand Down
2 changes: 1 addition & 1 deletion loopx/dashboard_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import webbrowser

from .cli_commands.support_control_agent_runtime import ensure_agent_runtime_path
from .kiro_cli_goal_mode import KIRO_CLI_BIN
from .hosts.kiro_cli import KIRO_CLI_BIN
from .release_manifest import release_runtime_identity


Expand Down
2 changes: 1 addition & 1 deletion loopx/host_loop_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
kiro_cli_activation,
zcode_activation,
)
from .kiro_cli_goal_mode import KIRO_CLI_AGENT_TYPE_CATALOG_ENTRY
from .hosts.kiro_cli import KIRO_CLI_AGENT_TYPE_CATALOG_ENTRY
from .control_plane.todos.contract import (
normalize_required_capabilities,
normalize_todo_claimed_by,
Expand Down
11 changes: 11 additions & 0 deletions loopx/hosts/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
"""Internal host activation projections and adapters."""

from __future__ import annotations

from importlib import resources


def read_host_asset(package: str | None, filename: str) -> str:
"""Load one packaged text asset relative to a host adapter subpackage."""
if not package:
raise RuntimeError(f"host asset package is unavailable for {filename}")
return resources.files(package).joinpath(filename).read_text(encoding="utf-8")
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ native-goal body and its blocked-state rules do not apply to Kiro.

## MCP control plane

The kiro-cli surface registers `loopx/kiro_cli_goal_mode/mcp_server.py` in
The kiro-cli surface registers `loopx/hosts/kiro_cli/mcp_server.py` in
`<KIRO_HOME>/settings/mcp.json`, which Kiro's default agent loads, so the
session that runs `/loopx` also gets the typed `should_run`, `list_todos`,
`claim_task`, `complete_task` and `review_task_vision` tools. It is the shared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
from typing import Any

# The provisioned MCP interpreter does not have LoopX installed; the package
# root is two levels above this file in both a checkout and a wheel install.
PACKAGE_PARENT = Path(__file__).resolve().parents[2]
# root is three levels above this file in both a checkout and a wheel install.
PACKAGE_PARENT = Path(__file__).resolve().parents[3]
if str(PACKAGE_PARENT) not in sys.path:
sys.path.insert(0, str(PACKAGE_PARENT))

from loopx.goal_mode_context import find_registry, resolve_goal_context # noqa: E402
from loopx.goal_mode_mcp import GoalModeMCPConfig, create_fastmcp_server # noqa: E402
from loopx.kiro_cli_goal_mode import ( # noqa: E402
from loopx.hosts.kiro_cli import ( # noqa: E402
KIRO_CLI_AGENT_TYPE,
KIRO_CLI_SESSION_ID_ENV,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Bindings are private per-session JSON files under
and use mode `0600`. OpenCode's one-shot `opencode run` process cannot own
timers after exit; recurring operation requires the visible TUI or a
persistent OpenCode server. OpenCode 2 runs a persistent goal worker instead;
see `loopx/opencode2_goal_mode/README.md`.
see `loopx/hosts/opencode2/README.md`.

Quota probes carry `--record-host-poll`, so LoopX writes a compact poll
receipt beside the goal state file and `loopx global-risks` can flag a loop
Expand Down
11 changes: 11 additions & 0 deletions loopx/hosts/opencode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from .. import read_host_asset


def plugin_source() -> str:
return read_host_asset(__package__, "loopx-goal.js")


def runtime_source() -> str:
return read_host_asset(__package__, "goal-bridge-runtime.mjs")
File renamed without changes.
7 changes: 7 additions & 0 deletions loopx/hosts/opencode2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from __future__ import annotations

from .. import read_host_asset


def worker_source() -> str:
return read_host_asset(__package__, "opencode2-goal-worker.mjs")
File renamed without changes.
11 changes: 11 additions & 0 deletions loopx/hosts/pi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from .. import read_host_asset


def extension_source() -> str:
return read_host_asset(__package__, "loopx-goal.ts")


def runtime_source() -> str:
return read_host_asset(__package__, "pi-goal-loop-runtime.mjs")
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path
from typing import Any

from ..slash_command_files import managed_marker as _managed_marker
from ...slash_command_files import managed_marker as _managed_marker
from . import extension_source as pi_extension_source
from . import runtime_source as pi_runtime_source

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions loopx/hosts/skill_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
live together here instead of each growing `host_loop_activation.py`, whose
module budget is already spent on the agent-type catalog and identity rules.

Each host's facts stay in its own `*_goal_mode` package; this module only
binds them to the shared packet shape.
Each host's facts stay in its host adapter module (`loopx/hosts/*` or remaining
`*_goal_mode` packages); this module only binds them to the shared packet shape.
"""

from __future__ import annotations
Expand All @@ -22,7 +22,7 @@
agy_activation_extras,
antigravity_app_activation_extras,
)
from ..kiro_cli_goal_mode import (
from .kiro_cli import (
KIRO_CLI_INSTALL_SURFACE,
SKILLS_ROOT_LABEL as KIRO_CLI_SKILLS_ROOT_LABEL,
kiro_cli_activation_extras,
Expand Down
Loading
Loading