Skip to content
Xuefeng Ding
中文

INTERACTIVE EXPLAINER

neutrix

neutrix is a terminal AI agent for complex research tasks. It speaks to DeepSeek, GLM, and Claude (via the IHEP gateway) through a single OpenAI client, uses tools to read and edit your code, and keeps the conversation in normal terminal scrollback.

Two model slots

fast / strong, switched in-chat with /fast and /strong.

Multi-provider

DeepSeek, GLM, and Claude behind one OpenAI client.

Built-in tools

read_file, write_file, list_dir, run_shell.

Async prompt queue

Keep typing while a response is running.

neutrix

·neutrix · strong slot → ihep/anthropic/claude-opus · tools: on

›why is tests/test_executor.py::test_submit_timeout flaky? propose a fix.

⌁read_file(tests/test_executor.py) → 142 lines

⌁run_shell(pytest -q tests/test_executor.py) → 1 failed, 7 passed

◇The race is in Executor.submit(): the worker can finish before the

◇main thread registers the future, so the 0.1s timeout occasionally wins.

›/fast

·switched → ihep/anthropic/claude-haiku (fast slot)

›apply the fix and re-run.

⌁write_file(src/neutrix/executor.py) → patched submit() (+6 −2)

⌁run_shell(pytest -q tests/test_executor.py) → 8 passed

◇Fixed: register the future before dispatching, and bump the join timeout.

A representative session — debugging a flaky test, switching model slots, and applying the fix.

pip install neutrix Source ↗