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. ·
Done withClaude Code
- 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.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: baoyu.io · Nov 22, 2026 · Submitted by from search gap: 翻譯成中文
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Run marketing operations with a team of subagents
A CMO agent reads the weekly plan and spawns specialist subagents like a social media marketer and performance reviewer; the social agent double-posted to Reddit in week one.
Run systematic literature reviews from a research question
A physician-researcher built Claude Code skills that search databases, screen articles, chase citations, fetch PDFs and write the synthesis.
Produce a track in Ableton Live by talking
An MCP server that lets Codex drive Ableton Live, used to write and mix a full song from chat messages.
Build a slide deck from a single prompt
Scout used its pptx skill to build a 5-slide quarterly cloud review deck saved to Downloads, with diagrams and HTML artifacts also covered.
Post a rendered video to Slack when integration fails
Codex read Slack feedback, edited and re-rendered a video, then used Computer Use to click Add file and post it in Slack.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.