Agentic System ยท Engineering notes

Giving Qwen a bounded coding task

When Codex delegates a code question or edit to Qwen, I want to see whether the worker is making progress and what evidence it brings back.

Technology

  • Python
  • Qwen Code
  • Codex CLI
  • Streaming JSON

Set the scope before launch

The optional Qwen worker receives one task and a working directory. Its default audit mode excludes shell, write and edit tools. Edit mode is a deliberate choice. Codex inspects the resulting diff and runs validation before accepting the work.

Put numbers on the budget

The launcher sets defaults of 30 turns, 50 tool calls and ten minutes. I can give a specific task more time. The worker runs with its own temporary settings directory so a personal chat history or configuration need not follow it into the task.

Find out where a run stopped

The supervisor reads a stream of events. It records the tool name and a relative file path when available, and emits a heartbeat every minute by default. A timeout leaves a progress record without copying the source text or prompt into that log. The final answer returns separately to the lead.