Your software and AI agents keep their data without servers
Most software keeps its memory, search and storage on separate servers that someone has to
run and pay for. The garden puts them inside your program, as six small libraries, a record
store that survives crashes, and a notation made for AI agents.
AI answers are only as good as the context behind them
An AI model that has to hunt through files for its context takes more steps, and every step
costs time and money. The garden does the finding in plain code, so the model starts with the
facts it needs.
Search, ranking, memory, caching and access checks run the same way every time, and none of
them asks a model to decide anything.
01
The flowers
Six libraries · No server
Six libraries handle your data with no servers to buy or run.
Each flower keeps one kind of data and works with any kind of record. Python is the reference copy, and the C# copies follow the same rulebook.
Nothing here is a service to run or a vendor to depend on.
Each part is code that runs inside your program, and your data stays where your program keeps it.
Portable
A rulebook applies to any language, any time
Each flower is defined by numbered rules and test cases that belong to no language, so no team
is locked into one. Python is the reference copy, the C# copies answer the same cases, and a
copy in Rust, C++ or any other language would be judged by them too.
The rulebook fixes behavior and any file that crosses languages, byte for byte. Names and
memory layout are left to each language, so every copy reads as if it were written there.
01
The rulebook
Numbered rules in plain language, one behavior each. A rule is never renumbered.
A-21. The defaults are k1 1.5 and b 0.75.
02
The cases
Operations and their expected results, stored as data any language can read.
A new language needs one small runner that maps the cases onto its own API.
Pythonthe reference
C#all six flowers
GoGVN
Rustopen
C++open
Yoursopen
How it works
Each flower ships a manifest, its rulebook, case files and a small runner per language. Every rule has a case and every case names a rule, and a runner fails on any gap between the two.
Results that depend on a platform's math library, such as ranking scores, are compared within a stated tolerance.
Where a file crosses languages, as a sealed vault does, reference files are checked in byte for byte, and a live cross-check has each copy write what the other reads.
Mutation tests break a copy one line at a time to show the cases catch each break.
GVN follows the same pattern with its own corpus, and Terrarium's on-disk format is specified in full, apart from its code.
The flowers
Six building blocks cover the data most software needs
Pick the ones you need. Each works alone and fits with the others, whether it holds a
company's records, an assistant's memory or a game's world.
01
You import it and call it
No server, no port and no process to run.
02
It holds any kind of data
It stores what you give it and hands it back when you ask.
03
Every layer can be swapped
Backends, embedders and serializers plug in behind one interface.
04
Extras are switches you turn on
The smallest setup needs only Python. Databases, encryption and a GPU come when you want them.
Fig. 1
Camellia
01Vector memory
Camellia
It finds things by what they mean
Store documents, notes or messages as text, then ask in your own words. Camellia hands back the closest matches, and old memories can fade on their own.
from camellia import MemoryStore
Used in
Life Afterthe world's memory of what you did, and how it fades
Hearththe memory layer
Planned for
Corvathsemantic memory
How it works
Text becomes vectors through a pluggable embedder, either a NumPy one with no model at all or a local GGUF model through llama.cpp. Search is cosine similarity over the stored vectors. An optional lifecycle gives each memory an importance that decays with time, grows when the memory is recalled, and prunes the weakest.
Made with
Python
GDScript port
C# port
NumPy
Cosine search
Storage
In-memory
SQLite
PostgreSQL
Camellia in Grimvane's project graph, as an agent reads it
rel.corvath.camellia.usage = "Semantic memory and vector retrieval"
rel.flower-garden.camellia.type = "contains"
rel.hearth.camellia.type = "depends-on"
rel.hearth.camellia.usage = "Vector store and embedder for the memory layer; keyword fallback only when the package is absent"
rel.life-after.camellia.type = "consumes"
rel.life-after.camellia.usage = "World memory, semantic traces of player actions, decay over time/distance (GDScript port)"
Fig. 2
Dahlia
02Structured storage
Dahlia
It keeps structured records with no database server
Describe the shape of a record once, then store as many as you like and ask for exactly the ones you want. They can live in memory or in a single file, and the same code works with PostgreSQL if you already run it.
from dahlia import Store
Used in
Life Afterinventory, the state of objects and rooms
Kindlefallcard definitions, enemies, relics and the state of each run
Planned for
Corvathstructured data
How it works
You declare a schema as a dataclass or a typed dict, and every record is checked against it before it is written. Queries combine filter operators over any field. The same API runs in memory, on SQLite or on PostgreSQL. The C# copy keeps each field in one typed array per collection, so a filter walks memory in order.
Made with
Python
GDScript port
C# port
Schema validation
Storage
In-memory
SQLite
PostgreSQL
Dahlia in Grimvane's project graph, as an agent reads it
It maps how things connect and finds what is related
Store things and the links between them, then walk the links, find a path, or pull out just the part of the graph you care about.
from wisteria import Graph, ActivationEngine, CompressedStore
Used in
Life Afterthe world as a graph of places, things and what you did
Kindlefallthe overworld map, rival pathfinding and territory
Planned for
Corvathknowledge graphs
Project Blackboxrelationships between characters and factions
How it works
Nodes and directed edges are typed and carry metadata, with traversal, path-finding and subgraph extraction built in. An activation engine spreads relevance out from a starting point across several families of edge at once, so the same node can rank differently depending on what was asked before. Large graphs fit in a compressed store.
Made with
Python
GDScript port
C# port
Graph traversal
Multi-head activation
Storage
In-memory
SQLite
PostgreSQL
Wisteria in Grimvane's project graph, as an agent reads it
It searches by keyword and ranks the best match first
Aster searches text by keyword, counts the results by category and shows where each match sits. It pairs with Camellia, which matches meaning instead of words.
from aster import Index
Used in
Life Aftersearchable journals, terminals and inscriptions
Planned for
Corvathfull-text search
How it works
Text is tokenized into an inverted index and ranked with BM25. Results come back with facet counts and highlighted snippets. The index lives in memory, in SQLite FTS5 or in PostgreSQL tsvector, and the C# copy ranks the same way as the Python original.
Made with
Python
GDScript port
C# port
BM25 ranking
Tokenization
Storage
In-memory
SQLite FTS5
PostgreSQL tsvector
Aster in Grimvane's project graph, as an agent reads it
aster.description = "Full-text search and indexing with BM25 ranking, faceted search, highlighting"
aster.name = "Aster"
aster.tech[0] = "python"
aster.type = "library"
rel.corvath.aster.type = "planned-consumes"
rel.corvath.aster.usage = "Full-text search across knowledge base"
rel.flower-garden.aster.type = "contains"
rel.life-after.aster.type = "consumes"
rel.life-after.aster.usage = "Searchable lore from journals, terminals, inscriptions (GDScript port)"
Fig. 5
Lotus
05Tiered cache
Lotus
It keeps your busiest data fast and the rest cheap
Hot data stays in memory, warm data on disk and cold data in a remote store. Whatever you read moves closer, and stale entries expire on their own.
from lotus import Cache
Used in
Life Afterkeeping nearby areas fast and distant ones cold
Planned for
Corvathresponse and context caching
How it works
Three tiers sit behind one key-value API: a dictionary in memory, SQLite on disk, and any cold backend that implements the tier protocol. Each tier evicts by least recent use and by time to live, configured per tier, and a read promotes an entry toward the hot tier.
Made with
Python
GDScript port
C# port
LRU
TTL
Storage
Memory (hot)
SQLite (warm)
Any remote store (cold)
Lotus in Grimvane's project graph, as an agent reads it
rel.corvath.lotus.usage = "Response and context caching"
rel.flower-garden.lotus.type = "contains"
rel.life-after.lotus.type = "consumes"
rel.life-after.lotus.usage = "Zone caching, hot/warm/cold tiers by proximity to explorer (GDScript port)"
Fig. 6
Thistle
06Encrypted storage
Thistle
It encrypts sensitive data and can record who opened it
Everything is encrypted at rest and opens only with a key. Access can be limited by role, and every open can be written to an audit log.
from thistle import Vault
Used in
Life Afterlocked vaults and the record of who opened them
Planned for
Corvathcredentials and other sensitive data
How it works
Data is sealed with AES-256-GCM under a key derived from a passphrase through PBKDF2-HMAC-SHA256 or Argon2id. Role-based access and the audit log are optional layers over the same vault. A vault sealed by the C# copy opens in the Python one, and the reverse.
Made with
Python
GDScript port
C# port
AES-256-GCM
PBKDF2 or Argon2
Storage
Encrypted file store
Encrypted SQLite
Thistle in Grimvane's project graph, as an agent reads it
rel.corvath.thistle.type = "planned-consumes"
rel.corvath.thistle.usage = "Encrypted credential and sensitive data storage"
Terrarium is a record store that runs inside your program, for anything that has to keep its
data, from business records and event logs to a game's world. There is no database server to
license or run, nothing to install beside your program, and it finds any record quickly.
215 msto read a million records, encrypted
24xfaster reads than SQLite
0acknowledged writes lost in forced crashes
Grimvane's benchmark on one machine, with a million records and SQLite called directly through
its C library.
Made with
C#
AES-GCM
CRC-32C
Spatial index
Used in
Project Blackbox keeps its saved worlds in it
01
One writer, never two
A store is a folder that exactly one writer holds. A second writer is turned away.
02
A write lands whole or not at all
Changes land as whole commits. After a crash, each one is either all there or not there at all.
03
Encryption is built in
A sealed store encrypts everything it writes, so neither the records nor the shape of the data can be read.
04
Choose how safe each write is
Every commit survives the program dying. A durable commit also survives the power going out.
05
A large store stays light in memory
Recent changes stay in memory and older ones fold into snapshots on disk, so a large store stays small in RAM.
06
Indexes you declare
Look records up by key, by any field you index, or by location, for anything with a position.
07
Follow changes live
Other readers can follow every commit in order without ever slowing the writer down.
08
Old records still open
Records written by an older version of your software are upgraded as they are read.
How it works
Writes append to segment files as checked line frames. An open frame carries a CRC-32C, and a sealed frame is AES-GCM ciphertext with its nonce and tag.
A manifest names the live snapshot and segments. A new one is written, synced and renamed into place, so a reader never sees a half-made state.
Compaction merges closed segments into a new sorted snapshot off the write path, so the writer never waits on it. Event streams are kept whole and never compacted.
A lookup reads the in-memory tail first, then one block of the snapshot, found through a sparse key index.
Secondary indexes are declared when a store opens, on a field path or a function you register, unique or not, with an optional filter. The spatial index buckets points into cells of a size you choose.
On a host, commits that land close together share one disk sync.
The on-disk format is specified in full, apart from the code, so a reader could be written from the document alone.
GVN · Grimvane Notation
Every line an AI agent reads stands on its own
An AI agent rarely reads a whole file, and in a nested file a line pulled out on its own can
lose its meaning. In GVN every line says exactly what it is about, so an agent fetches only the
lines it needs.
Each statement is a path and a value, and the path names its subject in full. Grimvane's
tools hand an agent only the lines it asked for.
# one statement per line: <path> = <value>
wisteria.name = "Wisteria"
wisteria.tech[0] = "python"
rel.life-after.wisteria.type = "consumes"
A value is a JSON scalar: a string, a number, true, false or null. Structure lives in the path, never in the value.
Order lives in [i] indices, so shuffling the lines loses nothing.
Edges are statements too, under rel., with the source and the target in the path.
Every document has exactly one canonical form, sorted and deduplicated, so the same facts always produce the same bytes. A merge is a union of lines, and two values at one path are reported as a conflict instead of being settled silently.
A malformed line is reported and skipped, and the lines around it are untouched.
Implementations in Python and Go write the same canonical bytes for the same facts.
In use
The garden already runs inside Grimvane's products
Every part on this page is at work in one of Grimvane's own products, from games to a
self-hosted AI chat.
Featured · Uses the most of it
Project Blackbox
Project Blackbox is a game set in a walkable world, where skills grow out of how each person
plays. A team of AI agent sessions works on it, and GVN is how they share what they know.
Terrariumkeeps its saved worlds and characters, and recovers them after a crash
GVNmaps its own code, every component and file, so an agent searches the map instead of reading the tree
GVNholds the shared record ten AI agent sessions keep of their decisions, rules and work in progress
Wisteria · plannedrelationships between characters and factions, and the paths rumors travel
A cinematic adventure about a long walk home, running on all six flowers.
AI assistant
Hearth
A self-hosted AI chat. Camellia is its memory layer, and its character cards are written in GVN.
Game
Kindlefall
A roguelike deckbuilder. Dahlia holds its cards and runs, and Wisteria draws its overworld.
Used in a game
Life After runs on all six flowers
Life After is a cinematic adventure game about a long walk home. Every flower has a part in
it, and the game shows what the six do when they run together.
Camellia, the soul
It remembers what you did, and it forgets if you stay away too long.
Dahlia, the skeleton
Inventory, the state of objects, rooms and interaction flags all rest on it.
Wisteria, the spine
The world is a graph of places, things and what you did, and sound travels along it.
Aster, the recall
It searches the journals, terminal logs and inscriptions the world leaves lying about.
Lotus, the performance
It keeps the area you are in fast and lets the distant regions go cold.
Thistle, the lock
What it guards is sealed, and the record of who opened it before you is part of the story.