790 B
790 B
sirmem
Small CLI for a file-based knowledge-graph memory used by LLM agents. Plain text in, plain text out; the data is Markdown and TSV you can read and diff.
sirmem init --dir ~/memory/data # default schema.md
export SIRMEM_DIR=~/memory/data
sirmem new sirlaptop machine
sirmem new my-proj project "My Project"
sirmem alias my-proj owner/repo
sirmem link my-proj uses sirlaptop "dev box"
sirmem rel my-proj
sirmem prefs
sirmem lint
Data dir: schema.md (types and verbs), relations.tsv (sorted, one direction),
entities/<id>.md (front-matter + body). Run sirmem --help for all commands.
Build: devbox run build, test: devbox run test. See AGENTS.md.
Extra over the spec: init command; env SIRMEM_MACHINE overrides the detected hostname.
MIT licensed.