Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(AGENTS.md): document tool list persistence in session transcripts

Steven Enamakel9f68947c4b85
diff --git a/AGENTS.md b/AGENTS.md
index 0610ccc7a7..e35760f523 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -355,6 +355,20 @@ seed history by hand, or pick a transcript by recency.
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.
+- **So is the tool list it was sent.** Every turn records its tool
+ declarations in the transcript (a `{"kind":"tools"}` record, written only
+ when they change); resume restores them, the prefix, and the committed-turn
+ count. The host never shrinks a thread's tools because a cache went cold:
+ `session_host/recorded_tools.rs` rebuilds recorded Composio actions as
+ deferred executors, and the prelude fetches integrations on the first turn
+ of every session instance, not only on a brand-new thread.
+- **So is the tool list it was sent.** Every turn records its tool
+ declarations in the transcript (a `{"kind":"tools"}` record, written only
+ when they change); resume restores them, the prefix, and the committed-turn
+ count. The host never shrinks a thread's tools because a cache went cold:
+ `session_host/recorded_tools.rs` rebuilds recorded Composio actions as
+ deferred executors, and the prelude fetches integrations on the first turn
+ of every session instance, not only on a brand-new 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.