Oriel — AI & technology worth noticing, every day.

Build a translation agent for text, URLs and files

Web page · https://agentusecases.ai/use-case/build-a-translation-agent-for-text-urls-and-files

Done with Claude Code. 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.

First seen by Oriel on .

AI summary

The author used Claude Code without hand-written code to build an agent that translates pasted text, URLs, or local files while preserving formatting and headings.

  • Claude Code incrementally created a UI shell, added the Doubao 1.6 model, implemented web-fetch and file-read tools, and displayed tool status in the UI.
  • A CLAUDE.md instructed Claude Code to test and repair its output, while prompts included current SDK examples.
  • The agent fetched a blog homepage, found the first two articles, and translated them into Chinese using three fetch calls.
  • Development took about two hours, aided by experience hand-building earlier versions; one failed v0.3 attempt required a rollback and rewritten prompt.
  • The author warns that the crude web fetching fails on most pages and recommends using a model trained for tool use.

#claude code #ai agents #machine translation #tool use

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Agent Use Caseshttps://agentusecases.ai/use-case/build-a-translation-agent-for-text-urls-and-fileshttps://agentusecases.ai/use-case/build-a-translation-agent-for-text-urls-and-files Read discussion