Skip to content

Commit 69e8ef4

Browse files
authored
Merge pull request #4 from kurikomi-labs/readme-deslop
docs: plainer README
2 parents cea7b48 + 3332869 commit 69e8ef4

1 file changed

Lines changed: 37 additions & 79 deletions

File tree

README.md

Lines changed: 37 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,89 @@
11
# komi-learn
22

3-
**Continuous memory + self-improvement for AI agents.** Learns how you work, recalls it automatically, no commands. Claude Code & Codex.
3+
Continuous memory and self-improvement for coding agents. It learns how you work and recalls it automatically, with no commands. Works with Claude Code and Codex.
44

55
[![PyPI](https://img.shields.io/pypi/v/komi-learn)](https://pypi.org/project/komi-learn/)
66
[![Python](https://img.shields.io/pypi/pyversions/komi-learn)](https://pypi.org/project/komi-learn/)
77
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
88
[![CI](https://github.com/kurikomi-labs/komi-learn/actions/workflows/ci.yml/badge.svg)](https://github.com/kurikomi-labs/komi-learn/actions/workflows/ci.yml)
99

10-
**komi-learn** quietly watches how you work, distills the durable lessons (your style, your stack, techniques that pan out) in the background, and reloads the relevant ones into every new session — automatically, with no commands to type. One command to set up; then it just runs.
10+
It watches a session, distills durable lessons in the background (your style, your stack, fixes that worked), and loads the relevant ones at the start of the next session. No slash commands, nothing to save by hand.
1111

12-
> Inspired by [Hermes Agent](https://github.com/nousresearch/hermes-agent)'s self-improvement loop — rebuilt to be model-agnostic, universal, and *shareable* (see the community pool below). Early days — feedback very welcome.
12+
The idea is from [Hermes Agent](https://github.com/nousresearch/hermes-agent); this is my own take, generalized across hosts with an optional shared layer (the community pool, below).
1313

14-
---
14+
It's early. The core loop is built and CI-tested, but it hasn't been battle-tested across a lot of real sessions yet. Feedback and bug reports are welcome.
1515

16-
## What you get
17-
18-
- 🧠 **Remembers you** — your style, your stack, your conventions, across every session.
19-
- 🔁 **Learns in the background** — distills durable lessons from your work after the fact; never blocks you.
20-
-**Zero friction** — no slash commands, no "save this." It recalls what's relevant when a session starts.
21-
- 🔒 **Private by default** — everything stays on your machine. Nothing is shared unless you say so.
22-
- 🌍 **Optional community pool** — opt in to get useful, anonymized tips other agents have learned (and share your own, only after you approve each one).
23-
- 🔌 **Host-agnostic** — same brain for Claude Code or Codex; a learning from one is recalled in the next session.
24-
25-
---
26-
27-
## Quick start
16+
## Install
2817

2918
```bash
3019
pip install komi-learn
31-
32-
komi-learn install # interactive setup — for Codex: komi-learn install --host codex
20+
komi-learn install # or: komi-learn install --host codex
3321
```
3422

35-
`komi-learn install` runs a short wizard: it explains each feature in one sentence, asks simple yes/no questions, and sets everything up for you. That's it — recall and background learning start in your **very next session**.
36-
37-
Already on Claude Code? You're already logged in — nothing else to do. (Scripting it? `komi-learn install --yes` takes the recommended defaults.)
23+
`install` runs a short interactive setup, then recall and background learning start in your next session. If you already use Claude Code you're already logged in. For scripts, `komi-learn install --yes` takes the defaults.
3824

39-
<details><summary>Or install from source</summary>
25+
From source:
4026

4127
```bash
4228
git clone https://github.com/kurikomi-labs/komi-learn
4329
cd komi-learn
4430
pip install -e .
4531
```
46-
</details>
4732

48-
---
49-
50-
## Everyday commands
33+
## Commands
5134

5235
```bash
53-
komi-learn doctor # is everything healthy? what to fix
54-
komi-learn status # your settings + how much it's learned
55-
komi-learn config # change any setting, anytime (menu)
56-
komi-learn sync # pull the latest community learnings now
57-
komi-learn queue # review/approve/reject what you'd share to the pool
36+
komi-learn doctor # check the install and what to fix
37+
komi-learn status # config + how much it has learned
38+
komi-learn config # change any setting (menu, or `config set <key> <val>`)
39+
komi-learn sync # pull the latest community learnings
40+
komi-learn queue # review/approve/reject what you'd contribute to the pool
5841
komi-learn forget <x> # erase learnings matching <x> (archive, or --hard to delete)
59-
komi-learn uninstall # remove it (keeps your learnings; --purge to wipe)
42+
komi-learn uninstall # remove the hooks (keeps your data; --purge to wipe)
6043
```
6144

62-
Change your mind later — you're never locked into install-time choices:
63-
64-
```bash
65-
komi-learn config set recall.semantic false # turn off meaning-based recall
66-
komi-learn config set pool.repo_url "" # leave the community pool
67-
komi-learn config show
68-
```
69-
70-
---
45+
You can change anything after install, e.g. `komi-learn config set recall.semantic false` or leave the pool with `komi-learn config set pool.repo_url ""`.
7146

7247
## How it works
7348

74-
```
75-
recall (session start) ──▶ your agent works ──▶ distill (background) ──▶ remembered next time
76-
```
77-
78-
1. **Recall** — when a session starts, the learnings relevant to what you're doing are loaded as context.
79-
2. **Distill** — after you work, a background pass extracts durable lessons (corrections, techniques, fixes) from the transcript.
80-
3. **Curate** — over time it consolidates overlapping lessons and retires stale ones, so memory stays sharp, not bloated.
81-
4. **Share** *(optional)* — general, anonymized lessons can be contributed to the community pool — but only ones **you approve**.
49+
1. Recall: at session start, learnings relevant to the current context are loaded.
50+
2. Distill: after the session, a background pass reads the transcript and extracts durable lessons (corrections, techniques, fixes).
51+
3. Curate: over time it merges overlapping lessons and archives stale ones.
52+
4. Share (optional): general lessons can be contributed to the community pool, but only ones you approve.
8253

83-
It deliberately *doesn't* learn the wrong things — secrets, machine-specific paths, one-off failures, or "tool X is broken" gripes are filtered out. Full design: [`docs/02-architecture.md`](docs/02-architecture.md).
54+
It tries not to learn the wrong things. Secrets, machine-specific paths, one-off failures, and "tool X is broken" complaints are filtered out by a deterministic check before the LLM ever sees them. Design notes: [docs/02-architecture.md](docs/02-architecture.md).
8455

85-
---
56+
## Community pool (optional)
8657

87-
## The community pool *(optional)*
58+
A public pool of general agent lessons, stored as a GitHub repo of signed Markdown files (no server). If you opt in, you get lessons other people's agents figured out, and you can contribute your own.
8859

89-
A shared, public pool of general agent lessons — a GitHub repo of signed `.md` files, no server. Opt in during setup to:
60+
Contributions are scrubbed of anything identifying and never leave your machine without your approval (each one opens a PR you reviewed). Learnings are content-addressed (BLAKE3) and signed (Ed25519); one signed by more distinct GitHub accounts ranks higher when pulled. That account count is Sybil-resistant but not Sybil-proof, so it's an advisory signal, not a hard trust gate. Recalled community items are labelled and treated as untrusted input. Details: [pool-repo-template/CONTRIBUTING.md](pool-repo-template/CONTRIBUTING.md).
9061

91-
- **Get** useful, anonymized techniques other people's agents have figured out.
92-
- **Give back** your own general lessons — scrubbed of anything identifying, and **never shared without your explicit approval** (each contribution opens a Pull Request you reviewed).
62+
## Try it offline
9363

94-
No personal data ever leaves your machine. Recalled community tips are clearly labelled and treated as untrusted reference. Details + safety model: [`docs/02-architecture.md`](docs/02-architecture.md), [`pool-repo-template/CONTRIBUTING.md`](pool-repo-template/CONTRIBUTING.md).
95-
96-
---
97-
98-
## Want to see it first?
99-
100-
No setup, no API key — run the offline demo:
64+
No setup or API key needed:
10165

10266
```bash
10367
python examples/demo_loop.py
10468
```
10569

106-
Two sessions: you correct the agent's style and a debugging trick emerges in the first; the second shows the agent recalling both with nothing typed.
107-
108-
---
70+
It runs two sessions: you correct the agent in the first, and the second shows it recalling that with nothing typed.
10971

11072
## Requirements
11173

112-
| Need | Why | How |
113-
|---|---|---|
114-
| Python 3.10+ | the engine | `pip install komi-learn` |
115-
| Claude Code **or** Codex | the agent it plugs into | [claude.com/claude-code](https://claude.com/claude-code) · [Codex CLI](https://github.com/openai/codex) |
116-
| A working model | reads sessions to learn | already logged in on Claude Code, or `komi-learn login`, or `--api-key sk-ant-…` |
74+
- Python 3.10+
75+
- Claude Code or Codex (the agent it plugs into)
76+
- A working model for the distill step: your existing Claude Code login, or `komi-learn login`, or an API key via `--api-key`.
11777

118-
`komi-learn install` **verifies all of this for real** (including an actual model call) and stops with exact fix steps if anything's missing — no silent half-install. If a hook ever can't reach the model mid-session, it quietly skips that learning pass; **your agent is never interrupted.**
78+
`komi-learn install` verifies these with a real model call and stops with fix steps if something's missing. At runtime, if a hook can't reach the model it skips that learning pass rather than interrupting your session.
11979

120-
---
80+
The engine has no required dependencies. Optional extras add real signing (`pip install komi-learn[crypto]`) and local semantic recall (`[smart]`); without them it falls back to a stdlib hash and keyword search.
12181

12282
## Docs
12383

124-
| | |
125-
|---|---|
126-
| [`docs/02-architecture.md`](docs/02-architecture.md) | how the whole system is designed |
127-
| [`docs/03-roadmap.md`](docs/03-roadmap.md) | what's built and what's next |
128-
| [`docs/05-adr-log.md`](docs/05-adr-log.md) | the key decisions and their trade-offs |
129-
| [`pool-repo-template/`](pool-repo-template/) | drop-in contents to run your own pool |
84+
- [docs/02-architecture.md](docs/02-architecture.md) — system design
85+
- [docs/03-roadmap.md](docs/03-roadmap.md) — what's built and what's next
86+
- [docs/05-adr-log.md](docs/05-adr-log.md) — key decisions and trade-offs
87+
- [pool-repo-template/](pool-repo-template/) — drop-in contents to run your own pool
13088

131-
MIT licensed. Contributions and feedback welcome — open an issue or PR.
89+
MIT. Issues and PRs welcome.

0 commit comments

Comments
 (0)