You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move install and start scripts to run within modules via coder_scripts #698
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
Modules handle their own scripts: Each module (e.g., claude-code, aider) runs its own install and start scripts via coder_scripts
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
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
Activity
35C4n0r commentedon Feb 4, 2026
@matifali @DevelopmentCats this issue would make more sense after going through this #693 and this discussion: https://codercom.slack.com/archives/C09BB9T78E4/p1770120616089339?thread_ts=1768815469.988499&cid=C09BB9T78E4
35C4n0r commentedon Feb 4, 2026
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.
matifali commentedon Feb 4, 2026
Sounds good to me.
feat(coder/modules/agent-helper): add agent-helper module to help run…