claude-smart 0.1.13 → 0.1.15

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 +12 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
  <img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License">
14
14
  </a>
15
15
  <a href="plugin/pyproject.toml">
16
- <img src="https://img.shields.io/badge/version-0.1.13-green.svg" alt="Version">
16
+ <img src="https://img.shields.io/badge/version-0.1.15-green.svg" alt="Version">
17
17
  </a>
18
18
  <a href="plugin/pyproject.toml">
19
19
  <img src="https://img.shields.io/badge/python-%3E%3D3.12-brightgreen.svg" alt="Python">
@@ -37,7 +37,7 @@
37
37
  </p>
38
38
 
39
39
  <p align="center">
40
- It learns both corrections and successful execution patterns—so Claude Code avoids repeating mistakes and reuses what works. Claude Code steadily adapts to <i>how you like</i> to work—across projects, codebases, and sessions.
40
+ It learns both corrections and successful execution patterns—so Claude Code avoids repeating mistakes and reuses what works. Playbook rules travel with you across every project; per-project profiles capture how you like to work on each repo.
41
41
  </p>
42
42
 
43
43
  <p align="center">
@@ -69,7 +69,7 @@ Four ways this changes what Claude Code can do for you:
69
69
 
70
70
  Instead of re-exploring, Claude starts from the proven path—reducing planning steps, latency, and token usage.
71
71
 
72
- - 🌐 **Project-wide, not session-siloed:** Session memory disappears with the conversation. The project playbook persists and improves across every session in that repo.
72
+ - 🌐 **Global playbook, project-scoped profiles:** Session memory disappears with the conversation. The playbook persists *globally* rules learned in one repo are available in every repo you work in while user profiles stay scoped to the current project so per-repo preferences don't leak across projects.
73
73
 
74
74
  - 🪶 **Better context without prompt bloat:** Distilled, deduplicated playbooks stay in dozens of tokens—not thousands—even as the project grows.
75
75
 
@@ -105,6 +105,7 @@ claude plugin uninstall claude-smart@reflexioai
105
105
  Local data under `~/.reflexio/` and `~/.claude-smart/` is left in place — remove manually if desired.
106
106
 
107
107
  Developing the plugin itself? See [DEVELOPER.md](./DEVELOPER.md#developing-locally).
108
+ > **Not supported:** Claude Code Cowork and claude.ai/code web — they run in a remote sandbox, so the local backend/dashboard and `~/.reflexio/` aren't reachable.
108
109
 
109
110
  ---
110
111
 
@@ -123,7 +124,7 @@ Developing the plugin itself? See [DEVELOPER.md](./DEVELOPER.md#developing-local
123
124
 
124
125
  ## Dashboard
125
126
 
126
- A web UI for browsing session histories, inspecting user profiles, and editing project playbooks. The dashboard auto-starts alongside the backend, so you can open **http://localhost:3001** directly. Or run `/claude-smart:dashboard` in Claude Code to launch dashboard in browser.
127
+ A web UI for browsing session histories, inspecting user profiles, and editing playbook rules. The dashboard auto-starts alongside the backend, so you can open **http://localhost:3001** directly. Or run `/claude-smart:dashboard` in Claude Code to launch dashboard in browser.
127
128
 
128
129
  <p align="center">
129
130
  <img src="assets/profile_dashboard.png" alt="Profile dashboard" width="49%">
@@ -136,8 +137,8 @@ A web UI for browsing session histories, inspecting user profiles, and editing p
136
137
 
137
138
  claude-smart builds two artifacts as you work and injects them into Claude at the start of every new session:
138
139
 
139
- - **User profile** — session-scoped preferences (stack, role, small quirks). *e.g.* "uses pnpm, not npm"; "prefers terse answers"; "backend engineer — explain frontend with backend analogues."
140
- - **Project playbook** — durable, generalized rules accumulated across every session in the repo. Each says when it applies and why. *e.g.* "always pass `--run` to `npm test` — watch mode hangs CI"; "use real Postgres for integration tests — mocks once hid a broken migration."
140
+ - **User profile** (project-scoped) preferences about how you work in this specific repo (stack, role, small quirks). *e.g.* "uses pnpm, not npm"; "prefers terse answers"; "backend engineer — explain frontend with backend analogues."
141
+ - **Playbook** (global, cross-project) — durable, generalized rules accumulated across every session, shared across every project you use claude-smart in. Each rule says when it applies and why, so a rule learned in one repo only fires in the contexts where it's relevant. *e.g.* "always pass `--run` to `npm test` — watch mode hangs CI"; "use real Postgres for integration tests — mocks once hid a broken migration."
141
142
 
142
143
  Playbooks clean themselves up: correct the same thing twice and they merge; change your mind and the old one is archived.
143
144
 
@@ -146,8 +147,10 @@ Under the hood: hooks watch your turns, tool calls, and Claude's replies, auto-f
146
147
  **Citations (`cs-cite`).** At the end of a reply, Claude may run:
147
148
 
148
149
  ```
149
- ⏺ Bash(cs-cite p1-2d57)
150
- 1 claude-smart learning applied
150
+ ⏺ Bash(cs-cite r1-252,p1-5aed)
151
+ (No output)
152
+
153
+ ⏺ ✨ 2 claude-smart learnings applied
151
154
  ```
152
155
 
153
156
  That signals a profile entry (`p…`) or playbook rule (`r…`) materially shaped the reply. Open the interaction's detail page in the [dashboard](#dashboard) to see the exact cited item.
@@ -161,7 +164,7 @@ See [ARCHITECTURE.md](./ARCHITECTURE.md) for hooks, data flow, and reflexio deta
161
164
  | Command | What it does |
162
165
  | --- | --- |
163
166
  | `/dashboard` | Open the dashboard in your browser, auto-starting the reflexio backend and dashboard services if they aren't already running. |
164
- | `/show` | Print the current project playbook plus the current session's user profiles (same markdown that `SessionStart` injects). Use it to audit what playbooks and preferences Claude is being told to follow. |
167
+ | `/show` | Print the current (global) playbook plus the current project's user profiles (same markdown that `SessionStart` injects). Use it to audit what playbooks and preferences Claude is being told to follow. |
165
168
  | `/learn` | Force reflexio to run extraction *now* on the current session's unpublished interactions. Without this, extraction runs at the end of the session or on reflexio's batch interval. |
166
169
  | `/tag [note]` | Tag the most recent turn as a correction, for cases the automatic heuristic missed. The note becomes the correction description the extractor sees. |
167
170
  | `/restart` | Restart the reflexio backend and dashboard to pick up new changes (e.g. after upgrading the plugin or editing local reflexio code). |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-smart",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Self-improving Claude Code plugin — learns from corrections via reflexio",
5
5
  "keywords": [
6
6
  "claude",
@@ -31,6 +31,6 @@
31
31
  "LICENSE"
32
32
  ],
33
33
  "engines": {
34
- "node": ">=18.0.0"
34
+ "node": ">=20.9.0"
35
35
  }
36
36
  }