Linux command
komi-learn 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install
komi-learn install
Install
komi-learn install --host codex
Run a health check
komi-learn doctor
Show
komi-learn status
Update
komi-learn update
Preview
komi-learn update --check
Edit
komi-learn config set [key] [value]
Sync
komi-learn sync
Review
komi-learn queue
Forget
komi-learn forget [topic]
Permanently delete
komi-learn forget [topic] --hard
Uninstall
komi-learn uninstall
说明
komi-learn is a Python CLI that adds a memory and self-improvement loop to coding agents such as Claude Code and Codex. It installs per-agent hooks that observe sessions and persist durable lessons across runs. The learning loop has four stages. Recall activates relevant lessons at the start of a session. Distill analyzes the session transcript after it ends and extracts durable lessons. Curate merges overlapping items and archives outdated ones. Share optionally publishes user-approved lessons to a GitHub-hosted, cryptographically signed community pool so they can be pulled by other users with `komi-learn sync`. Secrets, absolute paths, and one-off failures are filtered before content is stored or shared. `forget` archives a learning by default and only deletes it with `--hard`. `uninstall` removes hooks; `--purge` also removes stored learnings.
参数
- install
- Set up the agent hooks. `--yes` accepts defaults. `--host` selects the agent (`claude`, `codex`).
- doctor
- Verify the installation and report problems.
- update
- Upgrade komi-learn and its hooks. `--check` previews only.
- status
- Display configuration and learning progress.
- config
- Adjust settings, either interactively or via `config set <key> <value>`.
- sync
- Pull community-pool lessons.
- queue
- Review pending shared contributions.
- forget _topic_
- Archive a learned item. `--hard` deletes it permanently.
- uninstall
- Remove hooks. `--purge` deletes all stored data.
FAQ
What is the komi-learn command used for?
komi-learn is a Python CLI that adds a memory and self-improvement loop to coding agents such as Claude Code and Codex. It installs per-agent hooks that observe sessions and persist durable lessons across runs. The learning loop has four stages. Recall activates relevant lessons at the start of a session. Distill analyzes the session transcript after it ends and extracts durable lessons. Curate merges overlapping items and archives outdated ones. Share optionally publishes user-approved lessons to a GitHub-hosted, cryptographically signed community pool so they can be pulled by other users with `komi-learn sync`. Secrets, absolute paths, and one-off failures are filtered before content is stored or shared. `forget` archives a learning by default and only deletes it with `--hard`. `uninstall` removes hooks; `--purge` also removes stored learnings.
How do I run a basic komi-learn example?
Run `komi-learn install` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install do in komi-learn?
Set up the agent hooks. `--yes` accepts defaults. `--host` selects the agent (`claude`, `codex`).