Title: command_registry | deepagents_code | LangChain Reference
Open Graph Title: command_registry | deepagents_code
X Title: command_registry | deepagents_code
Description: Python API reference for command_registry in deepagents_code. Part of the LangChain ecosystem.
Open Graph Description: Python API reference for command_registry in deepagents_code. Part of the LangChain ecosystem.
X Description: Python API reference for command_registry in deepagents_code. Part of the LangChain ecosystem.
Opengraph URL: https://reference.langchain.com/python/deepagents-code/command_registry
Domain: reference.langchain.com
| og:image | https://reference.langchain.com/og/python/deepagents-code/command_registry |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:image:alt | command_registry | deepagents_code |
| og:type | article |
| twitter:card | summary_large_image |
| twitter:image | https://reference.langchain.com/og/python/deepagents-code/command_registry |
Links:
| LangChain Reference home page | https://reference.langchain.com/ |
| GitHub | https://github.com/langchain-ai |
| Main Docs | https://docs.langchain.com/oss/python/deepagents |
| Deep Agents | https://reference.langchain.com/python/deepagents |
| LangChain | https://reference.langchain.com/python/langchain/overview |
| LangGraph | https://reference.langchain.com/python/langgraph/overview |
| Integrations | https://reference.langchain.com/python/integrations/overview |
| LangSmith | https://reference.langchain.com/python/langsmith |
| Deep Agents Code | https://reference.langchain.com/python/deepagents-code |
| Deep Agents Code | https://reference.langchain.com/python/deepagents-code |
| deepagents-code | https://reference.langchain.com/python/deepagents-code |
| attributeCOMMANDS: tuple[SlashCommand, ...]All slash commands. | https://reference.langchain.com/python/deepagents-code/command_registry/COMMANDS |
| attributeALWAYS_IMMEDIATE: frozenset[str]Commands that execute regardless of any busy state. | https://reference.langchain.com/python/deepagents-code/command_registry/ALWAYS_IMMEDIATE |
| attributeBYPASS_WHEN_CONNECTING: frozenset[str]Commands that bypass only during initial server connection. | https://reference.langchain.com/python/deepagents-code/command_registry/BYPASS_WHEN_CONNECTING |
| attributeIMMEDIATE_UI: frozenset[str]Commands that open modal UI immediately, deferring real work. | https://reference.langchain.com/python/deepagents-code/command_registry/IMMEDIATE_UI |
| attributeSIDE_EFFECT_FREE: frozenset[str]Commands whose side effect fires immediately; chat output deferred until idle. | https://reference.langchain.com/python/deepagents-code/command_registry/SIDE_EFFECT_FREE |
| attributeQUEUE_BOUND: frozenset[str]Commands that must wait in the queue when the app is busy. | https://reference.langchain.com/python/deepagents-code/command_registry/QUEUE_BOUND |
| attributeHIDDEN_COMMANDS: frozenset[str]Power-user commands kept out of autocomplete and help. | https://reference.langchain.com/python/deepagents-code/command_registry/HIDDEN_COMMANDS |
| attributeSTARTUP_RECOVERY_COMMANDS: frozenset[str]QUEUED-tier commands that must still run when startup has failed. When the configured model can't be built (e.g. its provider package is missing) the server never starts and the app holds a _server_startup_error state that parks queued messages. These are the recovery escape hatches for that state — install the missing package, reload config/env, or upgrade the tool — so they must bypass the queue rather than sit behind the very failure they repair. /model and /auth already escape via IMMEDIATE_UI (which opens a modal and defers the real work); the commands here instead perform their repair work directly, so they stay QUEUED and rely on this exemption. The bypass itself is gated in _can_bypass_queue. Every entry is also QUEUE_BOUND — the recovery exemption is orthogonal to the normal queue. | https://reference.langchain.com/python/deepagents-code/command_registry/STARTUP_RECOVERY_COMMANDS |
| attributeALL_CLASSIFIED: frozenset[str]Union of all tiers plus hidden commands — used by drift tests. | https://reference.langchain.com/python/deepagents-code/command_registry/ALL_CLASSIFIED |
| attributeSLASH_COMMANDS: list[CommandEntry]Autocomplete entries derived from COMMANDS for SlashCommandController. | https://reference.langchain.com/python/deepagents-code/command_registry/SLASH_COMMANDS |
| functionparse_skill_commandExtract skill name and args from a /skill: | https://reference.langchain.com/python/deepagents-code/command_registry/parse_skill_command |
| functionbuild_skill_commandsBuild autocomplete entries for discovered skills.
Each skill becomes a /skill: | https://reference.langchain.com/python/deepagents-code/command_registry/build_skill_commands |
| classExtendedSkillMetadataExtended skill metadata for CLI display, adds source tracking. | https://reference.langchain.com/python/deepagents-code/skills/load/ExtendedSkillMetadata |
| classBypassTierClassification that controls whether a command can skip the message queue. | https://reference.langchain.com/python/deepagents-code/command_registry/BypassTier |
| classSlashCommandA single slash-command definition. | https://reference.langchain.com/python/deepagents-code/command_registry/SlashCommand |
| classCommandEntryA single autocomplete entry for the slash-command controller. | https://reference.langchain.com/python/deepagents-code/command_registry/CommandEntry |
| View source on GitHub | https://github.com/langchain-ai/deepagents/blob/019900734024a7665fd65bd75235c6307d5da003/libs/code/deepagents_code/command_registry.py |
Viewport: width=device-width, initial-scale=1