feat(headless): add agent-free ephemeral conversations - #3817
Merged
Conversation
Create explicit temporary conversations in Cloud instead of creating disposable agents, and eagerly delete them after one-shot headless runs while preserving the existing output envelope. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-d54c06b4-452d-4749-a088-2ab9094b362a). Resume conversation with `letta --conv conv-d54c06b4-452d-4749-a088-2ab9094b362a` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com> Co-Authored-By: Letta Code <noreply@letta.com>
letta-integration
Bot
force-pushed
the
letta/ephemeral-headless-agent-97c5e8f5
branch
from
August 12, 2026 23:44
b4b16fc to
f10cf11
Compare
Detached conversations have no agent metadata, including tags. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-d54c06b4-452d-4749-a088-2ab9094b362a). Resume conversation with `letta --conv conv-d54c06b4-452d-4749-a088-2ab9094b362a` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com> Co-Authored-By: Letta Code <noreply@letta.com>
Remove client-side deletion so agent-free conversations remain persisted after one-shot runs. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-d54c06b4-452d-4749-a088-2ab9094b362a). Resume conversation with `letta --conv conv-d54c06b4-452d-4749-a088-2ab9094b362a` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com> Co-Authored-By: Letta Code <noreply@letta.com>
Use an isolated temporary local state store so local one-shot runs create no persistent agent, conversation, or MemFS state while Cloud continues using the agent-free conversation endpoint. Merge the latest main branch before updating the existing PR. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-3a49dcaf-438a-4a88-b95a-9aea9fbbc76f). Resume conversation with `letta --conv conv-3a49dcaf-438a-4a88-b95a-9aea9fbbc76f` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Reuse saved Cloud authentication for ephemeral headless sessions and exercise both Cloud and isolated local execution through the real CLI. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-0b449d7b-185b-4e55-a1b0-632b09398c86). Resume conversation with `letta --conv conv-0b449d7b-185b-4e55-a1b0-632b09398c86` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com>
Bring the draft branch up to date before validating and updating PR #3817. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-0b449d7b-185b-4e55-a1b0-632b09398c86). Resume conversation with `letta --conv conv-0b449d7b-185b-4e55-a1b0-632b09398c86` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com>
sarahwooders
marked this pull request as ready for review
August 16, 2026 22:50
sarahwooders
requested review from
4shub,
carenthomas,
christinatong01,
cpacker,
devanshrj,
jnjpng,
kl2806 and
sarahwooders
as code owners
August 16, 2026 22:50
Keep agent-free one-shot conversations isolated from client tools and skills so default-model runs cannot enter approval continuation loops. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-0b449d7b-185b-4e55-a1b0-632b09398c86). Resume conversation with `letta --conv conv-0b449d7b-185b-4e55-a1b0-632b09398c86` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com>
Ephemeral conversations should omit persistent agent state, not the normal Letta Code client tools and skills. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-0b449d7b-185b-4e55-a1b0-632b09398c86). Resume conversation with `letta --conv conv-0b449d7b-185b-4e55-a1b0-632b09398c86` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Bob <agent-57231da8-42f3-4523-b190-66c3eda21057@letta.com>
2 tasks
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.
Summary
--ephemeralas a direct one-shot headless mode with no public agent, memory blocks, MemFS repository, tags, or persisted sessionPOST /v1/conversations/ephemeralon Letta Cloud, producing a persisted agent-free conversation withagent_id = nullLETTA_API_KEYenvironment variableagent_id: nullin JSON output for both Cloud and local runsopenai/gpt-5.6-lunaCloud validation returned
EPHEMERAL_CLOUD_OKwithagent_id: null. Local validation used the deterministic local executor, returned a successful result withagent_id: null, and left the configured persistent local store empty.bun run checkand the focused ephemeral/CLI tests pass.The Cloud endpoint is implemented in https://github.com/letta-ai/letta-cloud/pull/14371. API-key creator authorization is fixed in https://github.com/letta-ai/letta-cloud/pull/14557.
Closes #3807
👾 Generated with Letta Code