AI coding: loop engineering a translator A developer describes building a complex 'loop engineering' pipeline in December 2024 to translate large Korean documents to English using local LLMs, but ultimately abandoned the project after weeks because the critic loop failed to improve translation quality and the system could not satisfy its own validation criteria. AI coding: loop engineering a translator /loop-engineering I accidentally did that years ago Posted by Since a week or two the term 'loop engineering' is coming up after 'prompt engineering' and 'agentic workflow' seem to not cut it anymore and we need more abstractions. The first time I tried to write something which would do something useful with a LLM was about two years ago in December 2024, I wanted to do translation of big documents from Korean to English on my local RTX 3060 with 12 GB VRAM. I couldn't just use the ChatGPT chat for that because back then it's context window was way too small for the massive documents I needed translated and it would stop translating after 10%. So I thought I can automate the splitting up of the document. But because I did not know anything about agents I had to come up with some architecture. So I made this very complicated agent pipeline: Agent pipeline / loops The pipeline turns a raw Korean transcript into an English translation through a plan → execute → critique → repair loop. A literal NLLB translation acts as an impartial reference, and a translation memory keeps terminology consistent across chunks. Components | Component | Model / Tool | What it does | |---|---|---| Sentence Segmentation | kss Korean String processing Suite | Splits the raw Korean transcript into individual sentences kss.split sentences before anything else runs. | Chunker | TextChunker python | Groups the segmented sentences into chunks of N sentences with optional overlap so each piece fits the models' context. | Planner | qwen3:14b | Reads an excerpt once and produces a global strategy as JSON content type, speaking style, terminology, per-component instructions . Shared by the Executor and Critic. | Executor | aya:8b | Translates each chunk. On a revise verdict it runs repair using the Critic's fix instruction. Strips the model's