Overview
Implement Docker sandbox container initialization with a predefined set of custom commands, accessible via /help.
Requirements
Features
-
Custom Container Initialization State
- Container no longer starts in a blank state
- Support predefined initialization commands (e.g., environment checks, dependency installation)
- Initialization commands should be configurable
-
Custom Command Registry
- Support registering multiple custom commands
- Each command has a name, description, and execution content
- Commands grouped by category
-
/help Command
- Input
/help to display all available commands
- Show name and description for each command
- Provide user-friendly formatted output
User Scenario
User: /help
Assistant: Available commands:
/init - Initialize environment
/status - Show current status
/install - Install dependencies
/help - Show this help message
Technical Approach
- Add command configuration in
OpenManusProperties
- Create command registry/mechanism
- Intercept
/help command in ShellTool or AgentCoordinator
- Provide command execution framework
Open Questions
- Command configuration method (YAML/JSON/code)
- Command execution permission control
- Command output format specification
Related Files
OpenManusProperties.java
AgentCoordinator.java
ShellTool.java
Overview
Implement Docker sandbox container initialization with a predefined set of custom commands, accessible via
/help.Requirements
Features
Custom Container Initialization State
Custom Command Registry
/help Command
/helpto display all available commandsUser Scenario
Technical Approach
OpenManusProperties/helpcommand in ShellTool or AgentCoordinatorOpen Questions
Related Files
OpenManusProperties.javaAgentCoordinator.javaShellTool.java