Skip to content
dbtlrPublic

About

Work-state engine over SQLite — one query layer, CLI for humans, MCP server for agents

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

description Mimir work-state storage, installation, interfaces, and development entry points.

mimir

Mimir is a local-first source of truth for agent-driven work. It keeps projects, tasks, dependencies, decisions, and work products in one queryable system so an agent can act on current state and an operator can see what needs attention.

Work state lives in one local SQLite file by default, or in a shared PostgreSQL database for agents on several machines. Mimir derives queues, status rollups, blockers, and stale work when queried; there is no second cache of project status to keep in sync.

Mimir Home: the sidebar lists the projects, those that need you first; the page shows the Needs you cards, the work in flight, and what shipped this week

Why Mimir

  • One work model. The CLI, MCP server, /trpc Engine endpoint, and operator console use the same domain logic.
  • Agent-ready context. Repository binding and mimir overview give an agent the current direction, active work, ready queue, dependencies, and recent sessions.
  • Operator control. The console spans projects, tasks, Artifacts, Seeds, and record health. It supports daily authoring and lifecycle actions.
  • Store ownership. The CLI keeps a local SQLite file, or pairs with a host that owns a SQLite or PostgreSQL store. Both keep work state in one SQL store with transactional writes. mimir store export backs up a local store, and mimir-host store export backs up the host's.
  • Derived state. Rank, dependencies, lifecycle, and holds determine what is ready, awaiting, blocked, stale, or complete.

What it handles

Need Mimir capability
Plan and run work Project → initiative → phase → task hierarchy, ranked queues, dependencies, lifecycle, and holds
Preserve outcomes Frozen, tagged Artifacts linked to the work that produced them
Keep temporary context Resumable Scratchpads with a Journal and Agenda that freeze into Artifacts
Groom new work Seeds for ideas, bugs, features, and cross-project requests
Resume agent sessions Direction, execution handles, annotations, and session-summary Artifacts
Operate the store Record diagnostics, backup by export, and self-update

Five-minute start

Install the standalone binary:

curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/dbtlr/mimir/main/install.sh | sh

The installer verifies the release, records the installation, and registers the MCP server with Claude Code and Codex, whichever are installed. See Install location for choosing a directory or version, the first-run binding, and upgrading an earlier installation. mimir version prints the installed version, and mimir self-update replaces the binary.

The CLI keeps its board in SQLite: nothing to install or configure, and Mimir creates store.sqlite in its data directory on first use. To share a board across machines, run a host over SQLite or PostgreSQL and pair each CLI with it using mimir pair.

To move a Norn vault from an earlier release into SQLite, see Moving from a Norn vault.

Then create a project and bind a repository to it:

mimir create project "Aurora" --key AUR --yes
cd path/to/aurora
mimir bind AUR
mimir skills install

From the bound repository, an agent can orient and begin the highest-ranked ready task without repeating the project key:

mimir overview
mimir next
initiative_id=$(mimir create initiative "Release 1.0" --parent AUR -f ids)
task_id=$(mimir create task "Verify sign-in recovery" --parent "$initiative_id" --size s -f ids)
mimir start "$task_id"

The operator console comes from the host container, ghcr.io/dbtlr/mimir-host. The host guide covers running it over SQLite or Postgres, reaching it from another device, and upgrading it. The mimir binary carries the CLI and the MCP server only.

Learn Mimir

The user guide collects these workflows. Host and installation operations live in docs/guides. The maintained schema, output contract, and ADRs cover engineering details.

Status

Mimir is pre-release (0.x) and built for a single operator. The CLI, MCP, /trpc Engine endpoint, and console cover read and write workflows. The console is an installable PWA with cached offline reads; writes require a live host and are not queued offline. Authentication and multi-operator collaboration are outside the current product.

Develop

Mimir uses Bun 1.4.4:

bun install
bun run verify

Use bun run test:postgres for the disposable Postgres server lane and bun run test:sandbox for the native installer lifecycle. To run the development host against Postgres, run bun run sandbox create. See the sandbox guide.

For documentation screenshots, bun run fixtures:docs generates a demo workspace that the development host serves. See writing style.

See CONTRIBUTING.md for the project structure and review process. The source tree also builds a TanStack Start host image for the local SQLite integration slice. Its current boundary is documented in the project structure.

License

MIT

About

Work-state engine over SQLite — one query layer, CLI for humans, MCP server for agents

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages