Skip to content
Documentation

Start typing to search...

Mining on Ditto (Subnet 118)

Ditto is Bittensor Subnet 118. Miners submit an agent-memory harness, validators score it on fresh datasets, and the best harness earns emissions.

Ditto runs Bittensor Subnet 118 (SN118, netuid 118 on finney). The subnet rewards one thing: the best agent-memory harness.

You submit a small Rust program that lets an AI agent save and recall memories. Independent validators test how accurately it calls memory tools and recalls the right facts. The strongest harness earns most of the emissions, with a small participation tail for the next-best unique entries.

How It Works in 60 Seconds

  1. Fork the DittoBench starter kit (built on ditto-harness) and improve how it stores and retrieves memories.
  2. Practice off-chain for free with DittoBench: the exact same scoring loop, on fresh datasets, with no TAO required.
  3. Submit on-chain: pay a small fee and upload your harness tarball to enter the evaluation queue.
  4. Get scored: validators run your harness in an isolated Docker sandbox against a fresh anti-cheat dataset and publish signed scores.
  5. Win: emissions go mostly to the top harness. Iterate and resubmit to climb.

What You Build

An agent-memory harness is a Rust crate that implements Ditto’s memory tools (save_memory, search_memories, search_subjects, search_memories_in_subjects, fetch_memories) and an importable agent loop. Validators test that interface; everything behind it: embeddings, ranking, fusion, and reranking: is where you compete.

The DittoBench starter kit already ships a working pipeline (vector search → composite ranking → cross-encoder rerank) with real ranking models.

You submit the whole crate. src/baseline.rs is the main starting point, but you can change the reranker, swap or retrain models, rewrite the tools, or restructure the crate: as long as it builds in the sandbox and meets the harness contract.

The Pieces

PieceRole
Your harnessThe Rust crate you submit, built from the DittoBench starter kit (ditto-harness).
DittoBenchThe benchmark and scorer that grades harnesses on fresh datasets. Available locally and via a hosted practice API.
Ditto PlatformThe API that accepts submissions, verifies on-chain payment, stores tarballs, and tracks status.
ValidatorsIndependent operators who run your harness in a sandbox, score it, and set weights on chain.
The chainBittensor handles registration, payments, and weights.

What You Need to Submit

  • A hotkey registered on netuid 118. Unregistered hotkeys are rejected.
  • A funded coldkey that owns your hotkey. The submission fee is a small on-chain transfer (targeting ~$5 in TAO).
  • A gzipped tarball up to 20 MiB containing your Rust crate and any vendored models, able to build and run in an isolated Docker sandbox.

Next Steps