Skip to content
FDFerdinand Dero Saputra
All workid

Case study — 04

dhybrid-agent

A terminal coding agent that sends routine steps to a cheap model and hard reasoning to a large one, with a plan mode that blocks every write.

Role
CLI tool · personal project
Year
2026
Stack
Python 3.12CLILLM routing

01 — Context

A coding agent that uses one large model for every step spends budget on file reads and test runs. Its user also needs to know what it may change before it changes anything.

02 — Approach

  1. 01

    Routing per step

    Routine work — reading files, running tests, small edits — goes to a fast model. Planning and hard debugging escalate to a large one, and escalation needs explicit approval.

  2. 02

    Plan mode is read-only

    In plan mode every write, patch, commit, and issue or PR action is blocked, and terminal commands are limited to read-only ones.

  3. 03

    State stays local

    All data is kept in ~/.dhybrid/, with no server and no telemetry.

03 — Outcome

Installable with pip, released under the MIT license, and marked Beta. Token cost is measured per session through a /tokens command.

modes: plan and build
2
telemetry sent
0
license, Beta status
MIT
Source on GitHub
PreviousftrackNextOAuth system
  • Blog
  • Contact
  • Resume

© 2026 Ferdinand Dero Saputra — built in Next.js & Tailwind

--:--Back to top ↑