continuous-improvement 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +77 -98
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,174 +2,153 @@
2
2
 
3
3
  ### Install discipline into your AI agent in one command.
4
4
 
5
- AI agents are useful. They're also reckless by default.
5
+ <p align="center">
6
+ <img src="promo/combined.gif" alt="Before vs After continuous-improvement" width="700" />
7
+ </p>
6
8
 
7
- **continuous-improvement** makes an agent research first, plan before coding, verify before saying "done", and reflect so it stops repeating the same mistakes.
9
+ AI agents are useful. They're also reckless by default they skip docs, overbuild, claim success before testing, and repeat the same mistakes.
8
10
 
9
- ## Install
11
+ **One command fixes it:**
10
12
 
11
13
  ```bash
12
14
  npx continuous-improvement install
13
15
  ```
14
16
 
15
- If auto-detect misses your setup:
17
+ That's it. Your agent now follows a structured loop: **Research → Plan → Execute → Verify → Reflect → Learn → Iterate.**
18
+
19
+ ---
20
+
21
+ ## Supports every major AI coding tool
22
+
23
+ | Tool | Flag | What it does |
24
+ |------|------|-------------|
25
+ | **Claude Code** | `--claude` | Appends rules to `CLAUDE.md` + installs Mulahazah learning hooks |
26
+ | **Codex** | `--codex` | Appends rules to `AGENTS.md` |
27
+ | **Cursor** | `--cursor` | Appends rules to `.cursorrules` |
28
+ | **OpenClaw** | `--openclaw` | Installs skill to `~/.openclaw/skills/` |
29
+ | **ChatGPT** | `--chatgpt` | Prints block to paste into Custom Instructions |
30
+
31
+ Auto-detection works — just run `npx continuous-improvement install` and it finds your setup. Or specify:
16
32
 
17
33
  ```bash
18
34
  npx continuous-improvement install --claude
19
- npx continuous-improvement install --codex
20
35
  npx continuous-improvement install --cursor
21
- npx continuous-improvement install --openclaw
22
36
  npx continuous-improvement install --chatgpt
23
37
  ```
24
38
 
25
- Optional global Claude install:
39
+ Global Claude install (applies to all projects):
26
40
 
27
41
  ```bash
28
42
  npx continuous-improvement install --claude --global
29
43
  ```
30
44
 
31
- ## Uninstall
45
+ ---
32
46
 
33
- ```bash
34
- npx continuous-improvement uninstall --claude
35
- npx continuous-improvement uninstall --codex
36
- npx continuous-improvement uninstall --cursor
37
- npx continuous-improvement uninstall --openclaw
38
- ```
47
+ ## The 7 Laws
39
48
 
40
- ## What it installs
49
+ | # | Law | What it prevents |
50
+ |---|-----|-----------------|
51
+ | 1 | **Research before executing** | Reinventing what already exists |
52
+ | 2 | **Plan before coding** | Scope creep and overbuilding |
53
+ | 3 | **One thing at a time** | Stacking untested changes |
54
+ | 4 | **Verify before reporting** | False "done" claims |
55
+ | 5 | **Reflect after sessions** | Repeating the same failures |
56
+ | 6 | **Iterate one change at a time** | Debugging 5 changes at once |
57
+ | 7 | **Learn from every session** | Knowledge that dies with the context window |
41
58
 
42
- Depending on your target, it does one of these:
59
+ ---
43
60
 
44
- - **Claude Code** appends the rules to `CLAUDE.md`
45
- - **Codex / OpenClaw AGENTS flow** → appends the rules to `AGENTS.md`
46
- - **Cursor** → appends the rules to `.cursorrules`
47
- - **OpenClaw** → installs the local skill at `~/.openclaw/skills/continuous-improvement/`
48
- - **ChatGPT** → prints the exact block to paste into Custom Instructions
61
+ ## What happens after install
49
62
 
50
- ## Use
51
-
52
- One-shot usage is simple:
63
+ Give your agent any task:
53
64
 
54
65
  > Use continuous-improvement on this task: add a caching layer to my single-server API.
55
66
 
56
- A good response should come back with:
67
+ A disciplined response includes:
57
68
 
58
69
  1. **Research** — what exists, constraints, risks, simplest path
59
70
  2. **Plan** — what will be built
60
- 3. **Anti-scope** — what will not be built
61
- 4. **Verification** — exact checks
71
+ 3. **Anti-scope** — what will NOT be built
72
+ 4. **Verification** — exact checks to confirm it works
62
73
  5. **Fallback** — what to do if it fails
63
74
  6. **Reflection** — what to learn after execution
64
75
 
65
- ## The 7 rules
76
+ No more "here's 300 lines of code I didn't test."
66
77
 
67
- 1. **Research before executing**
68
- 2. **Plan before coding**
69
- 3. **Do one thing at a time**
70
- 4. **Verify before reporting**
71
- 5. **Reflect after non-trivial work**
72
- 6. **Iterate one change at a time**
73
- 7. **Learn from every session**
78
+ ---
74
79
 
75
- ## What's new in v1.0: Mulahazah
80
+ ## Mulahazah: agents that learn (v1.0)
76
81
 
77
- Mulahazah (Arabic: observation) adds instinct-based learning to the loop.
82
+ Mulahazah (Arabic: observation) makes your agent build **instincts** over time.
78
83
 
79
- Agents don't just follow rules — they build instincts over time.
84
+ ```
85
+ Session 1: Agent skips docs → you correct it → instinct created (confidence: 0.3)
86
+ Session 5: Same pattern observed → confidence rises to 0.6 → agent starts suggesting
87
+ Session 10: Confidence hits 0.8 → agent auto-applies the behavior
88
+ ```
80
89
 
81
- **Key features:**
90
+ **How it works:**
82
91
 
83
92
  - Hooks observe every tool call (<50ms overhead)
84
- - Instincts carry confidence scores (0.3–0.9 range)
85
- - Graduated behavior: silent at low confidence, suggest at mid, auto-apply at high
86
- - Project scoping: instincts can be global or project-specific
93
+ - A background Haiku agent detects patterns and creates instincts
94
+ - Instincts carry confidence scores (0.3–0.9)
95
+ - Graduated behavior: **silent** **suggest** **auto-apply**
96
+ - Project-scoped: instincts can be global or per-project
87
97
  - Confidence decay: unused instincts weaken, wrong ones get corrected
88
98
 
89
- **One command:**
99
+ **Check what your agent has learned:**
90
100
 
91
101
  ```bash
92
102
  /continuous-improvement
93
103
  ```
94
104
 
95
- **Background observer (optional):**
96
-
97
- A lightweight Haiku agent watches sessions and extracts patterns automatically.
105
+ **Start the background observer (optional):**
98
106
 
99
107
  ```bash
100
108
  ~/.claude/mulahazah/agents/start-observer.sh
101
109
  ```
102
110
 
103
- ## Why this exists
104
-
105
- Agents usually fail in predictable ways:
106
-
107
- - they skip docs and existing code
108
- - they overbuild
109
- - they claim success before testing
110
- - they pile on changes before verifying the first one
111
- - they repeat mistakes because nothing gets logged
111
+ ---
112
112
 
113
- continuous-improvement fixes that with a tiny, reusable operating loop:
114
-
115
- ```text
116
- Research → Plan → Execute (one thing) → Verify → Reflect → Learn → Iterate
117
- ```
118
-
119
- ## Skill first
120
-
121
- This repo is designed as a **skill first** product:
122
-
123
- - easy to install
124
- - easy to invoke in one shot
125
- - useful before any complex task
126
-
127
- Prompt variants in `prompts/` are still here, but they are **supporting material**, not the main product.
128
-
129
- The OpenClaw skill lives in:
113
+ ## Uninstall
130
114
 
131
- ```text
132
- skills/continuous-improvement/SKILL.md
115
+ ```bash
116
+ npx continuous-improvement uninstall --claude
117
+ npx continuous-improvement uninstall --codex
118
+ npx continuous-improvement uninstall --cursor
119
+ npx continuous-improvement uninstall --openclaw
133
120
  ```
134
121
 
135
- ## Testing
136
-
137
- Use these files to test whether the install and behavior are actually good:
122
+ ---
138
123
 
139
- - `tests/install-checklist.md`
140
- - `tests/official-evals.md`
141
- - `tests/prompt-eval.md`
142
- - `examples/real-test-cases.md`
143
- - `.github/ISSUE_TEMPLATE/test-report.yml`
124
+ ## Manual install
144
125
 
145
- Best practice: have multiple people test across Claude Code, Codex, Cursor, OpenClaw, and ChatGPT, then submit structured reports instead of random comments.
126
+ If you prefer not to use the installer, copy the relevant file into your project:
146
127
 
147
- ## Fallback: manual install
128
+ - `prompts/coding-agent.md` full coding agent prompt
129
+ - `prompts/core.md` — core system prompt
130
+ - `prompts/minimal.md` — 100-word version
131
+ - `skills/continuous-improvement/SKILL.md` — OpenClaw skill
148
132
 
149
- If you do not want the installer, copy the right block manually:
133
+ See `docs/integration-guide.md` for detailed setup.
150
134
 
151
- - `prompts/coding-agent.md`
152
- - `prompts/core.md`
153
- - `prompts/minimal.md`
154
- - `skills/continuous-improvement/SKILL.md`
155
-
156
- More setup detail lives in `docs/integration-guide.md`.
135
+ ---
157
136
 
158
137
  ## Quick reality check
159
138
 
160
- If the agent still jumps straight into writing 300 lines without:
139
+ If your agent still jumps straight into writing code without:
161
140
 
162
141
  - checking what already exists
163
142
  - defining anti-scope
164
143
  - stating how it will verify success
165
- - and it doesn't learn from corrections
144
+ - learning from corrections
145
+
146
+ Then continuous-improvement is not installed properly.
166
147
 
167
- then continuous-improvement is not installed properly.
148
+ ---
168
149
 
169
150
  ## Contributing
170
151
 
171
- Keep it sharp.
172
- Keep it practical.
173
- Kill anything that adds friction.
152
+ Keep it sharp. Keep it practical. Kill anything that adds friction.
174
153
 
175
- MIT.
154
+ MIT License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "continuous-improvement",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Install structured self-improvement loops with instinct-based learning into Claude Code — research, plan, execute, verify, reflect, learn, iterate.",
5
5
  "license": "MIT",
6
6
  "bin": {