Skip to content
Taku Docs

Version 1.4.0 (current)

Agent runtime

The current Codex device path and the verified limits of runtime replacement.

Codex is the current on-device Agent runtime and owns conversations, tools, approvals, and interruption. ChatGPT and Magpie provide two model connection paths. Adding Magpie does not replace Codex or create another task queue.

Use this page when diagnosing the executor or designing a replacement runtime. Writing a first SDK tool requires neither a model connection nor a replacement runtime. For a UI task, start with your first task.

Execution path

ComponentInput and output
System task serviceReceive local requests and coordinate the existing task lifecycle
One Codex App ServerManage native thread, turn, and item records and initiate tool calls
Android commands or app interfacesPerform actions and return actual business state
Home and assistant drawerRead native history and results to display a rebuildable UI projection

The capability SDK itself does not depend on Codex and can be called directly by trusted programs.

Model gateway verification scope

The on-phone Magpie gateway sends model requests to online APIs. Follow Use DeepSeek inside Taku OS for setup and a first call. Verified on the emulator: real DeepSeek conversations, the device_info tool, protocol tests, and returning from the management browser to the current conversation with its draft restored.

These results cover the tested connection and navigation paths only. They do not imply offline inference or universal provider support. See Current progress for version, physical-device, and complete-ROM boundaries.

Inspect the runtime without changing it

Requires the system source

The second command below runs from the taku-os repository root. Clone taku-os first.

Taku OS includes the Codex CLI at /system_ext/bin/codex. On a device running Taku OS, choose an ADB target listed as device and replace emulator-5582. The second command also requires Node.js 20+ in the system repository root, UID 0 or 1000, and task-directory access:

adb -s emulator-5582 shell /system_ext/bin/codex --version
node sdk/cli/taku.mjs call tasks.status --transport adb --serial emulator-5582

The first command returns the installed program version; the second returns current task metadata. Task readback may be denied because of UID or file permissions. These checks do not log in automatically or read or output the model authentication cache.

Provisioning and runtime replacement

The Codex runtime is built into the system at /system_ext/bin/codex, so a device running Taku OS needs no separate installation.

A replacement Agent runtime must accept the existing taskId, prompt, working directory, and capability client, then return results and failures to the same task lifecycle. Reuse the system task service rather than adding per-provider queues or background daemons that disagree with Home.

The Models and runtimes directory distinguishes model services from replacement runtimes. Separate runtimes such as Claude Code, OpenClaw, Hermes, and Kimi remain ecosystem references or adaptation research.

Verify execution results

Exit codes, final results, and task completion should agree. Unavailable network inference should produce a real failure. Authentication files are not distributable system source.

Continue with Tasks and sessions or System commands. Interface fields follow the generated reference.

Research preview · Current availability

Documentation retrieval

Search the published documentation for excerpts and citations. This uses full-text retrieval, not LLM-generated answers.

Every result links to the original article. Read research ideas separately from verified capabilities.

Help and troubleshooting →
Was this article helpful?
Report an issue or give feedback

Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.

Built with Fumadocs

On this page