spm-conflict-resolver

spm-conflict-resolver is an agent for Claude Code from CharlesWiltgen/Axiom. It costs 234 tokens per session (2,998 once invoked), scanned C, original, MIT.

An agent for diagnosing Swift Package Manager problems, including dependency version conflicts, missing modules, duplicate symbols, and Swift 6 compatibility issues.

In plain words
What is it for?
Use it to inspect Package.swift, Package.resolved, Xcode package settings, and Swift package diagnostics before choosing a fix.
Why use it?
It compares package configuration and resolved versions to identify why dependencies cannot build together.

Agent for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: model in frontmatter.

Part of the axiom plugin — 27 skills, 17 commands, 42 agents, 5 hooks shipped together

Good fit Use it to inspect Package.swift, Package.resolved, Xcode package settings, and Swift package diagnostics before choosing a fix.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/charleswiltgen/axiom/spm-conflict-resolver
About the project

Axiom is a toolkit of instructions, agents, commands, and development tools that give coding assistants specialized guidance for Apple operating-system development. It covers Swift, SwiftUI, interface design, data, concurrency, performance, networking, accessibility, logging, crash analysis, simulator testing, and profiling for iOS, iPadOS, watchOS, and tvOS. The catalogue contains 42 agents, 16 commands, and one plugin from this toolkit.

CharlesWiltgen/Axiom · 1,151 stars · on GitHub · charleswiltgen.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom

Made for: Claude Code.

Or install axiom, the plugin that ships this one along with the rest of its 27 skills, 17 commands, 42 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spm-conflict-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/charleswiltgen/axiom/spm-conflict-resolver/github.svg)](https://agentmods.dev/agents/charleswiltgen/axiom/spm-conflict-resolver)
Your own site
<a href="https://agentmods.dev/agents/charleswiltgen/axiom/spm-conflict-resolver"><img src="https://agentmods.dev/badge/agents/charleswiltgen/axiom/spm-conflict-resolver/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spm-conflict-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/charleswiltgen/axiom/spm-conflict-resolver"><img src="https://agentmods.dev/badge/agents/charleswiltgen/axiom/spm-conflict-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 234 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00234 $0.02998
Opus 5 $0.00117 $0.01499
Sonnet 5 $0.00047 $0.00600
Haiku 4.5 $0.00023 $0.00300

Measured 10d ago against content hash 9e44319a082b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

spm-conflict-resolver scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .build
.claude-plugin/plugins/axiom/agents/spm-conflict-resolver.md · 481 lines

How it starts

The opening of the file, as written. The whole thing — 481 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SPM Conflict Resolver Agent

You are an expert at diagnosing and resolving Swift Package Manager dependency conflicts.

Your Mission

Analyze Package.swift and Package.resolved to:

  • Identify version conflicts between packages
  • Detect duplicate symbol issues
  • Find Swift version mismatches
  • Resolve transitive dependency problems
  • Fix platform compatibility issues

Files to Analyze

Required:

  • Package.swift - Package manifest
  • Package.resolved - Resolved versions (if exists)

Also check:

  • *.xcodeproj/project.pbxproj - Xcode project packages
  • .swiftpm/ - SPM cache/state

Conflict Patterns (Swift 6 / iOS 18+)

Pattern 1: Version Range Conflict (CRITICAL)

Issue: Two packages require incompatible versions of a shared dependency Symptom: dependency X could not be resolved because...

Detection:

swift package show-dependencies --format json 2>&1 | grep -i "could not be resolved"
swift package diagnose-api-breaking-changes

Resolution Strategy:

  1. Check if newer versions of conflicting packages exist
  2. Widen version range constraints if safe
  3. Fork and patch the stricter package
  4. Use package trait/platform conditions
// ❌ Conflict
.package(url: "https://github.com/A/PackageA", from: "1.0.0"),  // Requires Alamofire 5.8+
.package(url: "https://github.com/B/PackageB", from: "2.0.0"),  // Requires Alamofire < 5.5

// ✅ Resolution: Find compatible versions or update PackageB
.package(url: "https://github.com/A/PackageA", from: "1.0.0"),
.package(url: "https://github.com/B/PackageB", from: "3.0.0"),  // Updated to support Alamofire 5.8+

Pattern 2: Duplicate Symbols (CRITICAL)

Issue: Same library linked twice (static + dynamic, or two versions) Symptom: duplicate symbol _... in: ... and ...

Detection:

# Check for duplicate framework linking
grep -r "frameworks" *.xcodeproj/project.pbxproj | grep -i "duplicate"

# Check Package.resolved for same package twice
# Option 1: With jq (if installed)
cat Package.resolved | jq '.pins[] | .identity' | sort | uniq -d

# Option 2: Without jq
swift package show-dependencies --format json 2>/dev/null | grep -o '"identity"[^,]*' | sort | uniq -d

Read the full file on GitHub · 481 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 481 lines · 234 tokens per session scan C 9e44319a082b

Subscribe to this mod's changes

spm-conflict-resolver is an agent published in the GitHub repository CharlesWiltgen/Axiom (1,151 stars, last pushed yesterday), licensed MIT. It adds 234 tokens to every session and 2,998 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

affaan-m/ECC · 48 tokens

kotlin-build-resolver

Kotlin/Gradle build, compilation, and dependency error resolution specialist. Fixes build errors, Kotlin compiler errors, and Gradle issues with minimal changes. Use when Kotlin builds fail.

mturac/everything-openai-codex · 44 tokens

swift-refactor-cleaner

Dead code cleanup and consolidation specialist for Swift/iOS. Uses Periphery, SwiftLint to identify unused code and safely removes it. PROACTIVELY use for removing dead code, duplicates, and modernization refactoring.

OkminLee/everything-claude-code-ios · 49 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

DekaPrayoga/AurixAgent · 48 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

Fmarzochi/EGC · 48 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

mturac/everything-openai-codex · 48 tokens