Repository navigation
Releases
dogu 0.7.7: code mode for your MCP tools, a quarter of the cost, half the time
Code mode for your MCP tools: a quarter of the cost, half the time.
On MCPMark, a public benchmark we did not write (40 filesystem tasks, 3 runs each, judged by its own checkers), dogu's code mode passed 101 of 120 tasks against 102 with the server loaded directly, at $0.052 a task against $0.199 (74% less) and 11.8 s against 24.3 s (2.1× faster). Every result, including where dogu loses.
New in 0.7.7: dogu import
One command moves your servers to dogu, so your app can stop loading every tool definition itself:
curl -fsSL https://raw.githubusercontent.com/New1Direction/dogu/main/install.sh | sh
dogu import # copies your servers into dogu and syncs them
claude mcp add --scope user tools -- dogu serve # Claude Code now uses code mode
dogu import copies your servers from Claude Code, Claude Desktop, Cursor or any MCP config into ~/.config/dogu/mcp.json (as written, so ${VAR} secrets stay unexpanded; readable only by you), syncs them, and prints the claude mcp remove line for each server. Your app's own config is not changed.
This week
- 0.7.6: code mode tells the agent what a call returns. On MCPMark, agents had guessed MCP's raw
content[0].textand written JSON into files; on the 34 MCPMark tasks not studied to find this, code mode now passes 94 of 102 against 90. - 0.7.5: works with MCP servers built with Effect 4 (stdio and HTTP, both protocol eras), tested in CI.
- 0.7.4: the folder's README teaches agents to start independent calls together: folder tasks 29% faster.
- 0.7.2: repeated read-only calls are answered from a 30-second cache.
Measured against: loading servers directly, Claude Code's tool search, UTCP code-mode, and pi's and Codex's own code modes. The method, and every experiment that lost, is in the research log.
Full changes: CHANGELOG.
v0.7.6
Changed
- Code mode's
run_codedescription says what a call returns: the tool's own result, with nocontent[0].textwrapper. On MCPMark, agents that guessed MCP's raw shape wrote JSON into files instead of their text; on a task set frozen before the change, the guess went from 3 of 21 runs to none, and tasks got 15% faster at the median. On the 34 MCPMark tasks not studied to find it, code mode passed 94 of 102 against 90, 6% cheaper and 7% faster.
v0.7.5
Fixed
- A parameter that is a number or a few named values (Effect's
Schema.Numberallows the stringsInfinity,-InfinityandNaN) showed as<value>in the folder's README and--help; it now shows as<number>and is parsed as one, and a named value is passed as the string the schema allows. The same rule types optional parameters written as "a kind or null".
Added
tests/effect.sh, run in CI: dogu against an MCP server built with Effect 4's own MCP modules, over stdio and Streamable HTTP, in both protocol eras (2025-11-25 and the stateless 2026-07-28). It checks sync, folder calls, a failing call, a program withPromise.allandPromise.allSettled, and the read cache.
v0.7.4
Changed
- The folder's README tells agents to start calls that do not depend on each other together (
Promise.allin a./runprogram,Promise.allSettledwhen some may fail) and to print only the fields they need; a shell loop runs calls one after another. On a task set frozen before the change, folder tasks got 29% faster at the median (8.8 → 6.3 s), with tool time halved and the same answers.
v0.7.3
Fixed
dogu --helpno longer saysdogu runneeds Deno: the sandbox has been built in since 0.5.0. The error whenDOGU_SANDBOX=denois set and Deno is missing now says to install Deno or unsetDOGU_SANDBOX.
v0.7.2
Added
- A repeated call to a read-only tool (one the server marks
readOnlyHint) with the same arguments, withinDOGU_CACHE_SECSseconds (30; 0 turns it off), is answered from memory, indogu serve,dogu runand the folder's background dogu. Agents often call a tool to look, then again to take a field out. On held-out tasks: tool time 1.00 -> 0.61 s, average task 4.58 -> 4.01 s, same cost and answers.
v0.7.1
Changed
run_code's description showsPromise.allSettledfor calls that may fail, printing just the field needed from each. On new held-out tasks where some calls fail: 11% cheaper, average task 9.3 -> 7.8 s, the same answers; no change on ordinary tasks.
v0.7.0
Added
- A warm folder: the first folder command starts one background dogu for the folder, which keeps its servers running and connected, so later commands skip starting a server and connecting. Local npx server: 0.69 -> 0.01 s per call; GitHub: 1.00 -> 0.46 s. It uses a socket only you can use, steps aside on a new sync or changed settings, and leaves after
DOGU_WARM_IDLEseconds (600).DOGU_WARM=0turns it off.
v0.6.1
Fixed
- Code mode picks the right tool where a name misleads.
search's description now says what each tool does, with any sentence that limits a tool first: GitHub'ssearch_issues"Already scoped to is:issue" searches issues only, so it cannot count issues and pull requests together. On new held-out tasks written for this: 17 -> 21 right out of 21, the same as loading the servers directly. - Calls to HTTP servers reuse one connection. dogu stopped reading each streamed answer at the answer itself, so every call opened a new TCP and TLS connection; a GitHub call on an open connection went from about 600 to 400 ms.
dogu serve's warm start opens the network connection of modern HTTP servers too; before, connecting to them sent nothing, so the first call still paid for it.
Changed
run_code's description shows how to start calls together withPromise.all, and says to print a whole result rather than a slice when its shape is unknown (dogu shortens long output itself). Both cut model turns and tool time on new held-out tasks.
v0.6.0
Changed
- Code mode in Claude Code usually needs one model turn fewer.
run_code's description lists every tool with the arguments it requires, grouped by those arguments, within the 4,096 characters Claude Code shows of a description. On the second set of held-out tasks: typical task 4.5 s → 3.6 s with start-up, input tokens -30%, cost -10%, every answer right. dogu serveconnects to every server as it starts, while the model reads the task, as Claude Code does with its own servers. It never opens a login for this; a server that fails is connected on first use, as before.- Calls a program starts together (
Promise.all) run at the same time, and the servers a program needs are connected at the same time: a program making 4 calls went from 2.4 s to 1.0 s.
Added
- A failed tool call's error ends with the tool's full type, so the next try can get the arguments right.
- BENCHMARKS.md has pictures: the headline numbers, how each way works, and where the seconds of a task go. docs/research/code-mode.md records every experiment, including the ones that lost.
- The benchmark has a second set of held-out tasks, records when each step of a run happens, runs two builds against each other in one session, and rotates which setup goes first.
Fixed
- Servers started with npx work inside Codex's sandbox without the
~/.npmsetting: when npm's cache cannot be written, dogu gives npm one in the temp folder.