Skip to content
Codixio
Menu

Own product, LLM, document extraction

Translation-Loop and Extraction-Loop: specialised AI agents for translation and extraction

Period:
since 06/2026
Role:
AI architect and developer
  • Node.js
  • Claude Code
  • MCP
  • JSON Schema
  • Docker
  • Coolify
Translate and extract with evidence. Flow: Job in the queue; Loop picks it up; Translation or extraction; Cross-check; Result back to the app

Next to the Auto-Loop, which builds software, two specialised workers are attached to the Codixio Hub. They do not handle development tasks but recurring language model jobs from apps and pipelines: translating and structured extraction.

Starting point

Many applications need the same two capabilities: translating texts without damaging formatting and terminology, and pulling values from documents into a fixed structure. If every app builds this itself, you end up with scattered model calls without shared cost control, without a log and without consistent quality checks.

Solution

  • One queue per job type in the hub. Apps and pipelines queue jobs, the responsible loop picks them up, processes them and reports the result back. Translation jobs can only be picked up with worker tokens, app tokens are rejected.
  • Translation-Loop. Translates source text from a source into a target language, given as a BCP 47 code, with a format hint for plain text, Markdown or HTML, so structure and markup are kept. For every run it reports usage per model before completing the job.
  • Extraction-Loop. Raw text and a JSON schema in, validated JSON out. Every extracted value carries the verbatim quote it is based on, plus conditions, effective date and a flag whether it is provisional or contradicts the current state.
  • Cross-check. On request, a second step checks whether the quote really supports the value. Values the quote does not cover are discarded with a reason instead of ending up in the result. If the response does not match the schema, it is retried.
  • Model tiers instead of model names. A job chooses the tier Fast, Balanced or Max and optionally extended thinking. Which model sits behind it is set in the loop’s configuration. A free model field in the job would be an attack surface for injected instructions, so an unknown tier ends as an error instead of a silent fallback.
  • Measurable. Model, duration, token usage and cost are stored for every job. This makes it possible to compare tiers on the same reference case.

Technology

  • Standalone services in Docker on Coolify, connected to the hub via MCP, polling the queue every 10 seconds
  • The hub itself never calls a language model, it only holds jobs, results and usage
  • Execution through Claude Code in headless mode, tests of the Translation-Loop in Node.js (49 green tests, as of 11/2026)

Result and status

  • Extraction-Loop in operation since 07/2026. In the reference comparison of 13 Jul 2026, all three model tiers delivered the key values with verbatim quotes. In every tier, the cross-check discarded the same value that the quoted passage did not support.
  • Translation-Loop in operation since 06/2026, for example for the interface texts and store listings of an app in about 24 languages, with length limits per field and terms that must not be translated.
  • The Extraction-Loop serves as the test bench for the source-faithful monitoring of regulatory sources: before building a dedicated model integration, it shows whether a model keeps the required structure and backs every value.

All projects

Book a free, no-obligation initial call

In a free initial call we analyse your processes and agree on the framework for your project.

Email: support@codixio.com