Skip to main content
← Back to list
01Issue
BugOpenSwamp Club
AssigneesNone

Claude Code should prefer extending swamp extensions over using external CLI tools

Opened by swampadmin · 2/13/2026

Problem Statement

When a user asks Claude Code to perform an operation that is close to (but not exactly covered by) an existing swamp extension model, Claude Code defaults to using external CLI tools (like gh) instead of offering to extend the existing extension model with a new method.

For example, when asked to search GitHub issues in an external repository, Claude Code attempted to use gh search issues directly rather than recognizing that the @bixu/github/issue extension model only had a list method and offering to add a search method.

This undermines the swamp philosophy that service integrations should be modeled as extension methods, not wrapped in ad-hoc CLI calls.

Proposed Solution

The CLAUDE.md rules should include guidance that when an operation maps closely to an existing extension model's domain but the model lacks the specific method:

  1. Claude Code should first check if the extension model could be extended
  2. Offer to add the missing method to the extension
  3. Only fall back to CLI tools if the user declines

This is a documentation/instruction issue rather than a code change — the behavior should be guided by CLAUDE.md rules or swamp skill instructions.

Affected Components

  • CLAUDE.md project instructions
  • Swamp skill definitions (swamp-model, swamp-extension-model)

Alternatives Considered

  • Adding a hard rule to never use CLI tools — too restrictive, sometimes CLI tools are the right choice for one-off operations
  • Automatic detection of missing methods — complex and fragile
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Open

2/13/2026, 5:48:32 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.