Skip to content

Hydra 0.3.4: accurate file reads, cleaner digests, MCP folder limit

Choose a tag to compare

@rahul05ranjan rahul05ranjan released this 20 Nov 10:06

Correctness fixes for file reads and test digests, a tighter MCP server, and a 10,000-task held-out evaluation.

File reads (hydra read, Read head)

  • Go outlines were wrong for about a third of files. JavaScript's var pattern picked up Go var blocks, and generic functions (func Map[T any](), non-struct types (type Mode int), aliases and grouped type ( … ) specs were missed. Outlines now follow each language's own rules.
  • Symbol lookups now match case first (Go's insert no longer finds Insert), no longer take a Rust let len = … for a definition, end Python blocks where the parser does (one-line defs and trailing comments included), skip definitions inside strings, prefer a Rust implementation over its trait signature, and stop multi-line bodyless Go functions where they end.
  • JavaScript generators (function*) and Rust unsafe trait now appear in outlines.
  • Checked against the language parsers on every development source file: 884 of 884 outlines and 7,070 of 7,070 symbols now match exactly. The Read held-out score rose from 96.1% to 98.2%.

Test and build digests

  • A short cargo failure could come back larger than the raw log: [unoptimized + debuginfo] was read as a diff line, which pulled in the build preamble and every passing test. Cargo status lines, passing-test lines and the RUST_BACKTRACE hint are no longer treated as failure evidence. The 20-task benchmark is now 20/20.

MCP server

  • Tools now work only inside the folders the client opened. Hydra asks a client that supports MCP roots for its folders; otherwise it uses the folder it was started in, or HYDRA_MCP_ROOTS if set. A refused folder is recorded locally, so hydra improve shows it.

Privacy

  • Masking in the local usage ledger now stops at ;, & and |. Before, in A=x;B='y z' part of B's value could stay in clear. Masking an already-masked row now changes nothing.

Evaluation

  • Hydra Nano v2 on a fresh 10,000-task held-out set (2,000 per head, scored once on a Kaggle T4): Files 98.1%, Read 97.6%, Test 97.5%, OS 98.0%, Git 94.2%, 97.1% overall. Git and OS score lower on wordings they had not seen before; that is the next thing to work on.