letta-ai/letta-code is an agent harness for building assistants that retain memory, identity, and experience across interactions instead of treating each task as isolated. Developers use it through local, desktop, browser, or messaging interfaces for interactive or continuously running agents, and its catalogue entries configure the agents' skills, instructions, rules, and behavior.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add letta-ai/letta-code --skill self-configurationgit clone --depth 1 https://github.com/letta-ai/letta-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/letta-ai/letta-code/self-configuration)<a href="https://agentmods.dev/skills/letta-ai/letta-code/self-configuration"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/self-configuration/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/letta-ai/letta-code/self-configuration"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/self-configuration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 10 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 76 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 79 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 133 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 139 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 150 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 164 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 170 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 192 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 210 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 224 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.06361 |
| Opus 5.5 | $0.00036 | $0.02544 |
| Sonnet 5.5 | $0.00018 | $0.01272 |
| Haiku 4.5 | $0.00009 | $0.00636 |
Grade C, and why
self-configuration scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
"deny": ["Bash(rm -rf:*)"], Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
These helper scripts reduce accidental harm. They are not a security boundary against an agent with unrestricted Bash, raw curl/SDK access, API credentials, or filesystem access. `LETTA_API_KEY` and the installed CLI may How it starts
The opening of the file, as written. The whole thing — 463 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Self-Configuration
Use this skill when the user asks you to change yourself or the Letta Code runtime around you.
The important part is choosing the right layer. Do not smear a preference into deterministic config, and do not bury a deterministic safety rule in prose memory.
First choose the layer
| Layer | Use it for | How to change it |
|---|---|---|
| Memory and identity | Facts worth retaining, style preferences, persona changes, project knowledge, reusable skills | Edit $MEMORY_DIR files and sync the memory repo |
| Server agent fields | Agent default model (only on explicit request), context limit, system prompt, compaction, agent name, description | Patch /v1/agents/{agent_id} |
| Server conversation fields | Model/context changes for the current conversation (the normal target) | Patch /v1/conversations/{conversation_id} |
| Local settings | Permissions, environment variables, UI/runtime preferences, pinned agents, toolset overrides, reflection cadence | Edit $LETTA_CONFIG_DIR/settings.json when configured (otherwise ~/.letta/settings.json), ./.letta/settings.json, or ./.letta/settings.local.json |
| Mods | New deterministic tools, slash commands, providers, statusline behavior, or lightweight UI | Load creating-mods, customizing-commands, or customizing-statusline |
| Skills | Reusable procedural knowledge or bundled scripts | Load creating-skills or acquiring-skills |
| Channels | Slack/Discord/Telegram/WhatsApp/Signal accounts, pairing, routing, listener state | Use letta channels or channel commands |
| Schedules | Reminders and recurring prompts | Load scheduling-tasks and use letta cron |
| Agent variables | Plain, readable $NAME values for shell commands |
Use letta variable (or /variable in a session) |
| Agent secrets | Per-agent $NAME credential values for shell commands |
Use letta secret (or /secret in a session) |
Decision rule: if the model should remember and reason about it, use memory. If the runtime must enforce it or route it before the model decides anything, use settings, API fields, mods, channels, or schedules.
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- LICENSE 1.0 KB
- references/api-patch-examples.md 4.9 KB
- references/compaction-prompt-patterns.md 8.1 KB
- references/model-settings.md 2.1 KB
- scripts/add_permission.py 7.1 KB runs code
- scripts/show_config.py 12 KB runs code
- scripts/update-agent-settings.ts 12 KB runs code
- scripts/update-compaction-prompt.ts 6.7 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago Changed · +2 lines 034a84a20734
- 18d ago Changed · +13 lines 1fd16076e7f4
- 1mo ago Changed 25ba05cbbf34
- 1mo ago Changed · -6 lines 67ff3085b3d1
- 2mo ago Changed · -18 lines 63feb0cbed44
- 2mo ago Changed · -5 lines 42bcd7f92b0e
- 2mo ago Changed d6cefff9244f
- 2mo ago Changed · +10 lines · +12 tokens per session fa19c1893c49
- 2mo ago Changed 5ba5e0124b83
- 2mo ago First seen · 467 lines · 78 tokens per session scan C 1e3c2494e1c7
self-configuration is a skill published in the GitHub repository letta-ai/letta-code (3,935 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 6,361 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
self-configuration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| self-configurationletta-ai/letta-code | Skill | 3.9k | today | Apache-2.0 | C | 90 | Claude Code, Codex |
| memory-systembojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 95 | Claude Code, Codex |
| memory-recallzilliztech/memsearch | Skill | 3.0k | 3d ago | MIT | A | 152 | Claude Code |
| memanto-companionmoorcheh-ai/memanto | Skill | 2.4k | 2d ago | Apache-2.0 | A | 72 | Claude Code |
| openloreaakarim/OpenLore | Skill | 2.0k | 8d ago | Apache-2.0 | A | 42 | Claude Code, Codex |
| mnemonmnemon-dev/mnemon | Skill | 752 | 7d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| mnemonmnemon-dev/mnemon | Skill | 752 | 7d ago | Apache-2.0 | A | 30 | Claude Code, Codex |