Skip to content

Move install and start scripts to run within modules via coder_scripts #698

Closed

Description

@blinkagent

Summary

This is the second stage of the agentapi module abstraction improvement (#696). The goal is to have install scripts and start scripts run within individual modules via coder_scripts, rather than being orchestrated by the agentapi module.

Current Problem

In the optional agentapi PR (#599), the agentapi module is responsible for running both install and start scripts. This creates tight coupling between modules and makes the logic complex and difficult to maintain when agentapi is optional.

Proposed Solution

  1. Modules handle their own scripts: Each module (e.g., claude-code, aider) runs its own install and start scripts via coder_scripts

  2. agentapi module's single responsibility: The agentapi module will only be responsible for installing agentapi and running .agentic-module/agent-command.sh when agentapi is enabled

  3. Common logic abstraction: Depending on the amount of common logic b/w the coder_scripts, consider abstracting shared functionality to an independent module

Benefits

  • Simplified optional agentapi logic: Users can easily toggle agentapi on/off without complex conditional script handling
  • Reduced module dependencies: Modules become more self-contained
  • Better configuration options: Users get cleaner configuration without hidden dependencies
  • Improved maintainability: Clearer separation of concerns compared to the current POC approach

Related


Created on behalf of @work-jaykumar

Activity

  1. 35C4n0r commented on Feb 4, 2026

    @35C4n0r
    Collaborator

    imo it would be better to make the agentapi side of changes in the already open PR: #693
    we can then release this change in a single major version.

  2. matifali commented on Feb 4, 2026

    @matifali
    Member

    Sounds good to me.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions