BUILT-IN-COMMANDS

BUILT-IN-COMMANDS is a command for coding agents from LukeRenton/explore-claude-code. It costs 0 tokens per session (1,678 once invoked), scanned A, original, MIT.

A reference guide to commands built directly into Claude Code. These commands run fixed actions, while bundled skills use the agent to coordinate a workflow.

In plain words
What is it for?
It is for looking up session, context, setup, and other built-in commands, including their required or optional arguments and availability limits.
Why use it?
It helps users find the right built-in command and understand why some commands may not appear in their environment.

Command

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.

agentmods
npx agentmods add commands/lukerenton/explore-claude-code/built-in-commands
Clone the repo
git clone --depth 1 https://github.com/LukeRenton/explore-claude-code

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 BUILT-IN-COMMANDS

README.md
[![agentmods](https://agentmods.dev/badge/commands/lukerenton/explore-claude-code/built-in-commands.svg)](https://agentmods.dev/commands/lukerenton/explore-claude-code/built-in-commands)
Your own site
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01678
Opus 5 $0.00000 $0.00839
Sonnet 5 $0.00000 $0.00336
Haiku 4.5 $0.00000 $0.00168

Measured 5d ago against content hash c97e7e2a2cf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

site/content/built-in/commands/BUILT-IN-COMMANDS.md · 151 lines

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

Read the full file on GitHub · 151 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. 5d ago First seen · 151 lines · 0 tokens per session scan A c97e7e2a2cf7

Subscribe to this mod's changes

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.