acquiring-skills
Discover and install skills from Hermes, ClawHub, GitHub, and other registries. Load this skill whenever a user asks for a capability you don't already have —…
Create and manage shared memory — git-tracked repositories hosted on Letta Cloud that are attached to one or more agents and projected into their filesystems. Use when the user wants to share memory or files across agents, store context outside your own MemFS, attach or detach
$ npx -y skills add letta-ai/letta-code --skill managing-shared-memory --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/managing-shared-memoryContext preview
The summary Claude sees to decide when to auto-load this skill.
Create and manage shared memory — git-tracked repositories hosted on Letta Cloud that are attached to one or more agents and projected into their filesystems. Use when the user wants to share memory or files across agents, store context outside your own MemFS, attach or detach
name: managing-shared-memory description: Create and manage shared memory — git-tracked repositories hosted on Letta Cloud that are attached to one or more agents and projected into their filesystems. Use when the user wants to share memory or files across agents, store context outside your own MemFS, attach or detach shared memory, or inspect its file history.
Shared memory is memory created independently of any single agent, designed to be dynamically attached to or detached from multiple agents. Each unit of shared memory is a **shared memory repository**: a git repository hosted on Letta Cloud, owned by your organization rather than by one agent, reachable from any environment (sandboxes, remote machines, sessions).
Shared memory works like your MemFS: attached repositories are real git checkouts on disk, and you read, edit, and commit with ordinary git. The harness pushes clean committed changes after each turn. Each repository has its own projection root (next to your memory directory, not inside it) and its own remote origin, and other agents may be writing to it too.
Create a shared memory repository when:
Attached shared memory is mounted next to your memory directory, one git checkout per repository:
ls "$MEMORY_DIR/../" # attached repositories appear here by name cat "$MEMORY_DIR/../<repo-name>/<path>" # read like any file
Edit files with your normal file tools, then commit with git. The mount's origin and credentials are already configured:
cd "$MEMORY_DIR/../<repo-name>" git add <files> git commit -m "describe the change"
The harness pushes clean commits from read/write attached repositories after the turn. If a push collides with another agent's work, it pulls with rebase and retries once. Dirty files and conflicts are not changed automatically; the harness adds a reminder to the next turn instead.
To pick up other agents' changes:
git -C "$MEMORY_DIR/../<repo-name>" pull --rebase
If a push is rejected (another agent pushed first), `git pull --rebase` then push again.
History is ordinary git history:
git -C "$MEMORY_DIR/../<repo-name>" log --oneline -- <path>
Use the `letta shared-memory` subcommand. It uses your harness auth (works even when `LETTA_API_KEY` is not in the shell env) and inherits the agent id from `AGENT_ID`, so `--agent` is only needed when targeting another agent.
# List org repositories (marks which are attached to you) letta shared-memory list # Create a repository letta shared-memory create --name shared-notes # Attach to yourself: attaches via the API, clones the local mount at # $MEMORY_DIR/../shared-notes, and recompiles the system prompt projection letta shared-memory attach shared-notes # Attach to another agent (its mount materializes in that agent's environments) letta shared-memory attach shared-notes --agent agent-... # Detach (leaves the local mount directory in place) letta shared-memory detach shared-notes # Repair/refresh mounts: clone or pull every attached repository. Use this when # the system prompt references a repository that is missing on disk (e.g. after # it was attached from another surface while this session was running). letta shared-memory sync # Commit history via the API (works even without a local mount) letta shared-memory history shared-notes --path docs/plan.md
Letta Code is a stateful agent harness for creating agents that are more like people than tools. Letta Code agents have memory, identity, and a sense of experience over time.
Repo: letta-ai/letta-code
Discover and install skills from Hermes, ClawHub, GitHub, and other registries. Load this skill whenever a user asks for a capability you don't already have —…
Control a real browser to navigate pages, click, type, fill forms, inspect rendered UI, take screenshots, or record video. Load only when the user asks to open…
Investigate agent behavior and audit memory structure, organization, and skills; make evidence-backed repairs.
Creates and edits trusted local Letta Code mods, including tools, slash commands, local-only model providers, lifecycle/turn events, scoped conversation…
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Letta Code's…
Creates, edits, and enables Letta Code mod-provided slash commands. Use when the user asks to add a custom /command, slash command, command shortcut, scoped…