protoVarintAt (antigravity/antigravity-proto.ts)

mulmoterminal · server/agents/antigravity/antigravity-proto.ts · typescript · MIT
database

Reading a few numbers out of a protobuf record whose schema we do not have. agy stores its per-generation accounting as protobuf blobs in a SQLite database (antigravity-usage.ts). There is no .proto anywhere on disk, so a field is addressed by NUMBER and its meaning was establish

// Source: https://github.com/receptron/mulmoterminal | License: MIT | Copyright 2026 Receptron
// Provided via justclaw.it.com; keep this notice with the code.
// Reading a few numbers out of a protobuf record whose schema we do not have.
//
// agy stores its per-generation accounting as protobuf blobs in a SQLite database
// (antigravity-usage.ts). There is no .proto anywhere on disk, so a field is addressed by NUMBER
// and its meaning was established by watching it: `1.9.10.1` climbs to 252,780 against `1.9.10.4`
// = 256,000 and drops when the conversation compacts, which is a context reading and nothing else.
//
// That is a fine way to learn a format and a terrible thing to trust blindly, so this walker is
// built to fail rather than to guess:
//
//   - it NEVER throws — a truncate

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key