DEV Community

Building a Coding Agent in Swift Series' Articles

Back to Ivan Magda's Series
I Built a Coding Agent in Swift — The Hardest Bugs Were Concurrency, Not AI
Cover image for I Built a Coding Agent in Swift — The Hardest Bugs Were Concurrency, Not AI

I Built a Coding Agent in Swift — The Hardest Bugs Were Concurrency, Not AI

4
Comments
6 min read
The Agent Loop: How 20 Lines of Swift Turn an API Client into a Coding Agent
Cover image for The Agent Loop: How 20 Lines of Swift Turn an API Client into a Coding Agent

The Agent Loop: How 20 Lines of Swift Turn an API Client into a Coding Agent

5
Comments
8 min read
Tool Dispatch: A Dictionary Replaces a Switch Statement and Scales to 14 Tools
Cover image for Tool Dispatch: A Dictionary Replaces a Switch Statement and Scales to 14 Tools

Tool Dispatch: A Dictionary Replaces a Switch Statement and Scales to 14 Tools

5
Comments
7 min read
Why Coding Agents Lose Their Plan (and How a Todo Tool Fixes It)
Cover image for Why Coding Agents Lose Their Plan (and How a Todo Tool Fixes It)

Why Coding Agents Lose Their Plan (and How a Todo Tool Fixes It)

5
Comments
7 min read
Subagents: Context Isolation Through Recursive Agent Loops
Cover image for Subagents: Context Isolation Through Recursive Agent Loops

Subagents: Context Isolation Through Recursive Agent Loops

5
Comments
8 min read
Skill Loading: Two-Layer Knowledge Injection That Costs Tokens Only When Needed
Cover image for Skill Loading: Two-Layer Knowledge Injection That Costs Tokens Only When Needed

Skill Loading: Two-Layer Knowledge Injection That Costs Tokens Only When Needed

5
Comments
8 min read
Context Compaction: Three Layers of Compression That Let an Agent Run Indefinitely
Cover image for Context Compaction: Three Layers of Compression That Let an Agent Run Indefinitely

Context Compaction: Three Layers of Compression That Let an Agent Run Indefinitely

5
Comments
9 min read