Lab / Concept

Agent tooling

Leviathan: borrow before you build

A local, searchable index of every repository you own, so an agent looks for code you already wrote before it writes new code.

Planned open source Updated 4 min read

The idea

Agents write new code by default. Most of the time the thing they are about to write already exists somewhere in your own repositories: a reconnecting websocket, a passkey login, an installer script. Leviathan keeps a local, full-text index of every repository you own, so an agent searches before it builds and borrows the version you already tested.

How it works

  • Shallow clones of every repository, refreshed a few at a time, kept in a local cache and never pushed anywhere.
  • A SQLite full-text index over code, readmes, task-runner recipes and dependency lists.
  • One search command an agent can call, plus a fact card per repository: kind, licence, languages, recipes, dependencies.
  • Later: the same search over public open-source code, ranked by stars and filtered by licence.

Why it is a paradigm, not just a tool

The habit matters more than the index: search what you already own, then public code with its licence printed next to every hit, and only then write something new. Any team can adopt that rule with plain search tools today; Leviathan just makes it the default step for an agent.

Rules

Secrets never enter the index. A borrowed piece of code keeps its licence and its source is written down.

Status

Planned open source. The code stays private until it is ready to open; there is nothing to download yet.