Lifecycle

Create, update, and delete agents and resources.

create conversation

Create a new conversation for an agent. Conversations provide isolated message histories while sharing the agent's archival memory, blocks, and tools. For declarative workflows, you can also declare conversations in your fleet YAML — they are created automatically on `lettactl apply` and matched by summary on re-apply.

lettactl create conversation <agent>

Examples

Create conversation
lettactl create conversation my-agent
Declarative (YAML)
# In fleet.yaml:
# conversations:
#   - summary: "Ticket #101"
#   - summary: "Ticket #102"
lettactl apply -f fleet.yaml

Notes

Conversations can also be declared in YAML under agents[].conversations with a required `summary` field.

YAML conversations are idempotent — re-applying won't create duplicates (matched by summary).

Use `isolated_blocks` to create per-conversation copies of named memory blocks.

create agent

Create a new agent directly from CLI flags without a YAML file.

lettactl create agent <name> [options]

Options

FlagTypeDescription
--descriptionstringAgent description
--modelstringLLM model identifier
--systemstringSystem prompt text
--context-windownumberContext window size in tokens
--embeddingstringEmbedding model
--timezonestringAgent timezone
--tagsstringComma-separated tags
--toolsstringComma-separated tool names
--memory-blocksstringMemory block definitions

Examples

Quick agent
lettactl create agent my-agent \
  --description 'Test agent' \
  --model 'openai/gpt-4o' \
  --system 'You are a helpful assistant.'

update agent

Modify an existing agent's configuration.

lettactl update agent <name> [options]

Options

FlagTypeDescription
--namestringNew name
--descriptionstringNew description
--modelstringNew LLM model
--systemstringNew system prompt
--context-windownumberNew context window size
--add-toolstringAdd a tool
--remove-toolstringRemove a tool
--tagsstringReplace tags

Examples

Update model
lettactl update agent my-agent --model 'openai/gpt-4o-mini'
Add tool
lettactl update agent my-agent --add-tool archival_memory_search

delete

Delete a specific resource by name.

lettactl delete <resource> <name> [options]

Options

FlagTypeDescription
--forcebooleanSkip confirmation prompt

Examples

Delete agent
lettactl delete agent my-agent
Force delete
lettactl delete agent my-agent --force

Notes

Deleting an agent cascades to all its conversations.

delete-all

Bulk delete resources matching a pattern. Preserves shared resources used by other agents.

lettactl delete-all <resource> [options]

Options

FlagTypeDescription
--patternstringRegex pattern to match resource names
--forcebooleanActually delete (required to confirm)

Examples

Preview deletion
lettactl delete-all agents --pattern 'test-.*'
Execute deletion
lettactl delete-all agents --pattern 'test-.*' --force

cleanup

Remove orphaned resources (blocks, folders, archives) not attached to any agent. Dry-run by default.

lettactl cleanup <resource> [options]

Options

FlagTypeDescription
--forcebooleanActually delete orphans (default is dry-run)

Examples

Preview orphans
lettactl cleanup all
Delete orphaned blocks
lettactl cleanup blocks --force

Notes

Resources: blocks, folders, archives, all