Skip to content

Create OpenSWE module for Coder Tasks based on existing agent/task modules #351

@matifali

Description

@matifali

Check the repos for all modules with a tag agent or task and then create a similar module for OpenSWE to be used with Coder Tasks.
Some recent additions are

  1. feat: add auggie cli #350
  2. feat(cursor-cli): add Cursor CLI module #309
  3. feat: Sourcegraph Amp module #257
Agent Context [ "**Create the OpenSWE module directory structure** in `registry/coder-labs/modules/openswe` with all required subdirectories (scripts, testdata) following the pattern from existing AI agent modules like cursor-cli, gemini, and goose", "**Implement the README.md file** in `registry/coder-labs/modules/openswe/README.md` with proper metadata (display_name: 'OpenSWE', description, icon path, verified: false, tags: [agent, openswe, ai, tasks]) and comprehensive documentation including usage examples, prerequisites, and configuration options based on patterns from `registry/coder-labs/modules/cursor-cli/README.md` and `registry/coder-labs/modules/gemini/README.md`", "**Create the main.tf Terraform configuration** in `registry/coder-labs/modules/openswe/main.tf` with all necessary variables (agent_id, folder, api_key, install flags, version variables), integration with agentapi module v1.1.1, environment variable configuration, and proper script embedding following the structure from `registry/coder-labs/modules/cursor-cli/main.tf` and `registry/coder/modules/goose/main.tf`", "**Implement the installation script** in `registry/coder-labs/modules/openswe/scripts/install.sh` that handles OpenSWE CLI installation (using npm/pip as appropriate), configuration file setup, API key management, and MCP server configuration following patterns from `registry/coder/modules/goose/scripts/install.sh` and `registry/coder-labs/modules/cursor-cli/scripts/install.sh`", "**Create the startup script** in `registry/coder-labs/modules/openswe/scripts/start.sh` that launches OpenSWE with agentapi server integration, handles task prompts, and manages interactive/non-interactive modes based on `registry/coder/modules/goose/scripts/start.sh` and similar scripts", "**Implement comprehensive tests** in `registry/coder-labs/modules/openswe/main.test.ts` using Bun test framework with test cases for module initialization, variable passing, script execution, and agentapi integration following the pattern from `registry/coder/modules/goose/main.test.ts`", "**Add the OpenSWE icon file** by creating a placeholder SVG icon at `.icons/openswe.svg` or updating the README to reference an appropriate existing icon from the `.icons` directory", "**Create test data files** in `registry/coder-labs/modules/openswe/testdata/` if needed for testing purposes, following the pattern from other modules", "**Run tests and formatting** by executing `bun test` in the module directory and `bun run fmt` from the repository root to ensure code quality and consistency" ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions