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 agentmods add commands/lukerenton/explore-claude-code/built-in-commandsgit clone --depth 1 https://github.com/LukeRenton/explore-claude-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/commands/lukerenton/explore-claude-code/built-in-commands)<a href="https://agentmods.dev/commands/lukerenton/explore-claude-code/built-in-commands"><img src="https://agentmods.dev/badge/commands/lukerenton/explore-claude-code/built-in-commands.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00000 | $0.01678 |
| Opus 5 | $0.00000 | $0.00839 |
| Sonnet 5 | $0.00000 | $0.00336 |
| Haiku 4.5 | $0.00000 | $0.00168 |
Grade A, and why
BUILT-IN-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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Built-in Commands
Commands baked into Claude Code that execute fixed logic directly. Type / at the prompt to see them all, or type / followed by any letters to filter. Unlike [bundled skills](^Prompt-driven workflows like /simplify and /batch that use Claude's tools to orchestrate work. See the bundled skills section), built-in commands run immediately without agentic orchestration.
Not every command is visible to every user. Some depend on your platform, plan, or environment. For example, /desktop only appears on macOS and Windows, /upgrade is only available on Pro and Max plans, and /terminal-setup is hidden when your terminal already supports its keybindings.
In the tables below, <arg> means required and [arg] means optional.
Session Management
Control your conversation lifecycle, context, and history.
| Command | Purpose |
|---|---|
/clear |
Clear conversation history and free up context. Aliases: /reset, /new |
/compact [instructions] |
Compress conversation to reclaim context, with optional focus instructions |
/context |
Visualize current context usage as a coloured grid with optimization suggestions |
/exit |
Exit the CLI. Alias: /quit |
/fork [name] |
Create a fork of the current conversation at this point |
/rename [name] |
Rename the current session. Without a name, auto-generates one from history |
/resume [session] |
Resume a conversation by ID or name, or open the session picker. Alias: /continue |
/rewind |
Rewind conversation and code to a previous point, or summarise from a message. Alias: /checkpoint |
Getting Information
View status, costs, diagnostics, and session data.
| Command | Purpose |
|---|---|
/btw <question> |
Ask a quick side question without adding to conversation history |
/copy |
Copy the last response to clipboard. Shows a picker when code blocks are present |
/cost |
Show token usage statistics for the current session |
/diff |
Interactive diff viewer for uncommitted changes and per-turn diffs |
/doctor |
Diagnose and verify your Claude Code installation and settings |
/export [filename] |
Export conversation as plain text. With a filename, writes directly to file |
/help |
Show help and available commands |
/insights |
Generate a report analysing your sessions: project areas, patterns, friction points |
/release-notes |
View the full changelog, most recent version first |
/stats |
Visualise daily usage, session history, streaks, and model preferences |
/status |
Show version, model, account, and connectivity info |
/usage |
Show plan usage limits and rate limit status |
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.
- 5d ago First seen · 151 lines · 0 tokens per session scan A c97e7e2a2cf7
BUILT-IN-COMMANDS is a command published in the GitHub repository LukeRenton/explore-claude-code (308 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,678 tokens. 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.
Other commands, from other repositories
valuation-methods
Valuation methods analysis — multiples, DCF inputs, PEG integration, valuation assumption extraction.
genshijin-compress
Markdown・テキストファイルを原始人形式へ安全圧縮.
save
Save this conversation as a new or existing reusable context.
enum-udp
UDP scan + service follow-up — top ports first, full sweep only when justified.
claude-recall
Update project context using the local LLM (Qwen2.5 0.5B).
review
Submit a story for verification (In Progress → In Review, no PR yet).