customizing-commands

customizing-commands is a skill for Claude Code, Codex from letta-ai/letta-code. It costs 49 tokens per session (874 once invoked), scanned A, original, Apache-2.0.

A guide for creating and changing custom slash commands in Letta Code, such as commands typed with a leading “/”.

In plain words
What is it for?
Adding commands that send prompts, show temporary results, start reusable agent workflows, or open a progress panel while work runs.
Why use it?
It helps decide whether a slash command fits the job and keeps reusable workflows separate from the small command that starts them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Adding commands that send prompts, show temporary results, start reusable agent workflows, or open a progress panel while work runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/letta-ai/letta-code/customizing-commands
About the project

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.

letta-ai/letta-code · 3,935 stars · on GitHub · letta.com

Install

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.

Any agent
npx skills add letta-ai/letta-code --skill customizing-commands
Clone the repo
git clone --depth 1 https://github.com/letta-ai/letta-code

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for customizing-commands

README.md
[![agentmods](https://agentmods.dev/badge/skills/letta-ai/letta-code/customizing-commands/github.svg)](https://agentmods.dev/skills/letta-ai/letta-code/customizing-commands)
Your own site
<a href="https://agentmods.dev/skills/letta-ai/letta-code/customizing-commands"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/customizing-commands/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.

agentmods 80×15 button for customizing-commands

Your own site · 80×15
<a href="https://agentmods.dev/skills/letta-ai/letta-code/customizing-commands"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/customizing-commands.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 874 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00874
Opus 5.5 $0.00020 $0.00350
Sonnet 5.5 $0.00010 $0.00175
Haiku 4.5 $0.00005 $0.00087

Measured 1mo ago against content hash 0e1022e46b96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

customizing-commands scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/builtin/customizing-commands/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Customizing Commands

Use this as the command-specific entrypoint for local mod slash commands. For broader mod work, recipes live in ../creating-mods/references/commands.md, ../creating-mods/references/architecture.md, ../creating-mods/references/ui.md, and ../creating-mods/references/plan-mode.md.

Mod files live in:

${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/

Use a focused file name, e.g. ${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/review.ts or ${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/commands.ts.

First decide whether a command is right

User wants Build
/foo sends a prompt or shows local output Mod command
/foo starts a reusable agent workflow Skill + thin mod command
Agent/model should autonomously call the capability Mod tool, not a command
Command shows transient progress/results Mod command + panel
Command needs model output while the main agent is busy runWhenBusy: true command + forked ctx.conversation

If the command is a reusable workflow like /goal, put the workflow instructions in a skill and keep the mod command as a small launcher/prompt.

Workflow

  1. Inspect ${LETTA_CONFIG_DIR:-$HOME/.letta}/mods/ for related command files.
  2. Preserve unrelated mod code; create a focused new file if merging is messy.
  3. Register with letta.commands.register() and guard with letta.capabilities.commands.
  4. Return the unregister function, or a disposer that calls it plus any timer/panel cleanup.
  5. Tell the user the exact file path changed and to run /reload.

Default prompt command

export default function activate(letta) {
  if (!letta.capabilities.commands) return;

  return letta.commands.register({
    id: "review",
    description: "Review current git changes",
    args: "[focus]",
    run(ctx) {
      const focus = ctx.args.trim();
      return {
        type: "prompt",
        content: focus
          ? `Review current git changes. Focus on ${focus}.`
          : "Review current git changes. Focus on correctness issues.",
        systemReminder: true,
      };
    },
  });
}

Read the full file on GitHub · 91 lines

Changes

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.

  1. 1mo ago Changed 0e1022e46b96
  2. 3mo ago First seen · 91 lines · 49 tokens per session scan A e09575b71ed1

Subscribe to this mod's changes

customizing-commands is a skill published in the GitHub repository letta-ai/letta-code (3,935 stars, last pushed today), licensed Apache-2.0. It adds 49 tokens to every session and 874 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

customizing-commands compared with skills from other repositories

customizing-commands next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
customizing-commandsletta-ai/letta-codeSkill3.9ktodayApache-2.0A49Claude Code, Codex
agent-code-analyzerruvnet/rufloSkill83ktodayMITA19Claude Code
worker-integrationruvnet/rufloSkill83ktodayMITA14Claude Code
eval-dataset-designbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A138Claude Code, Codex
memory-systembojieli/ai-agent-bookSkill60kyesterdayApache-2.0A95Claude Code, Codex
writingbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A27Claude Code, Codex
memory-recallzilliztech/memsearchSkill3.0k3d agoMITA152Claude Code