I built a pipeline of seven AI agents. On the shop floor, one agent parses the task (Я собрал конвейер из семи ИИ-агентов. В цеху задачу разбирает один)
B · Useful, limited A solo builder of a machining-shop management app gives logged cost and latency per run, an action-policy table and a bug chain worth copying, but the evidence is a first run and three test parses with no accuracy measurement.
Summary based on the full text·Original: about 9 minutes to read
In short
A Habr post (November 2026) by the builder of a management app for a machining shop. He first built seven agents: five chained ones that turn any workshop message (a leak report, a parts shortage, a supplier invoice photo, a task) into a draft action, and two scheduled ones. When he tried it for voice tasks on the shop floor, the chain was too slow and too expensive for a person standing at a machine who checks the form anyway. The task button now uses one small agent; the five-agent chain waits for inputs whose type is unknown in advance.
Key numbers
- 22.7 s and about $0.108time and cost of one full five-agent run on a short shop-floor message
- about 15 sextra time for server-side Whisper transcription when the message is voice
- about $0.0013cost per parse with the single Haiku 4.5 agent (three parses cost $0.004 together)
- 5chained bugs hidden behind a silent validator_skipped flag (four in the validator, one in the drafter)
As reported by the source.
Russian·Web page·opens habr.com
What it reports
- Chain: normaliser and classifier on Haiku 4.5; extractor (six types, each with its own prompt and schema), drafter and validator on Sonnet 4.6. The validator queries the database through tools (projects, work orders, materials, people, open issues), with at most five rounds. Two scheduled agents run SQL first and call a model only if SQL finds something.
- Runs on Celery with a ten-minute Redis lock per message and up to three retries; every model call is logged with model, tokens, price, time and confidence.
- An action policy table: some actions apply automatically above a confidence threshold (0.80-0.90), purchase requests always stay drafts, and approving a drawing revision, consuming material or releasing a work order are forbidden to agents at any confidence. Unknown actions become drafts for an administrator.
- First full run ("machine 10 lids for motor AD-1"): 22.7 s and about $0.108, plus about 15 s for Whisper on voice input. The validator raised its first real issue.
- A "validator_skipped" flag let unparsed validator output pass as "not checked". Behind it: preamble text before the JSON, Pydantic objects not serialisable to JSONB, JSON without a code block (fixed with the standard-library raw_decode), and a null where a string was expected. Separately, the drafter sometimes returned an empty payload, now patched by copying the extractor's fields.
- A fix that did not take effect was in deployment, not code: the container had the old code baked in.
- Single agent for the task button: phone-side speech recognition, one Haiku 4.5 call capped at 800 tokens, server-side matching of the assignee by word stems before the model, with names replaced by a placeholder so they are not sent to Claude. Up to 30 active projects and 12 similar tasks go in the prompt. Three parses cost $0.004 together.
How they got it
Figures come from the app's own per-call log for one full pipeline run and three single-agent parses. Accuracy was not measured; the author says so when comparing with published multi-agent research.
Limits
- One run and three parses are anecdotes, not a benchmark.
- No accuracy or error rate for either design.
- One small shop and one developer; the earlier Telegram input was dropped, so the chain currently has no live input.
Why it matters for companies
Start where the person stands, not with the architecture: when the input type is known and a person reviews the form, one cheap call does the job at a small fraction of the cost and latency. Keep multi-agent chains for inputs that must first be identified. Two practices carry over to any agent deployment: a policy table that bars agents from irreversible actions regardless of confidence, and making any "skipped check" flag loud, since a silent fallback here hid five bugs.
Key passages in translation
Russian original
Утвердить ревизию чертежа, списать материал или выпустить наряд в цех агент не может никогда, с любой уверенностью.
The agent can never approve a drawing revision, write off material or release a work order to the shop, at any confidence.
Russian original
Задумывался он как страховка, на деле стал одеялом, под которым жили четыре бага.
It was meant as a safety net; in practice it became a blanket under which four bugs lived.
Russian original
Семь агентов нужны там, где неизвестно, что пришло.
Seven agents are needed where you do not know what has arrived.
Summary based on the full text. Read the original for the full argument and data.Read the original on habr.com