Skip to content
Taku Docs

Version 1.4.0 (current)

How a task executes

Follow an Android version query through the task queue, background, model, tools and result verification.

For a request such as “read the current Android version,” the Harness lets a model use real tools with appropriate background and returns results to the existing task and conversation. The following explains responsibilities. To perform it, the device needs the components and a working model connection; see Your first task.

Current image and memory entry points

An explicit screen suggestion sends the image directly to the image model bound to the screen scene; automatic code first asks the decision model in the jev scene to assess that image. Both scenes are bound to model groups in Taku AI. Neither uses OCR or text preprocessing. Accepting a suggestion creates one system task in a fresh native conversation. A legacy Memory suggestion instead carries a record ID for on-demand reads, without a screen image or old draft. Neither adds a new execution queue.

From input to completion

Submit a bounded goal

Enter a read-only request in Home or the assistant. The system task service coordinates it through the existing lifecycle while the interface shows queue and running states. Keeping this scheduling entry point avoids a separate queue in a tool or model gateway.

Prepare and confirm this turn's background

Taku Harness assembles stable background for a new conversation. Existing conversations retain their initial background and receive changes before a subsequent turn when needed. Context delivery must be confirmed before the model starts. An active turn uses its confirmed snapshot, with later settings changes reserved for subsequent turns.

Codex calls the selected model

The same Codex App Server manages native conversations and turns. With a Magpie connection, requests pass through the on-device gateway to the configured online model service; ChatGPT uses its corresponding connection. Magpie routes model requests while tools and conversations remain in the native execution system.

A tool queries Android and returns

The model requests an existing read-only device tool or command. The tool executes in the actual Android environment and returns a version value or explicit error. A task may include multiple model/tool exchanges. Background instructions and model text cannot substitute for this step.

Verify the result and finish

Codex preserves native execution items, the system task service manages the terminal task state, and the interface shows the result. Check that actual query output matches the answer. Harness links its managed context with native execution identifiers so the background version can later be traced.

Decision models and hints

A decision model judges before any task starts: this page → on-phone Magpie → decision model → hint. Only after you accept does the original system task service and Codex Agent receive the original screenshot. This adds no second queue and does not replace the main model connection.

Verified on the emulator with real Jev: no task exists before you accept, duplicate triggers add none, exactly one read-only task completes afterward, and the main Agent keeps its connection. See Decision models and Jev for setup and scope. Physical devices, complete ROMs and the physical power button are not yet verified.

Which operations use a model

PathModel required?Example
Request a task from the phone AgentA working connection is requiredAsk the model to read and explain the version
Call an implemented SDK method directlyDoes not depend on CodexUse system.info to read device identity and version
Inspect Harness background in the interfaceReading local records does not mean making a model requestExpand environment modules and receipts

The Agent Harness describes task execution, not a requirement to route every system action through a model. Developers can still call trusted tools directly; see Your first device tool.

Interpreting failures

If background delivery is unconfirmed, inspect the pending state before repeating an injection. If the connection fails, check networking and the selected model's authentication. If a tool reports a permission error, investigate its actual caller identity. An answer without a real query record also does not establish successful device reading.

Stopping uses the existing task and Codex interruption path. Receipt-recording errors and model execution failures are different conditions; see Inspect and troubleshoot. Cancellation, timeouts and process cleanup are covered by Task lifecycle.

Next: Understand background updates, storage and recovery.

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