AI Services Market
AI Services Market › Use cases › Content & Creative
Content & CreativeDone with Claude Code Nov 22, 2026

Build a translation agent for text, URLs and files

The author used Claude Code to build, with no hand-written code, an agent that translates text, a URL or a local file; it fetched a blog's articles and translated two into Chinese. · Nov 22, 2026

Build a translation agent for text, URLs and files preview
What They Did
Claude Code wrote the agent in small versions that each ran on their own: a UI shell, then the Doubao 1.6 model, then web-fetch and file-read tools, then tool status shown in the UI. A CLAUDE.md file told it to test and fix its own output. The author pasted current SDK examples into each prompt. When v0.3 went wrong, he rolled back and rewrote the prompt.
How It Went
The agent took a blog URL, fetched the homepage, found the first two articles and translated them into Chinese. It made three fetch calls. The author says his web fetching is crude and fails on most pages.
Worth Knowing
The author says it took about 2 hours, but only because he had already hand-built several earlier versions. He suggests using a model trained for tool use.
Try it yourself with Claude Code

Build me a small translation tool that takes either pasted text, a URL, or a local file path and translates it into [target language]. Fetch the page or read the file, keep the original formatting and headings, and save the result as [output file name]. Test it by translating [a sample URL or file] and show me the result, then tell me how to run it myself.

Read the original ↗

Do this with a skill.

These AI Services Market playbooks do this exact job.