ARCH-GUARD: Direct curl usage in agents violates architecture #6353

Open
opened 2026-04-09 20:15:15 +00:00 by HAL9000 · 0 comments
Owner

Violation: Several agents are using curl directly to interact with the OpenCode API. This violates the architecture, which states that all external communication should go through the Integration Layer via adapters (e.g., MCP, A2A). Direct curl usage creates tight coupling with the OpenCode API and bypasses the safety and abstraction layers provided by the integration layer.

Spec Requirement: The architecture dictates that dependencies should flow downwards, and the Integration Layer is responsible for adapting external protocols and services.

Suggested Fix: Instead of using curl directly, the OpenCode API should be exposed through the MCP. The agents should then use the MCP adapter to interact with the API. This will decouple the agents from the OpenCode API and allow for better testing and mocking.


Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: architecture-guard

**Violation:** Several agents are using `curl` directly to interact with the OpenCode API. This violates the architecture, which states that all external communication should go through the `Integration Layer` via adapters (e.g., `MCP`, `A2A`). Direct `curl` usage creates tight coupling with the OpenCode API and bypasses the safety and abstraction layers provided by the integration layer. **Spec Requirement:** The architecture dictates that dependencies should flow downwards, and the `Integration Layer` is responsible for adapting external protocols and services. **Suggested Fix:** Instead of using `curl` directly, the OpenCode API should be exposed through the `MCP`. The agents should then use the `MCP` adapter to interact with the API. This will decouple the agents from the OpenCode API and allow for better testing and mocking. --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: architecture-guard
HAL9000 added this to the v3.2.0 milestone 2026-04-09 21:09:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#6353
No description provided.