Tool Resolution

March 29, 2026 · View on GitHub

Bridge names (ast_bridge, ccc_bridge, qmd_bridge, gh_bridge) and subprocess patterns (Pattern 1–4) used throughout SKF workflows are conceptual interfaces, not callable functions. This document provides the canonical mapping from abstract names to concrete tools per IDE environment.

Bridge Resolution Table

BridgeOperationClaude CodeCursorCLIFallback
ast_bridgescan_definitions()mcp__ast-grep__find_code or mcp__ast-grep__find_code_by_ruleast-grep MCPsg run / ast-grep -pSource reading (T1-low)
ast_bridgedetect_co_imports()mcp__ast-grep__find_code_by_rule with co-import YAML ruleast-grep MCPast-grep run -p 'import $$$' --json=streamgrep-based co-import count
ccc_bridgesearch(query, root, top_k)/ccc skill searchccc MCP servercd {root} && ccc search --limit {top_k} "{query}"Skip silently
ccc_bridgeensure_index(root)/ccc skill indexingccc MCP servercd {root} && ccc init + ccc indexSkip silently
ccc_bridgestatus()/ccc skill statusccc MCP serverccc --help + ccc doctorUnavailable = tools.ccc: false
qmd_bridgesearch(query)mcp__plugin_qmd-plugin_qmd__searchqmd MCP serverqmd search "{query}"Skip enrichment
qmd_bridgevector_search(query)mcp__plugin_qmd-plugin_qmd__vector_searchqmd MCP serverqmd vector_search "{query}"Use BM25 search only
qmd_bridgeversion()qmd --version → parse "qmd X.Y.Z""X.Y.Z"qmd MCP serverqmd --version"unknown"
gh_bridgelist_tree(owner, repo, branch)gh api repos/{owner}/{repo}/git/trees/{branch}?recursive=1gh CLIgh api ...Direct file listing if local
gh_bridgeread_file(owner, repo, path)gh api repos/{owner}/{repo}/contents/{path}gh CLIgh api ...Direct file read if local

Subprocess Pattern Definitions

Workflow steps reference "subprocess" execution with numbered patterns. These map to concrete mechanisms per IDE:

PatternPurposeClaude CodeCursorCLI
Pattern 1 (grep/search)Search across files for imports, co-importsGrep tool or Bash with rgBuilt-in searchgrep / rg
Pattern 2 (per-file deep analysis)Deep analysis of individual files or unitsAgent tool (sequential per unit)Sequential analysisPer-unit script
Pattern 3 (data operations)QMD queries, severity classification, data transformsMain thread (Read + process)Main threadScript
Pattern 4 (parallel execution)Parallel per-library extraction, parallel diffingAgent tool with multiple parallel calls or run_in_background: trueParallel requests (IDE-dependent)xargs -P or background processes

max_parallel_generation

Referenced by Pattern 4 steps. Defines the maximum concurrent subprocess spawns:

EnvironmentRecommended ValueNotes
Claude Code3–5Concurrent Agent tool calls; higher values may cause context pressure
CursorIDE-dependentFollow Cursor's agent concurrency limits
CLICPU core count or user-specifiedUse xargs -P {n} or equivalent

Resolution Protocol

When a workflow step references a bridge name or subprocess pattern:

  1. Identify the bridge name (ast_bridge, ccc_bridge, etc.) or pattern number (Pattern 1–4)
  2. Check tool availability in {sidecar_path}/forge-tier.yamltools.* section
  3. Resolve using the tables above — use the first available option in priority order: MCP tool → CLI command → Fallback
  4. Apply fallback if no resolution is available — fallbacks are always defined and never block the workflow
  5. Log degradation when falling back — note the reason in context for the evidence report