Core Features

Command

Commands invoke built-in ZCode Agent capabilities and can also save prompts you use often. After saving prompts for code review, commit messages, release checks, file explanation, or similar repeatable work, you can invoke them from the input box with /.

Commands currently apply mainly to ZCode Agent and Claude CLI. For daily work inside ZCode, start with ZCode Agent. If your team already maintains .claude/commands/ for Claude CLI, you can keep using that workflow.

Invoke commands in ZCode Agent


Use In ZCode Agent

  1. Choose ZCode Agent when creating a task.
  2. Type / in the input box to open the command list.
  3. Select a command, or keep typing to filter by command name.
  4. If the command expects arguments, add a path, module name, or extra instruction after it.

ZCode Agent currently includes three built-in commands:

CommandPurpose
/compactCompact the current conversation context while preserving key information, useful for continuing long conversations
/goalSet, pause, resume, or clear a long-running session goal
/skillLoad a named Skill before the agent continues the task

For example, use /compact to clean up context in a long task, or /skill when the agent should follow a specific workflow before continuing.


Create A Command

Open Commands in ZCode settings, then create a new command and fill in the fields:

Create command

FieldDescription
NameCommand name, invoked as /name after saving
DescriptionOptional short text shown in the command picker
Argument hintOptional parameter hint, such as <file-path>
PromptThe prompt content sent to the agent when the command runs

After saving, return to the task input box and type / to find and invoke the command.


Claude CLI Notes

Claude CLI supports a similar custom command workflow. Project commands usually live in .claude/commands/, while personal commands usually live in ~/.claude/commands/.

Use a command when you only need to save a simple prompt. If the workflow needs scripts, templates, or example files, consider using Claude's skill mechanism instead.


Next Steps