Skip to content

feat(headless): add agent-free ephemeral conversations - #3817

Merged
sarahwooders merged 8 commits into
mainfrom
letta/ephemeral-headless-agent-97c5e8f5
Aug 16, 2026
Merged

feat(headless): add agent-free ephemeral conversations#3817
sarahwooders merged 8 commits into
mainfrom
letta/ephemeral-headless-agent-97c5e8f5

Conversation

@letta-integration

@letta-integration letta-integration Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add --ephemeral as a direct one-shot headless mode with no public agent, memory blocks, MemFS repository, tags, or persisted session
  • use POST /v1/conversations/ephemeral on Letta Cloud, producing a persisted agent-free conversation with agent_id = null
  • support saved Letta Cloud authentication instead of requiring a separate LETTA_API_KEY environment variable
  • support local Letta Code through an isolated temporary backend state store, preserving the configured local model/provider runtime without writing agents, conversations, or MemFS data to the user local store
  • require direct one-shot execution and reject incompatible agent-, memory-, resume-, bidirectional-, and remote-environment startup modes
  • return agent_id: null in JSON output for both Cloud and local runs
  • cover saved-auth Cloud and fully local execution through real CLI integration tests using openai/gpt-5.6-luna

Cloud validation returned EPHEMERAL_CLOUD_OK with agent_id: null. Local validation used the deterministic local executor, returned a successful result with agent_id: null, and left the configured persistent local store empty. bun run check and 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

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
letta-integration Bot force-pushed the letta/ephemeral-headless-agent-97c5e8f5 branch from b4b16fc to f10cf11 Compare August 12, 2026 23:44
@letta-integration letta-integration Bot changed the title feat(headless): add ephemeral agent mode feat(headless): add agent-free ephemeral conversations Aug 12, 2026
letta-integration Bot and others added 5 commits August 12, 2026 23:46
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>
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>

@amelia-letta amelia-letta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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>
@sarahwooders
sarahwooders merged commit f5f6238 into main Aug 16, 2026
21 checks passed
@sarahwooders
sarahwooders deleted the letta/ephemeral-headless-agent-97c5e8f5 branch August 16, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Headless: an --ephemeral mode that runs a prompt without persisting the agent

2 participants