Skip to content

feat: support Docker container initialization commands and /help command #1

Description

@leochame

Overview

Implement Docker sandbox container initialization with a predefined set of custom commands, accessible via /help.

Requirements

Features

  1. 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
  2. Custom Command Registry

    • Support registering multiple custom commands
    • Each command has a name, description, and execution content
    • Commands grouped by category
  3. /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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions