Comparison

DSPy vs Semantic Kernel

A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.

DSPy

Declarative, programmable prompt programming from Stanford.

  • + Compiles and optimizes prompts instead of hand-writing them
  • + Strong for repeatable, measurable prompt engineering
  • − Different mental model from typical agent frameworks
  • − Smaller ecosystem of tool integrations

Semantic Kernel

Microsoft's SDK for enterprise AI orchestration.

  • + Strong .NET and Java story for enterprise
  • + Planner abstraction for tool orchestration
  • − Enterprise-flavored, less hacker-friendly
  • − Concept-heavy docs
Spec DSPy Semantic Kernel
Role Agent framework Agent framework
Tags agent-framework, library, persona-solo-builder, persona-platform-engineer agent-framework, library, orchestration, persona-solo-builder, persona-platform-engineer
License MIT MIT
Open source Yes Yes
Self-hostable Yes Yes
MCP support No Yes
Pricing free free
Price Free Free
Usage cost BYOK BYOK
Models byok gpt, claude, byok
Languages python csharp, python, java
GitHub stars 35.8k 28.3k
Last activity 2026-07-02 2026-07-02