Porting 100k lines from TypeScript to Rust using Claude Code in a month

blog.vjeux.com
January 26, 2026
16 min read
35/100
Summary
Vjeux aims to port 100,000 lines of code from TypeScript to Rust using Claude Code within a month. The project seeks to combine AI and algorithms to enhance codebase rewriting efficiency, inspired by large-scale programming challenges.
Key Takeaways
- The author converted a JavaScript-based Pokemon battle AI to Rust using Claude, aiming to improve performance in training loops.
- The project involved overcoming various technical challenges, such as sandbox limitations and antivirus restrictions, to enable continuous AI operation.
- The author implemented creative solutions, including using Docker for compilation and AppleScript for automating interactions with Claude.
- The execution environment was optimized to prevent interruptions from software updates and to maintain focus on the terminal during long-running tasks.
Coverage & discussions
Hacker News · blog.vjeux.com
Community discussions
Community Sentiment
Positives
- Using Claude Code for porting large codebases demonstrates the potential of AI-assisted development, even if it requires careful guidance to avoid issues.
- The experience of trying to optimize code with Claude highlights the importance of understanding the underlying language, suggesting AI can assist but not replace developer expertise.
Concerns
- There are significant concerns about the trustworthiness of generated code, especially when porting between languages, indicating a need for better reliability in AI outputs.
- The tendency of Claude to 'improve' code during porting led to bugs, emphasizing that AI may not always align with developer intentions, which can complicate the process.
- The experience of maintaining a large codebase in an unfamiliar language raises doubts about the practicality of using AI for substantial development tasks without prior knowledge.
Related Articles

We tasked Opus 4.6 using agent teams to build a C Compiler
Feb 5, 2026

The long tail of LLM-assisted decompilation
Feb 16, 2026

Building for an audience of one: starting and finishing side projects with AI
Feb 17, 2026

I built a programming language using Claude Code
Mar 10, 2026

I built a Game Boy emulator in F#
Apr 30, 2026