@robota-sdk/agent-command
v3.0.0-beta.79
Published
Consolidated command module implementations for Robota SDK CLI
Readme
Agent Command
Consolidated command module for the Robota CLI. Provides all slash-command (/cmd) implementations as a single importable package.
Installation
npm install @robota-sdk/agent-commandQuick Start
import {
createAgentCommandModule,
createModeCommandModule,
createProviderCommandModule,
} from '@robota-sdk/agent-command';
import type { IProviderCommandModuleOptions } from '@robota-sdk/agent-command';
declare const providerOptions: IProviderCommandModuleOptions;
// Register commands with a CommandRegistry (owned by agent-framework)
const modules = [
createAgentCommandModule(),
createModeCommandModule(),
createProviderCommandModule(providerOptions),
];Available Commands
| Command | Description |
| -------------- | ---------------------------------------------- |
| /agent | Agent creation and management |
| /background | Background task execution |
| /compact | Conversation compaction |
| /context | Context window management |
| /exit | Session exit / quit |
| /help | Help display |
| /language | Language switching |
| /memory | Memory read/write |
| /mode | Interaction mode switching |
| /permissions | Permission management |
| /plugin | Plugin enable/disable |
| /preset | Agent preset selection / switching |
| /provider | AI provider configuration |
| /reset | Session reset |
| /rewind | Conversation history rewind |
| /schedule | Scheduled / deferred task management |
| /session | Session lifecycle (rename, resume, fork, list) |
| /settings | Settings management |
| /skills | Skills management |
| /statusline | Status bar configuration |
| /user-local | User-local command storage |
API
Each command is exposed via a factory function that returns an ICommandModule:
import { createExitCommandModule, createHelpCommandModule } from '@robota-sdk/agent-command';
const exitCmd = createExitCommandModule();
const helpCmd = createHelpCommandModule();All command factory functions are re-exported from the root entry point (21 command modules plus the
createDefaultCommandModules aggregator).
Dependencies
@robota-sdk/agent-core— core types and interfaces@robota-sdk/agent-framework—ICommandHostContext, command registration
