Repository navigation
docs: rewrite the READMEs around the architecture - #331
Merged
Merged
Conversation
The root README and README.zh-CN now start with the concepts a newcomer needs: octos, the shell, the system agent and app agents, lanes, native and script apps, the Card runner, the peer link. They then explain how the system agent and an app agent talk, how a person talks to an app's agent, how each kind of app uses its agent (with the minimal Splash example), what an app must give its agent (declaration, tools and their executors, data, memory, glance, events), and which Rust design choices keep it light on memory and CPU. Stale facts are fixed. The native apps' agents are listed: the Terminal, Calculator, Clock, Notes, Reminders and Weather. So are their own_tools and system_tools, and the native apps that open the peer link with OctosPeer. A native app's agent is live only while the app is open, and a script app's agent is prepared at startup. - docs/architecture.md and its Chinese version: the same stale statements (native-apps table, who gets a peer, the peer-link rows and diagram edge, what the AI bus is still used for). - docs/images/agents-processes.png: the native-modules box and its edge label, redrawn in place. - desktop/README and its Chinese version: the glance panel's UI table and OCTOSENSE_REDUCE_MOTION move here from the root README. - The root README drops inline PR numbers, dated history and UI minutiae, and escapes <app> outside code so GitHub no longer strips it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 5, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This rewrites the root
README.mdandREADME.zh-CN.mdso a newcomer learns the architecture before the setup. The old README was accurate in places, but it read like a changelog: inline PR numbers, dated history and UI minutiae. Several of its statements went stale after #309, #329 and #330.New sections (both languages)
Key concepts defines thirteen terms in a sentence or two each: octos, OUP, the shell, the system agent, app agents, lanes, native and script apps (with Splash), the Card runner, host services, the peer link, glance cards (with L0) and the approval router.
How the system agent and an app agent talk gives the
peer_send_input→peer/input→ shell-started turn → blackboard /peer_gatherloop in four steps.How an app uses its agent has one table covering:
host.request("octos.*");OctosPeerplusserve_tools;OctosAppService.It ends with the minimal Splash example from Design Flow's AI-SERVICES guide.
What an app gives its agent lists:
tools.jsonand what actually executes each tool;agent_workspace: "none", andfiles.*);glance;It states plainly that a store app's agent cannot act through tools of its own yet.
Why it stays light on memory and CPU lists the Rust design choices, each checked against the code:
crates/kernel/src/router.rs);Fixed stale facts
own_tools) from what the system agent may call (system_tools). It also says a native app's agent is live only while the app is open, while a script app's agent is prepared at startup.OctosPeer. I verified this in OctoSense-org/makepad at the pinnedc155f61d(apps/*/src/view.rs) and in the Terminal's stacked runtime patch.docs/architecture.mdanddocs/architecture.zh-CN.mdhad the same stale statements, now fixed:docs/images/agents-processes.png: the native-modules box said only "App Hub, Rinx" and its arrow said onlyOctosAppService. I redrew those two labels in place, and the rest of the image is unchanged. They now read "App Hub, Rinx, Notes, Clock, …" and "OctosPeer, OctosAppService". The Mermaid text versions match.<app>written outside code was stripped by GitHub as an HTML tag, so "Ask " rendered as "Ask ". It is now escaped.Moved or trimmed
OCTOSENSE_REDUCE_MOTIONmoved to a new The glance panel section indesktop/README.mdanddesktop/README.zh-CN.md. Each also gets a row in its environment table.<details>, becausedesktop/README.md,phone/README.mdandAGENTS.mdpoint there.Every heading that other docs link to is kept:
how-it-fits-together,the-system-agent-and-the-app-agents,talking-to-an-apps-agent-yourself,in-card-chat,what-it-depends-on,set-up.整体如何运作,直接与应用的-agent-对话,卡内对话,依赖,环境准备.Verification
AI-SERVICES.mdandAI-SERVICES.zh-CN.md, and every inbound anchor from other docs in this repository.POST /markdown, gfm) with 8 tables, 22 headings and 5<details>blocks each, and no stray tags.python3 -m unittest discover -s rom/tests -p test_no_local_paths.py: OK.git diff --check: clean.🤖 Generated with Claude Code