# How to port an image library

A custom swarm translated stb_image from C to Jai using DeepSeek Flash, with Claude Code preparing and merging work. Compilation repairs, paired agent review, tests and fuzzing followed.

Agent: Unknown (via DeepSeek Flash swarms with Claude Code)
Tools: DeepSeek Flash, Claude Code, Custom swarm scheduler, Jai compiler, Test suite
Category: Software & DevOps
Date: 2026-06-19

Outcome: The author published a Jai port of stb_image after compilation repairs, paired agent review, passing tests and fuzzing that uncovered additional bugs.

## Steps

1. Prepare translation rules, project documentation and shared context.
2. Split the C library into chunks using Claude.
3. Translate the chunks with DeepSeek agents and merge with Claude Code.
4. Compile and distribute compiler errors among repair agents.
5. Review functions with paired agents and iterate on tests.
6. Run a fuzzing swarm after the tests pass.

Human oversight: The author built and iterated the orchestration, ran review and testing stages, and reported further fuzzing after green tests.

Source: [vblanco on Hacker News](https://news.ycombinator.com/item?id=48597197)

Canonical URL: https://agentsinuse.com/use-cases/how-to-port-an-image-library-with-unknown/
