# KeiSeiKit — a model-agnostic coding-agent stack

Canonical page: https://keilab.io/ai/keiseikit/

ai infrastructure · keiseikit

The lab's Rust toolkit for running coding agents: a native TUI cockpit, a multi-provider agent daemon that is not locked to one model vendor, a content-addressed cache underneath every capability call, and a sleep layer where agents keep improving between sessions. It is built for the lab's own daily work.

## What it is

KeiSeiKit is a coding-agent stack the lab built for itself: a native terminal cockpit (file tree, embedded shell, live agent session panel) driven by an agent daemon that speaks to whichever model backend is configured — the lab's own Anthropic-native provider, or any OpenAI-compatible endpoint, local or remote — through the same provider trait. Agent identity, orchestration policy, and guard-rail hooks are described declaratively, not hard-coded per agent.

## Everything through one cache

Underneath every agent capability call sits a single content-addressed cache — a SHA-256-keyed, SQLite-backed, TTL store that every atom-scale operation runs through. The same substrate gives the lab persistent cross-session memory and deterministic "has this exact request already been answered" lookups, instead of re-deriving the same result every session.

## A sleep layer — agents improve between sessions, not only in one

Most agent tooling treats every session as a blank slate. KeiSeiKit runs a three-phase sleep cycle instead: an incubation phase that lets slower background work land, a REM-style morning report that surfaces what changed overnight, and a longer NREM pass that produces a rolling 7-day refactor plan from the accumulated session history. The agent's working state consolidates while it is idle, while the lab's nervous-system layer (keineuron) is designed to track stability over time — see the research page for that side of the story.

## Built for daily work

The stack is built as a tool first, not a product: it is designed for the lab's own daily work, with many agent sessions running in parallel.

cross-references

- [→ KeiSeiSDK (standalone)](https://keilab.io/ai/keisei-sdk/)
- [→ KeiCortex (computer-use agent)](https://keilab.io/hardware/keicortex/)
- [→ keineuron (stability substrate)](https://keilab.io/research/keineuron/)
- [→ MAX (language)](https://keilab.io/ai/max/)

Status: In development

Language: Rust workspace

Cockpit: kei-tui — native ratatui/crossterm terminal UI

Daemon: kei-cortex — multi-provider HTTP+WS agent runtime

Providers: Model-agnostic — Anthropic-native + OpenAI-compatible (local or remote)

Sensitivity: engineering public

[⊸ Engineering inquiry](https://keilab.io/contact/)

---
KeiLab is operated by KeiSei LLC, a Wyoming limited liability company. +1 307 210 8538
Site index for AI agents: https://keilab.io/llms.txt
