# Capability differences

Part of the [framework comparison](https://fzkuji.github.io/OpenProgram/docs/reference/design/framework-comparison/overview.html). Listing a capability does not approve building it.

## Missing capabilities

### Challenges to the current approach

| Capability | Mechanism | OpenProgram today | Assessment |
| --- | --- | --- | --- |
| code mode · codex | The model writes JavaScript instead of emitting tool calls; details in [Conclusions](https://fzkuji.github.io/OpenProgram/docs/reference/design/framework-comparison/overview.html#three) | Workflows become Python in advance. Model-written code during the turn is unexplored: the other form of the same approach | **Warrants a separate comparison.** Also a different tool-selection mechanism: the whole tool surface behind one exec entry |
| Training data from the harness · hermes | Batch runs over datasets; each example's visible toolset sampled from a distribution; trajectories compressed to a token budget and fed to the Atropos reinforcement-learning environment. `batch_runner.py` · `toolset_distributions.py` · `trajectory_compressor.py` · `environments/` | Tool selection is a permission question, not sampling of an example's observation space | Training pipelines are out of scope. A complete versioned trajectory format stays a candidate |

### Adoption by other users

| Capability | Mechanism | OpenProgram today | Assessment |
| --- | --- | --- | --- |
| Import from other agents · codex, openclaw | Codex: a crate of about 16 thousand lines, `external-agent-migration`, imports sessions, configuration and skills, including claude-code's, and keeps `external_agent_session_imports.json`. OpenClaw: two extensions | Completeness got attention; moving months of work from another tool did not | **Not implemented.** Reading an external skills format is not migration |
| 105-entry feature registry · codex | `features/src/lib.rs` gives each capability a stage (Stable, UnderDevelopment, Experimental, Removed, Deprecated) and `default_enabled`. One third of shipped capabilities are off by default | Capabilities are spread through the code; nothing shows what ships or sits behind experimental switches | **Not implemented** |
| Prompts and tool authorization as data · codebuddy | `product.json` swaps per deployment; see [codebuddy-code](#codebuddy) | Prompt components are Python functions, tool authorization is in `agent.json`; no replaceable profile with the full configuration | Partly applicable: the component registry is the structure, the values are not yet external |
| Relocate and share sessions · opencode | `control-plane/move-session.ts` moves a session and Git changes to another directory or worktree of the project, not another machine or an active turn. `share/share-next.ts` publishes a session at a public URL, streaming into a Durable Object and object storage; self-hosting works too | Sessions are local assets. The worker, WebSocket clients and per-session logs can support this; no product entry point exists | **Evaluate local relocation and public sharing.** Cross-worker migration needs a versioned protocol, target placement, authentication, active-turn semantics and failure recovery |

### Agent trust

| Capability | Mechanism | OpenProgram today | Assessment |
| --- | --- | --- | --- |
| Intercept deletion below the tool layer · codebuddy | `rm`, `rmdir`, `unlink` replacements on PATH and `sitecustomize.py` through PYTHONPATH redirect deletion to a trash binary, in agent subprocesses too | Covers common shell, Python and Node deletion in local agent subprocesses bound to a session or turn. Not covered: unbound cron and background jobs, Docker, SSH, absolute-path commands, direct syscalls, disabled injection | **Partially implemented.** Not a complete security boundary |
| execpolicy · codex | A small language for command allowlists, rules in `~/.codex/rules/default.rules`, separate from the OS sandbox. **guardian**: an LLM reviews approval prompts | String matching and fnmatch cannot say "the third argument must not be an absolute path". Reviewing approvals is unexplored | Defer the DSL. Evaluate a guardian: it addresses the unresolved state in `Gate.ask` |
| Sandbox capability versus default · openclaw | Docker, Podman, SSH, OpenShell backends. `mode`: `off` (default), `non-main`, `all`. Docker defaults: no network, read-only root, non-root, dropped capabilities. Its documentation says it is not a perfect boundary | A Docker backend does not imply isolation by default. Compare backend, activation scope, defaults and guarantees separately | Consider the restrictive defaults; containers are not a complete trust boundary. Acceptance checks the default mode and actual launch arguments |
| Marketplace and public Gateway · openclaw | Anyone can publish on ClawHub; malicious instruction injection has occurred. Gateway has `CVE-2026-25253` | Skills and the owner-authenticated Gateway assume one local user | Marketplace needs publisher identity, permission descriptions, scanning, takedown, install confirmation. Public exposure needs authentication, binding defaults, patch response, version upgrades |
| Measure AI-written code · codebuddy | A Git HEAD watcher attributes and reports per-file agent versus human changes | Records tokens and costs, not output attribution, which enterprises may require | Record locally before reporting. Per-turn shadow Git and project commits already hold the data |
| Trajectory export · openclaw | `src/trajectory/`: system prompt, tool definitions and every event, redacted, in a versioned format with 10 MB / 50 MB / 256 KB limits | Markdown or HTML for people, tool arguments and results truncated. No versioned package of prompts, full tool definitions, runtime events, provider artifacts, usage and cache data, runtime settings | **Partially implemented.** Complete trajectories are an unconfirmed candidate |

### Proactivity and testing

| Capability | Mechanism | OpenProgram today | Assessment |
| --- | --- | --- | --- |
| Automations and Heartbeat · openclaw | Cron, interval and one-time tasks delivering to chat channels or webhooks. Heartbeat: a proactive main-session turn every 30 minutes by default, reporting only noteworthy items | Scheduler persists one-time, recurring and monitoring tasks with signed execution, retries and recovery; runs agent prompts or controlled commands. No delivery to channels or webhooks, no default heartbeat | **Two independent scopes:** a result-delivery protocol, and a heartbeat with frequency, quiet-period and filtering rules |
| Commitment tracking · openclaw | `src/commitments/`: typed entries (agreements, deadlines, concerns, unfinished work) extracted from chat, confidence threshold 0.86, at most three proactive messages a day. Heartbeat and one-time startup actions are separate paths | Runs registered external events or Scheduler tasks; conversation does not create future actions | Would need a threshold, daily limit, revocation and false-trigger handling. Not approved |
| Dreaming · openclaw | Background promotion of entries above a score from `memory/YYYY-MM-DD.md` to `MEMORY.md`. A separate automatic pre-compaction flush saves long-term information | Nightly `reorganize()`; no scored promotion from daily notes into core memory | Keep comparing. Define thresholds, write attribution and pre-compaction failure semantics together |
| Remote device nodes · openclaw | Native macOS, iOS, watchOS, Android nodes. Mobile: sensors, calendars, notifications; Android control through accessibility services; macOS `computer.act` | Channels only exchange messages. A node protocol and a native app are separate choices | The node protocol warrants a design. Pick device capabilities by permissions, revocable authorization and platform cost |
| Scripted provider and record/replay · pi-mono | A registered simulated model emits scripted text, reasoning and tool calls with configurable chunks. HTTP and WebSocket recordings live in test fixtures | Test-only scripted provider through normal registration: text, reasoning, tool calls, errors, multi-turn, real `agent_loop` tool-result feedback | **Partially implemented.** Shipping it needs design approval |
| Switch providers within a session · pi-mono | Reasoning-block signatures and tool-call IDs are normalized so history continues. A separate extension starts a new session from a generated handoff prompt | Web and TUI switch models in one session; `models/providers/shared/transform_messages.py` normalizes messages, reasoning blocks and tool-call IDs, with tests over cross-provider history | **Implemented in one session.** A new-session handoff is not required |

## Distinctive mechanisms

Two add capability. The four domains differ mainly in naming.

| Mechanism | Definition | Closest counterpart | Result |
| --- | --- | --- | --- |
| Session DAG: branches are head pointers | Creating a node, backfilling output or metadata, deleting a node, the head, branches, title and archive are each a line in the log. One writer per log; state is folded in memory | **OpenClaw**: Control UI transcript fork, rewind, branch. **pi-mono**: `parentId`; `/tree` also summarizes abandoned branches. **opencode**: fork makes a new session. **codex**: agent graph records agent relationships | Confirmed distinction: transcript branches, a unified DAG and per-session logs together. Transcript branching alone is not unique |
| Agent method: workflows as code | Calls become code nodes under the [conditions in Conclusions](https://fzkuji.github.io/OpenProgram/docs/reference/design/framework-comparison/overview.html#three) | None direct. **pi-mono** extensions, **opencode** `tool/*.ts`, **hermes** skills register tools, but history shows only inputs and returns. Complementary: Codex code mode | Persisted internal steps can be reviewed with the conversation. Top-level manual functions branch through Retry/Edit. Restoring or replaying nested steps is not implemented |
| Four-domain tools: todo, task, agent, message | todo for plans, task for running work, agent for executors, message for communication; each tool acts only on its noun | **opencode**: `task`, `todowrite`. **hermes**: `delegate`, a board. **claude-code**: Agent, TaskCreate, TaskStop, SendMessage. **codebuddy**: TaskCreate/Get/Update/List/Stop/Output, undivided | A difference **in naming**. The substantive one is in [Agent collaboration](https://fzkuji.github.io/OpenProgram/docs/reference/design/runtime/collaboration/agent-collab-comparison.html): among eight references only OpenProgram limits subagent tools by remaining message budget; its loop prevention matches OpenClaw's |

## Four Chinese CLIs

Packages under `~/.npm-global/lib/node_modules/`, read from their `dist/` bundles.

| Project | Version | Size | Form |
| --- | --- | --- | --- |
| [`claude-code-internal`](#claude) | 1.1.9 | 388 lines, 133 KB | Launcher wrapper around unchanged `@anthropic-ai/claude-code@2.1.154` |
| [`codex-internal`](#codex) | 0.0.8 | 502 lines, 572 KB | Wrapper around `@openai/codex@0.118.0` |
| [`gemini-cli-internal`](#gemini) | 1.9.0 | 576,579 lines, 25 MB | The only source fork of the three adaptations |
| [`codebuddy-code`](#codebuddy) | 2.109.3 | 2,629 bundled lines, 21.7 MB, plus 16 MB headless | Tencent's own implementation, internally genie, on an IoC container |

### `claude-code-internal`

| Area | Change |
| --- | --- |
| Endpoint and proxy | Intranet gateway; local MITM proxy daemon on fixed port 12639 |
| Models | Allowlist fetched from the gateway; Opus and Sonnet both map to GLM-5.1 |
| Configuration | Directory moved to `~/.claude-internal`; every `ANTHROPIC_*` key is scanned out of settings files, so users cannot override it |
| Telemetry | Upstream off; intranet reporting includes the Git repository and commit |
| Authentication | Three methods, including device-code flow for CI |
| Announcements | Server-provided at startup; require acknowledgment |

### `codex-internal`

| Area | Change |
| --- | --- |
| Provider | Rewrites `config.toml` to inject and force an intranet provider |
| Upstream services | Update checks and feedback reporting off |
| Reporting | Injected request headers send open repositories, YOLO mode and session ID to the gateway |
| Restricted commands | `codex mcp add` refuses changes to administrator-managed settings; `codex app-server` exits immediately |
| Environment | Clears inherited `OPENAI_*` and `CODEX_HOME`; binds user ID and email to the subprocess |

### `gemini-cli-internal`

| Area | Change |
| --- | --- |
| Backend | New `codebuddy/` core module: a fourth ContentGenerator beside Google |
| Authentication | Two added variants, intranet GitLab OAuth and intranet API key. Google methods remain, so one binary works inside and outside the intranet |
| Reporting | Repository remotes and submodule paths go to the gateway |
| Sandbox | API keys are passed into container environments |

### `codebuddy-code`

| Area | Design |
| --- | --- |
| Tools | 44, many named like claude-code (Agent, Skill, ToolSearch, EnterWorktree, SendMessage, TeamCreate), plus LSP, ComputerUse, CronCreate, Workflow and WeChatReply/WeComReply |
| Prompts and authorization | Data, not code: a 326 KB `product.json` holds 109 Nunjucks templates, per-agent tool allowlists, model allowlists and command tables |
| Deployment | SaaS, intranet, zero-trust, self-hosted and cloud-hosted share one codebase; only that file changes |
| Sessions | `~/.codebuddy/projects/<cwd-slot>/<uuid>.jsonl` |
| Sandbox | Native binary with bubblewrap and seatbelt fallbacks |
| Remote control | A PWA, "CodeBuddy Code Remote Control", drives local sessions from a mobile browser |
| Headless | A separate webpack artifact, not a CLI flag |
| Enterprise policy | The organization server decides whether users may add custom models or upload skills; decisions are cached locally and fail open |
| Compliance | Content policy opens the system prompt; the client intercepts before model execution |
