The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(AGENTS.md): reorder session documentation to appear after the vendoring note
Steven Enamakel69f598377108
diff --git a/AGENTS.md b/AGENTS.mdindex baf7ad9450..8dc05c1734 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -274,32 +274,6 @@ replay, session identity, and the agent loop. `tinytools` owns the shared`Tool` trait and tool types. OpenHuman owns execution policy, approvals,sandboxing, timeouts, and progress events.-### Sessions--A conversation's durable identity is `tinyagents_session::transcript::SessionRef`,-derived from the thread id and the agent id. It maps to a transcript stem-deterministically and **without a timestamp**, so one conversation resolves to-one file in every process and on every launch. OpenHuman binds it in-`set_thread_id` and resumes with `ResumeMode::Session`; it does not mint stems,-seed history by hand, or pick a transcript by recency.--- **The transcript is what the model sees.** Trimming it is legitimate.-- **A compaction never erases.** It seals the current generation and opens the- next (`begin_generation`), which records the sealed one as its parent. The- sealed file stays on disk byte-for-byte, so the whole conversation is- recoverable by walking `session_chain` even though the model reads only the- head.-- **A resumed session's prompt is frozen.** It reuses its persisted system- messages verbatim, which is what keeps the provider's prefix cache warm- across a restart. The accepted consequence is that prompt edits, new skills- and newly connected integrations do not reach an existing thread.-- **Pre-identity conversations are adopted once**, on first resume, from the- timestamped stems they were written to (`adopt_legacy_session_transcripts`).- No legacy file is modified.-- OpenHuman's session host keeps only the product surface over this: start a- session, read it back, list its generations- (`agent/session_host/session_api.rs`).-- Use the `tinytools` copy vendored through `vendor/tinyagents/`; a second pathcreates incompatible Rust types.- Keep conversions mechanical. Policy decisions belong in OpenHuman.@@ -342,6 +316,32 @@ seed history by hand, or pick a transcript by recency.`OPENHUMAN_BACKEND_API_KEY` / `OPENHUMAN_BACKEND_SESSION_TOKEN` forheadless hosts. Do not add backend auth endpoints back to the core.+### Sessions++A conversation's durable identity is `tinyagents_session::transcript::SessionRef`,+derived from the thread id and the agent id. It maps to a transcript stem+deterministically and **without a timestamp**, so one conversation resolves to+one file in every process and on every launch. OpenHuman binds it in+`set_thread_id` and resumes with `ResumeMode::Session`; it does not mint stems,+seed history by hand, or pick a transcript by recency.++- **The transcript is what the model sees.** Trimming it is legitimate.+- **A compaction never erases.** It seals the current generation and opens the+ next (`begin_generation`), which records the sealed one as its parent. The+ sealed file stays on disk byte-for-byte, so the whole conversation is+ recoverable by walking `session_chain` even though the model reads only the+ head.+- **A resumed session's prompt is frozen.** It reuses its persisted system+ messages verbatim, which is what keeps the provider's prefix cache warm+ across a restart. The accepted consequence is that prompt edits, new skills+ and newly connected integrations do not reach an existing thread.+- **Pre-identity conversations are adopted once**, on first resume, from the+ timestamped stems they were written to (`adopt_legacy_session_transcripts`).+ No legacy file is modified.+- OpenHuman's session host keeps only the product surface over this: start a+ session, read it back, list its generations+ (`agent/session_host/session_api.rs`).+`CoreBuilder` controls background services with `ServiceSet`, runtime domainswith `DomainSet`, and tool visibility with `ToolGroups`. These controls onlynarrow capabilities.