Skip to content
RikaiDevPublic

About

Backend state harness for coding agents: map system boundaries, run authorized proofs, and return revision-bound receipts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Keiko

Keiko — a coding-agent harness built through deliberate practice

Keiko runs a coding model inside a bounded repository workflow, observes each tool outcome, corrects the run from recorded facts, and finishes only when verification passes.

Keiko means deliberate practice: act, observe, correct, and practice again.

Keiko owns the model loop, repository context, typed tools, policy, session state, recovery, trace, and completion gate. A governance layer applies the same discipline to Keiko itself through quality of service and quality control.

license status first slice

Current milestone

Implemented: VS-001A — Deterministic provider, governed loop, tools, trace, verification Next: VS-001B — Real provider adapter and redacted smoke trace

Run the deterministic self-check

uv sync --all-groups
uv run keiko self-check --json

The command creates a disposable Git fixture outside the current repository, completes one bounded coding task, verifies the final digest, and prints the compact run result and trace location.

Two control loops

The task harness controls coding work:

Task
  -> Context
  -> Model
  -> Authorized tool
  -> Observation
  -> Recovery or verification
  -> Terminal state

The harness governance layer controls Keiko:

QoS budgets
  + QC contracts
  + trace integrity
  + regression checks
  -> release gate

QoS bounds turns, tool calls, latency, retries, context, and output. QC validates schemas, state transitions, traces, acceptance cases, and release artifacts. A running session cannot relax its own governance contract.

First vertical slice

The current deterministic implementation completes one small task in a disposable fixture repository:

  1. Record a task, policy, and initial workspace digest.
  2. Assemble bounded repository context.
  3. Call one configured model provider.
  4. Support read_file, apply_patch, run_command, and git_diff.
  5. Authorize every write and command before execution.
  6. Return each tool observation to the next model turn.
  7. Run one declared test command as the completion gate.
  8. Save a trace and report completed only for the verified final digest.

The automated suite uses a deterministic provider double. One real provider adapter is required before the slice is usable outside tests.

See VS-001.

Architecture

License

MIT

About

Backend state harness for coding agents: map system boundaries, run authorized proofs, and return revision-bound receipts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages