-
Notifications
You must be signed in to change notification settings - Fork 3
docs: rewrite the developer docs around the post-OpenHuman architecture #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bcd52a4
ed72507
6ed5f47
d01b2fd
d83eb65
c98b1df
cc98887
42a3e2b
880d946
da98061
2c6b499
57e3cfa
a445d25
a292805
b1563b3
c1fb033
8174a4b
7457a91
9a58beb
58dea7e
48f7ed7
9571b0c
1c9b3b2
8c623ee
4732848
92ef3bb
a62911d
bb72713
fc19f0a
8038df7
195a674
5c041c0
05f9e26
d9da514
cc21759
ae1f078
cbb4121
c88cf37
0cee649
c0805ef
11c5b82
d56699a
151fa06
52c3b9c
7a16ebc
6ec5ab6
479bdc2
1eca6bd
36978f1
c504792
6fda96f
357a70d
7079fbb
8535514
5e1b887
6d25dd0
ac1b722
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,8 @@ that CLI: | |
| | Codex | ACP over stdio | | ||
| | `codex-server` | JSON-RPC over stdio to a shared, long-lived `codex app-server` | | ||
| | OpenCode | ACP over stdio | | ||
| | OpenHuman | In-process: no binary spawned, no transport. The wire value is `HarnessProvider::Openhuman`; the agent turn runs inside the `medulla` process on the vendored `tinyagents` crate with Medulla's own tools (`src/sdk/src/daemon/providers/local/mod.rs`). Never auto-selected by provider detection — a node reaches it only by naming it. | | ||
| | Shell | None: a plain interactive shell (`bash`, `zsh`, whatever `$SHELL` names), not a coding agent. Never detected as an available provider and never dispatchable; it exists so an operator can open a terminal beside their agents in the same pane, host, and working directory. | | ||
|
Comment on lines
+49
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Define The opening definition still says 🤖 Prompt for AI Agents |
||
|
|
||
| `codex-server` is a **flavor** of Codex rather than a separate harness type: it | ||
| authenticates, bills, and configures as Codex and differs only in that one | ||
|
|
@@ -97,6 +99,13 @@ wants work done, the **hub** delivers a `TaskRequest` (carrying a `task_id`, | |
| **worker** and collects the `TaskOutcome`. It is the outbound half of the | ||
| daemon's task loop. | ||
|
|
||
| The hub also carries the **workflow plane** (`src/sdk/src/hub/plane/`): the wire | ||
| contract with the Medulla orchestration backend for saved workflow graphs — | ||
| Socket.IO shapes and `medulla:*` event names (`payloads.rs`) — and the | ||
| store-side `WorkflowBridge` trait (`bridge.rs`) an embedding host installs to | ||
| answer them. It used to be re-exported from the embedded OpenHuman core; with | ||
| that core removed, Medulla is the only host left that speaks it. | ||
|
|
||
| ## Cycle | ||
|
|
||
| One orchestrator turn: **user input → reasoning → tool calls → reply**. A cycle | ||
|
|
@@ -220,10 +229,15 @@ with `medulla init` and registered with `medulla workspace add`. | |
| ## Provider | ||
|
|
||
| A coding-assistant CLI: the same axis as an agent's **harness** type, seen from | ||
| the process end. The three supported providers are `claude` (Claude Code), | ||
| the process end. The three coding-CLI providers are `claude` (Claude Code), | ||
| `codex` (OpenAI Codex), and `opencode`. The daemon spawns the CLI as a subprocess | ||
| and communicates over ACP or legacy JSONL. | ||
|
|
||
| Two more providers sit outside that coding-CLI set: `openhuman`, the in-process | ||
| harness that runs an agent turn inside the `medulla` process instead of | ||
| spawning one (see **Harness** above), and `shell`, a plain interactive shell | ||
| that is never dispatchable or auto-detected. | ||
|
|
||
| A provider is chosen together with a **transport**, and the pair is named by one | ||
| word, a **flavor**. `codex` is Codex on its CLI; `codex-server` is the same | ||
| provider on a shared `codex app-server` process. Anything that follows from | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This newly added implementation reference points at
src/sdk/...as though that tree existed in this public repository, so readers cannot follow it; the same pattern was added forhub/plane, the E2E examples, and several paths indocs/vendoring.md. Replace these references with canonicalhttps://github.com/tinyhumansai/medulla-src/tree/main/src/...links as required for source-tree references.AGENTS.md reference: AGENTS.md:L34-L37
Useful? React with 👍 / 👎.