claude-self-reflect 7.1.15 → 8.3.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.
- package/README.md +165 -535
- package/installer/cli.js +78 -275
- package/installer/postinstall.js +329 -28
- package/installer/statusline-setup.js +53 -251
- package/package.json +7 -35
- package/.claude/agents/csr-validator.md +0 -280
- package/.claude/agents/docker-orchestrator.md +0 -284
- package/.claude/agents/documentation-writer.md +0 -262
- package/.claude/agents/import-debugger.md +0 -221
- package/.claude/agents/mcp-integration.md +0 -333
- package/.claude/agents/open-source-maintainer.md +0 -665
- package/.claude/agents/performance-tuner.md +0 -276
- package/.claude/agents/qdrant-specialist.md +0 -201
- package/.claude/agents/quality-fixer.md +0 -314
- package/.claude/agents/reflection-specialist.md +0 -912
- package/.claude/agents/search-optimizer.md +0 -309
- package/.env.example +0 -79
- package/Dockerfile.async-importer +0 -38
- package/Dockerfile.batch-monitor +0 -36
- package/Dockerfile.batch-watcher +0 -38
- package/Dockerfile.importer +0 -39
- package/Dockerfile.importer-isolated +0 -28
- package/Dockerfile.importer-isolated.alpine +0 -21
- package/Dockerfile.importer.alpine +0 -23
- package/Dockerfile.mcp-server +0 -28
- package/Dockerfile.mcp-server.alpine +0 -22
- package/Dockerfile.mcp-server.ubuntu +0 -34
- package/Dockerfile.safe-watcher +0 -61
- package/Dockerfile.streaming-importer +0 -61
- package/Dockerfile.streaming-importer.alpine +0 -24
- package/Dockerfile.watcher +0 -49
- package/Dockerfile.watcher.alpine +0 -24
- package/config/qdrant-config.yaml +0 -59
- package/docker-compose.yaml +0 -326
- package/docs/design/GRADER_PROMPT.md +0 -81
- package/docs/design/batch_ground_truth_generator.py +0 -496
- package/docs/design/batch_import_all_projects.py +0 -488
- package/docs/design/batch_import_v3.py +0 -278
- package/docs/design/conversation-analyzer/SKILL.md +0 -133
- package/docs/design/conversation-analyzer/SKILL_V2.md +0 -218
- package/docs/design/conversation-analyzer/extract_structured.py +0 -186
- package/docs/design/extract_events_v3.py +0 -533
- package/docs/design/import_existing_batch.py +0 -188
- package/docs/design/recover_all_batches.py +0 -297
- package/docs/design/recover_batch_results.py +0 -287
- package/installer/.claude/agents/README.md +0 -138
- package/installer/fastembed-fallback.js +0 -271
- package/installer/setup-wizard-docker.js +0 -894
- package/installer/setup-wizard.js +0 -14
- package/installer/update-manager.js +0 -538
- package/mcp-server/pyproject.toml +0 -30
- package/mcp-server/requirements.txt +0 -9
- package/mcp-server/run-mcp-clean.sh +0 -29
- package/mcp-server/run-mcp-docker.sh +0 -5
- package/mcp-server/run-mcp.sh +0 -155
- package/mcp-server/src/__init__.py +0 -1
- package/mcp-server/src/__main__.py +0 -37
- package/mcp-server/src/app_context.py +0 -64
- package/mcp-server/src/code_reload_tool.py +0 -380
- package/mcp-server/src/config.py +0 -57
- package/mcp-server/src/connection_pool.py +0 -286
- package/mcp-server/src/decay_manager.py +0 -106
- package/mcp-server/src/embedding_manager.py +0 -295
- package/mcp-server/src/embeddings_old.py +0 -141
- package/mcp-server/src/enhanced_tool_registry.py +0 -407
- package/mcp-server/src/health.py +0 -190
- package/mcp-server/src/mode_switch_tool.py +0 -181
- package/mcp-server/src/models.py +0 -64
- package/mcp-server/src/parallel_search.py +0 -325
- package/mcp-server/src/project_resolver.py +0 -568
- package/mcp-server/src/reflection_tools.py +0 -365
- package/mcp-server/src/rich_formatting.py +0 -303
- package/mcp-server/src/safe_getters.py +0 -217
- package/mcp-server/src/search_tools.py +0 -972
- package/mcp-server/src/security_patches.py +0 -555
- package/mcp-server/src/server.py +0 -806
- package/mcp-server/src/standalone_client.py +0 -380
- package/mcp-server/src/status.py +0 -232
- package/mcp-server/src/status_unified.py +0 -286
- package/mcp-server/src/temporal_design.py +0 -132
- package/mcp-server/src/temporal_tools.py +0 -604
- package/mcp-server/src/temporal_utils.py +0 -384
- package/mcp-server/src/utils.py +0 -167
- package/requirements.txt +0 -67
- package/scripts/auto-migrate.cjs +0 -161
- package/scripts/csr-status +0 -614
- package/scripts/ralph/backup_and_restore.sh +0 -309
- package/scripts/ralph/install_hooks.sh +0 -244
- package/scripts/ralph/test_with_rollback.sh +0 -195
- package/scripts/requirements.txt +0 -9
- package/shared/__init__.py +0 -5
- package/shared/ast_grep_utils.py +0 -89
- package/shared/normalization.py +0 -54
- package/src/__init__.py +0 -0
- package/src/cli/__init__.py +0 -0
- package/src/importer/__init__.py +0 -25
- package/src/importer/__main__.py +0 -14
- package/src/importer/core/__init__.py +0 -25
- package/src/importer/core/config.py +0 -120
- package/src/importer/core/exceptions.py +0 -52
- package/src/importer/core/models.py +0 -184
- package/src/importer/embeddings/__init__.py +0 -22
- package/src/importer/embeddings/base.py +0 -141
- package/src/importer/embeddings/fastembed_provider.py +0 -164
- package/src/importer/embeddings/validator.py +0 -136
- package/src/importer/embeddings/voyage_provider.py +0 -251
- package/src/importer/main.py +0 -393
- package/src/importer/processors/__init__.py +0 -15
- package/src/importer/processors/ast_extractor.py +0 -197
- package/src/importer/processors/chunker.py +0 -157
- package/src/importer/processors/concept_extractor.py +0 -109
- package/src/importer/processors/conversation_parser.py +0 -181
- package/src/importer/processors/tool_extractor.py +0 -165
- package/src/importer/state/__init__.py +0 -5
- package/src/importer/state/state_manager.py +0 -190
- package/src/importer/storage/__init__.py +0 -5
- package/src/importer/storage/qdrant_storage.py +0 -250
- package/src/importer/utils/__init__.py +0 -9
- package/src/importer/utils/logger.py +0 -87
- package/src/importer/utils/project_normalizer.py +0 -133
- package/src/runtime/__init__.py +0 -0
- package/src/runtime/batch_monitor.py +0 -300
- package/src/runtime/batch_watcher.py +0 -461
- package/src/runtime/config.py +0 -61
- package/src/runtime/delta-metadata-update-safe.py +0 -443
- package/src/runtime/delta-metadata-update.py +0 -547
- package/src/runtime/doctor.py +0 -342
- package/src/runtime/embedding_service.py +0 -243
- package/src/runtime/force-metadata-recovery.py +0 -305
- package/src/runtime/hooks/__init__.py +0 -21
- package/src/runtime/hooks/iteration_hook.py +0 -196
- package/src/runtime/hooks/ralph_state.py +0 -402
- package/src/runtime/hooks/session_end_hook.py +0 -254
- package/src/runtime/hooks/session_start_hook.py +0 -259
- package/src/runtime/import-conversations-unified.py +0 -359
- package/src/runtime/import-latest.py +0 -124
- package/src/runtime/import_strategies.py +0 -344
- package/src/runtime/message_processors.py +0 -248
- package/src/runtime/metadata_extractor.py +0 -262
- package/src/runtime/precompact-hook.sh +0 -112
- package/src/runtime/qdrant_connection.py +0 -73
- package/src/runtime/streaming-importer.py +0 -995
- package/src/runtime/streaming-watcher.py +0 -1533
- package/src/runtime/unified_state_manager.py +0 -671
- package/src/runtime/utils.py +0 -39
- package/src/runtime/watcher-loop.sh +0 -56
package/README.md
CHANGED
|
@@ -1,655 +1,285 @@
|
|
|
1
1
|
# Claude Self-Reflect
|
|
2
|
-
<div align="center">
|
|
3
|
-
<img src="https://repobeats.axiom.co/api/embed/e45aa7276c6b2d1fbc46a9a3324e2231718787bb.svg" alt="Repobeats analytics image" />
|
|
4
|
-
</div>
|
|
5
|
-
<div align="center">
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
[](https://www.npmjs.com/package/claude-self-reflect)
|
|
9
|
-
[](https://opensource.org/licenses/MIT)
|
|
10
|
-
[](https://github.com/ramakay/claude-self-reflect/actions/workflows/ci.yml)
|
|
3
|
+
<div align="center">
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
[](https://modelcontextprotocol.io/)
|
|
14
|
-
[](https://www.docker.com/)
|
|
15
|
-
[](https://github.com/ramakay/claude-self-reflect)
|
|
5
|
+
<img src="docs-site/public/favicon.svg" alt="Claude Self-Reflect" width="80" height="80" />
|
|
16
6
|
|
|
17
|
-
[](https://github.com/ramakay/claude-self-reflect/issues)
|
|
19
|
-
[](https://github.com/ramakay/claude-self-reflect/pulls)
|
|
20
|
-
|
|
21
|
-
</div>
|
|
7
|
+
[](https://www.npmjs.com/package/claude-self-reflect) [](https://www.npmjs.com/package/claude-self-reflect) [](https://opensource.org/licenses/MIT) [](https://github.com/ramakay/claude-self-reflect/releases/latest) [](https://github.com/anthropics/claude-code) [](https://modelcontextprotocol.io/) [](https://github.com/ramakay/claude-self-reflect/tree/main/csr-engine) [](https://github.com/ramakay/claude-self-reflect) [](https://github.com/ramakay/claude-self-reflect/stargazers)
|
|
22
8
|
|
|
23
9
|
**Claude forgets everything. This fixes that.**
|
|
24
10
|
|
|
25
|
-
|
|
11
|
+
Single 44MB binary. No databases. No containers. No API keys required.
|
|
26
12
|
|
|
27
|
-
|
|
13
|
+
[Install](#install) | [How It Works](#how-it-works) | [MCP Tools](#mcp-tools) | [FAQ](https://ramakay.github.io/claude-self-reflect/#/docs/troubleshooting)
|
|
28
14
|
|
|
29
|
-
> **
|
|
15
|
+
> **v8.0 — Complete Rust Rewrite**
|
|
16
|
+
> The entire Python/Docker/Qdrant stack has been replaced with a single Rust binary.
|
|
17
|
+
> Sub-millisecond search, 93ms startup, 273 tests, zero external dependencies.
|
|
18
|
+
> [Release notes](https://github.com/ramakay/claude-self-reflect/releases/tag/v8.0.5) | [Announcement](https://github.com/ramakay/claude-self-reflect/discussions/175)
|
|
30
19
|
|
|
31
|
-
|
|
20
|
+
<img src="docs-site/public/images/csr-demo.gif" alt="CSR Demo — Setup, Search, and Hooks" width="800" />
|
|
32
21
|
|
|
33
|
-
|
|
22
|
+
</div>
|
|
34
23
|
|
|
35
24
|
## Table of Contents
|
|
36
25
|
|
|
37
|
-
- [
|
|
38
|
-
- [
|
|
39
|
-
- [The
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
43
|
-
- [
|
|
44
|
-
- [Code Quality Insights](#code-quality-insights)
|
|
45
|
-
- [Architecture](#architecture)
|
|
46
|
-
- [Requirements](#requirements)
|
|
47
|
-
- [Documentation](#documentation)
|
|
48
|
-
- [Keeping Up to Date](#keeping-up-to-date)
|
|
49
|
-
- [Troubleshooting](#troubleshooting)
|
|
50
|
-
- [Contributors](#contributors)
|
|
51
|
-
|
|
52
|
-
## Quick Install
|
|
26
|
+
- [The Problem](#the-forgetting-problem) — Why Claude needs memory
|
|
27
|
+
- [The Architecture](#one-binary-44mb) — How CSR solves it
|
|
28
|
+
- [The Pipeline](#the-pipeline) — Progressive enrichment (9.3x improvement)
|
|
29
|
+
- [Install](#install) — One command setup
|
|
30
|
+
- [What You'll Ask](#what-youll-ask) — Natural language, no syntax
|
|
31
|
+
- [Performance](#performance) | [MCP Tools](#mcp-tools) | [Hooks](#hooks) | [CLI](#cli-reference)
|
|
32
|
+
- [AI Narratives](#ai-narratives-optional) | [Upgrading](#upgrading-from-v7x) | [Troubleshooting](#troubleshooting)
|
|
53
33
|
|
|
54
|
-
|
|
55
|
-
# Install and run automatic setup (5 minutes, everything automatic)
|
|
56
|
-
npm install -g claude-self-reflect
|
|
57
|
-
claude-self-reflect setup
|
|
58
|
-
|
|
59
|
-
# That's it! The setup will:
|
|
60
|
-
# - Run everything in Docker (no Python issues!)
|
|
61
|
-
# - Configure everything automatically
|
|
62
|
-
# - Install the MCP in Claude Code
|
|
63
|
-
# - Start monitoring for new conversations
|
|
64
|
-
# - Keep all data local - no API keys needed
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
> [!TIP]
|
|
68
|
-
> **Auto-Migration**: Updates automatically handle breaking changes. Simply run `npm update -g claude-self-reflect`.
|
|
69
|
-
|
|
70
|
-
<details open>
|
|
71
|
-
<summary>Cloud Mode (Better Search Accuracy)</summary>
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
# Step 1: Get your free Voyage AI key
|
|
75
|
-
# Sign up at https://www.voyageai.com/ - it takes 30 seconds
|
|
76
|
-
|
|
77
|
-
# Step 2: Install with Voyage key
|
|
78
|
-
npm install -g claude-self-reflect
|
|
79
|
-
claude-self-reflect setup --voyage-key=YOUR_ACTUAL_KEY_HERE
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
> [!NOTE]
|
|
83
|
-
> Cloud mode provides 1024-dimensional embeddings (vs 384 local) for more accurate semantic search but sends conversation data to Voyage AI for processing.
|
|
84
|
-
|
|
85
|
-
</details>
|
|
86
|
-
|
|
87
|
-
## Performance
|
|
88
|
-
|
|
89
|
-
| Metric | Before | After | Improvement |
|
|
90
|
-
|--------|--------|-------|-------------|
|
|
91
|
-
| **Status Check** | 119ms | 6ms | **20x faster** |
|
|
92
|
-
| **Storage Usage** | 100MB | 50MB | **50% reduction** |
|
|
93
|
-
| **Import Speed** | 10/sec | 100/sec | **10x faster** |
|
|
94
|
-
| **Memory Usage** | 500MB | 50MB | **90% reduction** |
|
|
95
|
-
| **Search Latency** | 15ms | 3ms | **5x faster** |
|
|
96
|
-
|
|
97
|
-
### Competitive Comparison
|
|
98
|
-
|
|
99
|
-
| Feature | Claude Self-Reflect | MemGPT | LangChain Memory |
|
|
100
|
-
|---------|---------------------|---------|------------------|
|
|
101
|
-
| **Local-first** | Yes | No | Partial |
|
|
102
|
-
| **No API keys** | Yes | No | No |
|
|
103
|
-
| **Real-time indexing** | Yes 2-sec | Manual | No |
|
|
104
|
-
| **Search speed** | <3ms | ~50ms | ~100ms |
|
|
105
|
-
| **Setup time** | 5 min | 30+ min | 20+ min |
|
|
106
|
-
| **Docker required** | Yes | Python | Python |
|
|
107
|
-
|
|
108
|
-
## The Magic
|
|
109
|
-
|
|
110
|
-

|
|
111
|
-
|
|
112
|
-
## Before & After
|
|
113
|
-
|
|
114
|
-

|
|
34
|
+
---
|
|
115
35
|
|
|
116
|
-
##
|
|
36
|
+
## The Forgetting Problem
|
|
117
37
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
You: "What about that Docker memory issue?"
|
|
125
|
-
Claude: "The container was limited to 2GB but only using 266MB. We found
|
|
126
|
-
the issue only happened with MAX_QUEUE_SIZE=1000 outside Docker.
|
|
127
|
-
With proper Docker limits, memory stays stable at 341MB."
|
|
128
|
-
|
|
129
|
-
You: "Have we worked with JWT authentication?"
|
|
130
|
-
Claude: "Found conversations about JWT patterns including User.authenticate
|
|
131
|
-
methods, TokenHandler classes, and concepts like token rotation,
|
|
132
|
-
PKCE, and social login integration."
|
|
133
|
-
```
|
|
38
|
+
<a href="https://ramakay.github.io/claude-self-reflect/">
|
|
39
|
+
<picture>
|
|
40
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs-site/public/images/card-01-hook-dark.png" />
|
|
41
|
+
<img align="right" src="docs-site/public/images/card-01-hook-light.png" alt="The Forgetting Problem" width="420" />
|
|
42
|
+
</picture>
|
|
43
|
+
</a>
|
|
134
44
|
|
|
135
|
-
|
|
45
|
+
Claude starts fresh every session. Solutions you found, architectures you designed, bugs you debugged — all gone.
|
|
136
46
|
|
|
137
|
-
|
|
138
|
-
<img src="docs/images/ralph-loop-csr.png" alt="Ralph Loop with CSR Memory - From hamster wheel to upward spiral" width="800"/>
|
|
139
|
-
</div>
|
|
47
|
+
Context retention drops below **20% after 10 sessions**. CSR fixes this with a single binary that gives Claude perfect memory.
|
|
140
48
|
|
|
141
|
-
|
|
49
|
+
No special syntax. No commands. Install once, and past context appears automatically when you need it.
|
|
142
50
|
|
|
143
|
-
|
|
51
|
+
<br clear="both" />
|
|
144
52
|
|
|
145
|
-
|
|
146
|
-
- Each context compaction = everything forgotten
|
|
147
|
-
- Same mistakes repeated across iterations
|
|
148
|
-
- No learning from past sessions
|
|
149
|
-
- Cross-project insights lost forever
|
|
53
|
+
> **[Explore the full documentation →](https://ramakay.github.io/claude-self-reflect/)**
|
|
150
54
|
|
|
151
|
-
|
|
152
|
-
- **Automatic backup** before context compaction
|
|
153
|
-
- **Anti-pattern injection** - "DON'T RETRY THESE" surfaces first
|
|
154
|
-
- **Success pattern learning** - reuse what worked before
|
|
155
|
-
- **Cross-project memory** - learn from ALL your projects
|
|
55
|
+
---
|
|
156
56
|
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
./scripts/ralph/install_hooks.sh # Install hooks globally
|
|
160
|
-
./scripts/ralph/install_hooks.sh --check # Verify installation
|
|
161
|
-
```
|
|
57
|
+
## One Binary. 44MB.
|
|
162
58
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
59
|
+
<a href="https://ramakay.github.io/claude-self-reflect/#/docs/architecture">
|
|
60
|
+
<picture>
|
|
61
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs-site/public/images/card-02-arch-dark.png" />
|
|
62
|
+
<img align="right" src="docs-site/public/images/card-02-arch-light.png" alt="Architecture — One Binary, 44MB" width="420" />
|
|
63
|
+
</picture>
|
|
64
|
+
</a>
|
|
169
65
|
|
|
170
|
-
|
|
66
|
+
Everything runs locally in a single process. No Docker, no database server, no API keys required.
|
|
171
67
|
|
|
172
|
-
|
|
68
|
+
- **SQLite** — storage for chunks, embeddings, enrichment state
|
|
69
|
+
- **HNSW** — sub-millisecond vector search (<1ms p95)
|
|
70
|
+
- **FastEmbed** — 384-dim local embeddings
|
|
71
|
+
- **AST** — code-aware search across 6 languages
|
|
173
72
|
|
|
174
|
-
|
|
73
|
+
**6 hooks** fire across the session lifecycle. **12 MCP tools** for explicit search.
|
|
175
74
|
|
|
176
|
-
<
|
|
177
|
-
<summary><b>AST-GREP Pattern Analysis (100+ Patterns)</b></summary>
|
|
178
|
-
|
|
179
|
-
### Real-time Quality Scoring in Statusline
|
|
180
|
-
Your code quality displayed live as you work:
|
|
181
|
-
- 🟢 **A+** (95-100): Exceptional code quality
|
|
182
|
-
- 🟢 **A** (90-95): Excellent, production-ready
|
|
183
|
-
- 🟢 **B** (80-90): Good, minor improvements possible
|
|
184
|
-
- 🟡 **C** (60-80): Fair, needs refactoring
|
|
185
|
-
- 🔴 **D** (40-60): Poor, significant issues
|
|
186
|
-
- 🔴 **F** (0-40): Critical problems detected
|
|
187
|
-
|
|
188
|
-
### Pattern Categories Analyzed
|
|
189
|
-
- **Security Patterns**: SQL injection, XSS vulnerabilities, hardcoded secrets
|
|
190
|
-
- **Performance Patterns**: N+1 queries, inefficient loops, memory leaks
|
|
191
|
-
- **Error Handling**: Bare exceptions, missing error boundaries
|
|
192
|
-
- **Type Safety**: Missing type hints, unsafe casts
|
|
193
|
-
- **Async Patterns**: Missing await, promise handling
|
|
194
|
-
- **Testing Patterns**: Test coverage, assertion quality
|
|
195
|
-
|
|
196
|
-
### How It Works
|
|
197
|
-
1. **During Import**: AST elements extracted from all code blocks
|
|
198
|
-
2. **Pattern Matching**: 100+ patterns from unified registry
|
|
199
|
-
3. **Quality Scoring**: Weighted scoring normalized by lines of code
|
|
200
|
-
4. **Statusline Display**: Real-time feedback as you code
|
|
75
|
+
<br clear="both" />
|
|
201
76
|
|
|
202
|
-
|
|
77
|
+
> **[Explore the full documentation →](https://ramakay.github.io/claude-self-reflect/#/docs/architecture)**
|
|
203
78
|
|
|
204
|
-
|
|
79
|
+
---
|
|
205
80
|
|
|
206
|
-
|
|
81
|
+
## The Pipeline
|
|
207
82
|
|
|
208
|
-
>
|
|
209
|
-
>
|
|
83
|
+
<a href="https://ramakay.github.io/claude-self-reflect/#/docs/enrichment">
|
|
84
|
+
<picture>
|
|
85
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs-site/public/images/card-03-pipeline-dark.png" />
|
|
86
|
+
<img align="right" src="docs-site/public/images/card-03-pipeline-light.png" alt="The Pipeline — 3 layers, 9.3x improvement" width="420" />
|
|
87
|
+
</picture>
|
|
88
|
+
</a>
|
|
210
89
|
|
|
211
|
-
|
|
90
|
+
Three layers progressively improve search quality from raw chunks to AI-enriched narratives — **9.3x improvement**.
|
|
212
91
|
|
|
213
|
-
|
|
92
|
+
Higher quality context. Better decisions. Fewer tokens.
|
|
214
93
|
|
|
215
|
-
|
|
216
|
-
|--------|---------------------|----------------------|-------------|
|
|
217
|
-
| **Search Quality** | 0.074 | 0.691 | **9.3x better** |
|
|
218
|
-
| **Token Compression** | 100% | 18% | **82% reduction** |
|
|
219
|
-
| **Cost per Conversation** | $0.025 | $0.012 | **50% savings** |
|
|
220
|
-
| **Metadata Richness** | Basic | Tools + Concepts + Files | **Full context** |
|
|
94
|
+
<br clear="both" />
|
|
221
95
|
|
|
222
|
-
|
|
96
|
+
> **[Explore the full documentation →](https://ramakay.github.io/claude-self-reflect/#/docs/enrichment)**
|
|
223
97
|
|
|
224
|
-
|
|
225
|
-
- **Problem-Solution Patterns**: Conversations structured as challenges encountered and solutions implemented
|
|
226
|
-
- **Rich Metadata**: Automatic extraction of tools used, technical concepts, and files modified
|
|
227
|
-
- **Context Compression**: 82% token reduction while maintaining searchability
|
|
228
|
-
- **Better Relevance**: Search scores improved from 0.074 to 0.691 (9.3x)
|
|
98
|
+
---
|
|
229
99
|
|
|
230
|
-
|
|
231
|
-
- Anthropic Batch API: $0.012 per conversation (vs $0.025 standard)
|
|
232
|
-
- Automatic batch queuing and processing
|
|
233
|
-
- Progress monitoring via Docker containers
|
|
234
|
-
- Evaluation generation for quality assurance
|
|
100
|
+
## Install
|
|
235
101
|
|
|
236
|
-
**Fully Automated Workflow:**
|
|
237
102
|
```bash
|
|
238
|
-
|
|
239
|
-
docker compose up batch-watcher
|
|
240
|
-
|
|
241
|
-
# 2. Auto-trigger batch processing when threshold reached
|
|
242
|
-
# (Configurable: BATCH_THRESHOLD_FILES, default 10)
|
|
243
|
-
|
|
244
|
-
# 3. Monitor batch progress
|
|
245
|
-
docker compose logs batch-monitor -f
|
|
246
|
-
|
|
247
|
-
# 4. Enhanced narratives automatically imported to Qdrant
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
### Example: Raw Excerpt vs AI Narrative
|
|
251
|
-
|
|
252
|
-
**Before (v6.x)** - Raw excerpt showing basic conversation flow:
|
|
103
|
+
curl -fsSL https://raw.githubusercontent.com/ramakay/claude-self-reflect/main/scripts/install.sh | sh
|
|
253
104
|
```
|
|
254
|
-
User: How do I fix the Docker memory issue?
|
|
255
|
-
Assistant: The container was limited to 2GB but only using 266MB...
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
**After (v7.0)** - Rich narrative with metadata:
|
|
259
|
-
```
|
|
260
|
-
PROBLEM: Docker container memory consumption investigation revealed
|
|
261
|
-
discrepancy between limits (2GB) and actual usage (266MB). Analysis
|
|
262
|
-
required to determine if memory limit was appropriate.
|
|
263
105
|
|
|
264
|
-
|
|
265
|
-
Docker environment. Implemented proper Docker resource constraints
|
|
266
|
-
stabilizing memory at 341MB.
|
|
106
|
+
One command. Downloads the binary, runs setup, registers MCP server, installs 6 hooks. Restart Claude Code.
|
|
267
107
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
108
|
+
| Platform | Support |
|
|
109
|
+
|----------|---------|
|
|
110
|
+
| macOS (Apple Silicon) | Prebuilt binary |
|
|
111
|
+
| Linux x86_64 / WSL | Prebuilt binary |
|
|
112
|
+
| Linux ARM64 | Prebuilt binary |
|
|
113
|
+
| macOS (Intel) | Build from source |
|
|
272
114
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
Narratives are automatically generated for new conversations. To process existing conversations:
|
|
115
|
+
<details>
|
|
116
|
+
<summary>Alternative: npm</summary>
|
|
276
117
|
|
|
277
118
|
```bash
|
|
278
|
-
|
|
279
|
-
python docs/design/batch_import_all_projects.py
|
|
280
|
-
|
|
281
|
-
# Monitor batch progress
|
|
282
|
-
docker compose logs batch-monitor -f
|
|
283
|
-
|
|
284
|
-
# Check completion status
|
|
285
|
-
curl http://localhost:6333/collections/csr_claude-self-reflect_local_384d
|
|
119
|
+
npm install -g claude-self-reflect
|
|
286
120
|
```
|
|
287
121
|
|
|
288
|
-
For complete documentation, see [Batch Automation Guide](docs/testing/NARRATIVE_TESTING_SUMMARY.md).
|
|
289
|
-
|
|
290
|
-
## Key Features
|
|
291
|
-
|
|
292
|
-
<details>
|
|
293
|
-
<summary><b>MCP Tools Available to Claude</b></summary>
|
|
294
|
-
|
|
295
|
-
**Search & Memory:**
|
|
296
|
-
- `reflect_on_past` - Search past conversations using semantic similarity with time decay (supports quick/summary modes)
|
|
297
|
-
- `store_reflection` - Store important insights or learnings for future reference
|
|
298
|
-
- `get_next_results` - Paginate through additional search results
|
|
299
|
-
- `search_by_file` - Find conversations that analyzed specific files
|
|
300
|
-
- `search_by_concept` - Search for conversations about development concepts
|
|
301
|
-
- `get_full_conversation` - Retrieve complete JSONL conversation files
|
|
302
|
-
|
|
303
|
-
**Temporal Queries:**
|
|
304
|
-
- `get_recent_work` - Answer "What did we work on last?" with session grouping
|
|
305
|
-
- `search_by_recency` - Time-constrained search like "docker issues last week"
|
|
306
|
-
- `get_timeline` - Activity timeline with statistics and patterns
|
|
307
|
-
|
|
308
|
-
**Runtime Configuration:**
|
|
309
|
-
- `switch_embedding_mode` - Switch between local/cloud modes without restart
|
|
310
|
-
- `get_embedding_mode` - Check current embedding configuration
|
|
311
|
-
- `reload_code` - Hot reload Python code changes
|
|
312
|
-
- `reload_status` - Check reload state
|
|
313
|
-
- `clear_module_cache` - Clear Python cache
|
|
314
|
-
|
|
315
|
-
**Status & Monitoring:**
|
|
316
|
-
- `get_status` - Real-time import progress and system status
|
|
317
|
-
- `get_health` - Comprehensive system health check
|
|
318
|
-
- `collection_status` - Check Qdrant collection health and stats
|
|
319
|
-
|
|
320
|
-
> [!TIP]
|
|
321
|
-
> Use `reflect_on_past --mode quick` for instant existence checks - returns count + top match only!
|
|
322
|
-
|
|
323
|
-
All tools are automatically available when the MCP server is connected to Claude Code.
|
|
324
|
-
|
|
325
|
-
</details>
|
|
326
|
-
|
|
327
|
-
<details>
|
|
328
|
-
<summary><b>Statusline Integration</b></summary>
|
|
329
|
-
|
|
330
|
-
See your indexing progress right in your terminal! Works with [Claude Code Statusline](https://github.com/sirmalloc/ccstatusline):
|
|
331
|
-
- **Progress Bar** - Visual indicator `[████████ ] 91%`
|
|
332
|
-
- **Indexing Lag** - Shows backlog `• 7h behind`
|
|
333
|
-
- **Auto-updates** every 60 seconds
|
|
334
|
-
- **Zero overhead** with intelligent caching
|
|
335
|
-
|
|
336
|
-
[Learn more about statusline integration →](docs/statusline-integration.md)
|
|
337
|
-
|
|
338
122
|
</details>
|
|
339
123
|
|
|
340
124
|
<details>
|
|
341
|
-
<summary
|
|
342
|
-
|
|
343
|
-
Searches are **project-aware by default**. Claude automatically searches within your current project:
|
|
125
|
+
<summary>Build from source</summary>
|
|
344
126
|
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
You: "Search all projects for WebSocket implementations"
|
|
352
|
-
Claude: [Searches across ALL your projects]
|
|
127
|
+
```bash
|
|
128
|
+
git clone https://github.com/ramakay/claude-self-reflect.git
|
|
129
|
+
cd claude-self-reflect/csr-engine
|
|
130
|
+
cargo build --release
|
|
131
|
+
cp target/release/csr-engine ~/.local/bin/
|
|
132
|
+
csr-engine setup
|
|
353
133
|
```
|
|
354
134
|
|
|
355
135
|
</details>
|
|
356
136
|
|
|
357
137
|
<details>
|
|
358
|
-
<summary><
|
|
138
|
+
<summary><strong>What You'll Ask</strong> — after install, just ask Claude naturally</summary>
|
|
359
139
|
|
|
360
|
-
|
|
361
|
-
-
|
|
362
|
-
-
|
|
363
|
-
-
|
|
140
|
+
- *"How did we solve re-renders on this component?"*
|
|
141
|
+
- *"What did we tell Joe about that commit?"*
|
|
142
|
+
- *"What were our frustrations with this approach?"*
|
|
143
|
+
- *"Where did we put the auth middleware config?"*
|
|
364
144
|
|
|
365
|
-
|
|
366
|
-
> Memory decay ensures recent solutions are prioritized while still maintaining historical context.
|
|
145
|
+
No special syntax. No commands. CSR finds relevant past context and injects it automatically.
|
|
367
146
|
|
|
368
147
|
</details>
|
|
369
148
|
|
|
370
149
|
<details>
|
|
371
|
-
<summary><
|
|
150
|
+
<summary><strong>Performance</strong> — sub-millisecond search, 93ms startup</summary>
|
|
372
151
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
> For best performance, keep Docker allocated 4GB+ RAM and use SSD storage.
|
|
152
|
+
| Metric | Value |
|
|
153
|
+
|--------|-------|
|
|
154
|
+
| **Cached startup** | 93ms |
|
|
155
|
+
| **Search latency (p95)** | <1ms |
|
|
156
|
+
| **Binary size** | 44MB |
|
|
157
|
+
| **Import speed** | ~20 conversations/sec |
|
|
158
|
+
| **Embedding** | 0.73ms/text (batch) |
|
|
381
159
|
|
|
382
160
|
</details>
|
|
383
161
|
|
|
384
|
-
## Architecture
|
|
385
|
-
|
|
386
162
|
<details>
|
|
387
|
-
<summary><
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
163
|
+
<summary><strong>MCP Tools</strong> — 12 annotated tools available to Claude</summary>
|
|
164
|
+
|
|
165
|
+
All tools include [MCP tool annotations](https://spec.modelcontextprotocol.io/specification/2025-11-05/server/tools/#annotations) so Claude Code understands their safety characteristics.
|
|
166
|
+
|
|
167
|
+
| Tool | Description | Safety |
|
|
168
|
+
|------|-------------|--------|
|
|
169
|
+
| `csr_reflect_on_past` | Semantic search across past conversations | read-only |
|
|
170
|
+
| `store_reflection` | Store insights for future retrieval | **writes** |
|
|
171
|
+
| `csr_quick_check` | Fast existence check (count + top match) | read-only |
|
|
172
|
+
| `search_by_recency` | Time-constrained search ("last week") | read-only |
|
|
173
|
+
| `get_recent_work` | "What did we work on?" with session grouping | read-only |
|
|
174
|
+
| `get_timeline` | Activity timeline with statistics | read-only |
|
|
175
|
+
| `csr_search_by_file` | Find conversations that touched a file | read-only |
|
|
176
|
+
| `csr_search_by_concept` | Theme-based search ("security", "testing") | read-only |
|
|
177
|
+
| `csr_search_insights` | Aggregated patterns from search results | read-only |
|
|
178
|
+
| `csr_get_more` | Paginate through additional results | read-only |
|
|
179
|
+
| `get_full_conversation` | Retrieve complete JSONL conversation | read-only |
|
|
180
|
+
| `get_session_learnings` | Iteration-level memory for Ralph loops | read-only |
|
|
404
181
|
|
|
405
182
|
</details>
|
|
406
183
|
|
|
407
|
-
## Requirements
|
|
408
|
-
|
|
409
184
|
<details>
|
|
410
|
-
<summary><
|
|
185
|
+
<summary><strong>Hooks</strong> — 6 session lifecycle hooks</summary>
|
|
411
186
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
187
|
+
| Hook | What it does |
|
|
188
|
+
|------|-------------|
|
|
189
|
+
| **SessionStart** | Surfaces relevant past context at conversation start |
|
|
190
|
+
| **UserPromptSubmit** | Predicts and injects context before Claude responds |
|
|
191
|
+
| **PostToolUse** | Tracks file edits with session-scoped dedup |
|
|
192
|
+
| **Stop** | Stores iteration learnings, detects stuck patterns |
|
|
193
|
+
| **PreCompact** | Backs up state before context compaction |
|
|
194
|
+
| **SessionEnd** | Stores session narrative for future retrieval |
|
|
418
195
|
|
|
419
|
-
|
|
420
|
-
- **8GB RAM** for optimal performance
|
|
421
|
-
- **SSD storage** for faster indexing
|
|
422
|
-
- **Docker Desktop 4.0+** for best compatibility
|
|
423
|
-
|
|
424
|
-
### Operating Systems
|
|
425
|
-
- macOS 11+ (Intel & Apple Silicon)
|
|
426
|
-
- Windows 10/11 with WSL2
|
|
427
|
-
- Linux (Ubuntu 20.04+, Debian 11+)
|
|
196
|
+
All hooks use catch-all error handling. They never block Claude Code.
|
|
428
197
|
|
|
429
198
|
</details>
|
|
430
199
|
|
|
431
|
-
## Documentation
|
|
432
|
-
|
|
433
200
|
<details>
|
|
434
|
-
<summary>
|
|
201
|
+
<summary><strong>AI Narratives</strong> — optional 9.3x quality boost</summary>
|
|
435
202
|
|
|
436
|
-
|
|
437
|
-
- **Embeddings**:
|
|
438
|
-
- Local (Default): FastEmbed with all-MiniLM-L6-v2
|
|
439
|
-
- Cloud (Optional): Voyage AI
|
|
440
|
-
- **MCP Server**: Python + FastMCP
|
|
441
|
-
- **Search**: Semantic similarity with time decay
|
|
442
|
-
|
|
443
|
-
</details>
|
|
444
|
-
|
|
445
|
-
<details>
|
|
446
|
-
<summary>Advanced Topics</summary>
|
|
203
|
+
Transform raw conversations into rich, searchable narratives. Requires an Anthropic API key.
|
|
447
204
|
|
|
448
|
-
|
|
449
|
-
-
|
|
450
|
-
|
|
451
|
-
- [Architecture details](docs/architecture-details.md)
|
|
452
|
-
- [Contributing](CONTRIBUTING.md)
|
|
453
|
-
|
|
454
|
-
</details>
|
|
455
|
-
|
|
456
|
-
<details>
|
|
457
|
-
<summary>Troubleshooting</summary>
|
|
205
|
+
```bash
|
|
206
|
+
csr-engine daemon
|
|
207
|
+
```
|
|
458
208
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
209
|
+
| Metric | Without | With AI Narratives |
|
|
210
|
+
|--------|---------|-------------------|
|
|
211
|
+
| Search quality | 0.074 | 0.691 (9.3x) |
|
|
212
|
+
| Token compression | 100% | 18% (82% reduction) |
|
|
213
|
+
| Cost per conversation | - | ~$0.012 (Batch API) |
|
|
462
214
|
|
|
463
215
|
</details>
|
|
464
216
|
|
|
465
217
|
<details>
|
|
466
|
-
<summary>
|
|
467
|
-
|
|
468
|
-
For complete uninstall instructions, see [docs/UNINSTALL.md](docs/UNINSTALL.md).
|
|
469
|
-
|
|
470
|
-
Quick uninstall:
|
|
471
|
-
```bash
|
|
472
|
-
# Remove MCP server
|
|
473
|
-
claude mcp remove claude-self-reflect
|
|
218
|
+
<summary><strong>CLI Reference</strong></summary>
|
|
474
219
|
|
|
475
|
-
# Stop Docker containers
|
|
476
|
-
docker-compose down
|
|
477
|
-
|
|
478
|
-
# Uninstall npm package
|
|
479
|
-
npm uninstall -g claude-self-reflect
|
|
480
220
|
```
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
221
|
+
csr-engine Start MCP server (default)
|
|
222
|
+
csr-engine setup One-shot setup: import + MCP + hooks
|
|
223
|
+
csr-engine status System status (JSON)
|
|
224
|
+
csr-engine status --compact One-line statusline output
|
|
225
|
+
csr-engine daemon Background enrichment daemon
|
|
226
|
+
csr-engine hook install --apply Install Claude Code hooks
|
|
227
|
+
csr-engine eval Quick eval (5 tests)
|
|
228
|
+
csr-engine eval --full Full eval (20 tests)
|
|
229
|
+
csr-engine quality <file> AST-based code quality analysis
|
|
488
230
|
```
|
|
489
231
|
|
|
490
|
-
Updates are automatic and preserve your data. See [full changelog](docs/release-history.md) for details.
|
|
491
|
-
|
|
492
|
-
<details>
|
|
493
|
-
<summary><b>Release Evolution</b></summary>
|
|
494
|
-
|
|
495
|
-
### v7.0 - Automated Narratives (Oct 2025)
|
|
496
|
-
- **9.3x better search quality** via AI-powered conversation summaries
|
|
497
|
-
- **50% cost savings** using Anthropic Batch API ($0.012 per conversation)
|
|
498
|
-
- **82% token compression** while maintaining searchability
|
|
499
|
-
- Rich metadata extraction (tools, concepts, files)
|
|
500
|
-
- Problem-solution narrative structure
|
|
501
|
-
- Automated batch processing with Docker monitoring
|
|
502
|
-
|
|
503
|
-
### v4.0 - Performance Revolution (Sep 2025)
|
|
504
|
-
- **20x faster** status checks (119ms → 6ms)
|
|
505
|
-
- **50% storage reduction** via unified state management
|
|
506
|
-
- **10x faster imports** (10/sec → 100/sec)
|
|
507
|
-
- **90% memory reduction** (500MB → 50MB)
|
|
508
|
-
- Runtime mode switching (no restart required)
|
|
509
|
-
- Prefixed collection naming (breaking change)
|
|
510
|
-
- Code quality tracking with AST-GREP (100+ patterns)
|
|
511
|
-
|
|
512
|
-
### v3.3 - Temporal Intelligence (Aug 2025)
|
|
513
|
-
- Time-based search: "docker issues last week"
|
|
514
|
-
- Session grouping: "What did we work on last?"
|
|
515
|
-
- Activity timelines with statistics
|
|
516
|
-
- Recency-aware queries
|
|
517
|
-
|
|
518
|
-
### v2.8 - Full Context Access (Jul 2025)
|
|
519
|
-
- Complete conversation retrieval
|
|
520
|
-
- JSONL file access for deeper analysis
|
|
521
|
-
- Enhanced debugging capabilities
|
|
522
|
-
|
|
523
|
-
[View complete changelog →](docs/release-history.md)
|
|
524
|
-
|
|
525
232
|
</details>
|
|
526
233
|
|
|
527
|
-
## Troubleshooting
|
|
528
|
-
|
|
529
234
|
<details>
|
|
530
|
-
<summary><
|
|
531
|
-
|
|
532
|
-
### 1. "No collections created" after import
|
|
533
|
-
**Symptom**: Import runs but Qdrant shows no collections
|
|
534
|
-
**Cause**: Docker can't access Claude projects directory
|
|
535
|
-
**Solution**:
|
|
536
|
-
```bash
|
|
537
|
-
# Run diagnostics to identify the issue
|
|
538
|
-
claude-self-reflect doctor
|
|
539
|
-
|
|
540
|
-
# Fix: Re-run setup to set correct paths
|
|
541
|
-
claude-self-reflect setup
|
|
542
|
-
|
|
543
|
-
# Verify .env has full paths (no ~):
|
|
544
|
-
cat .env | grep CLAUDE_LOGS_PATH
|
|
545
|
-
# Should show: CLAUDE_LOGS_PATH=/Users/YOUR_NAME/.claude/projects
|
|
546
|
-
```
|
|
235
|
+
<summary><strong>Upgrading from v7.x</strong></summary>
|
|
547
236
|
|
|
548
|
-
|
|
549
|
-
**Symptom**: `[ERROR] MCP server "claude-self-reflect" Server stderr: INFO Starting MCP server`
|
|
550
|
-
**Cause**: Claude Code displays all stderr output as errors
|
|
551
|
-
**Solution**: This is not an actual error - the MCP is working correctly. The INFO message confirms successful startup.
|
|
237
|
+
v8.0 replaces the Python/Docker stack with a single Rust binary.
|
|
552
238
|
|
|
553
|
-
### 3. "No JSONL files found"
|
|
554
|
-
**Symptom**: Setup can't find any conversation files
|
|
555
|
-
**Cause**: Claude Code hasn't been used yet or stores files elsewhere
|
|
556
|
-
**Solution**:
|
|
557
239
|
```bash
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
# If empty, use Claude Code to create some conversations first
|
|
562
|
-
# The watcher will import them automatically
|
|
563
|
-
```
|
|
564
|
-
|
|
565
|
-
### 4. Docker volume mount issues
|
|
566
|
-
**Symptom**: Import fails with permission errors
|
|
567
|
-
**Cause**: Docker can't access home directory
|
|
568
|
-
**Solution**:
|
|
569
|
-
```bash
|
|
570
|
-
# Ensure Docker has file sharing permissions
|
|
571
|
-
# macOS: Docker Desktop → Settings → Resources → File Sharing
|
|
572
|
-
# Add: /Users/YOUR_USERNAME/.claude
|
|
573
|
-
|
|
574
|
-
# Restart Docker and re-run setup
|
|
575
|
-
docker compose down
|
|
576
|
-
claude-self-reflect setup
|
|
240
|
+
docker compose down 2>/dev/null
|
|
241
|
+
curl -fsSL https://raw.githubusercontent.com/ramakay/claude-self-reflect/main/scripts/install.sh | sh
|
|
577
242
|
```
|
|
578
243
|
|
|
579
|
-
|
|
580
|
-
**Symptom**: Can't connect to localhost:6333
|
|
581
|
-
**Solution**:
|
|
582
|
-
```bash
|
|
583
|
-
# Start services
|
|
584
|
-
docker compose --profile mcp up -d
|
|
585
|
-
|
|
586
|
-
# Check if running
|
|
587
|
-
docker compose ps
|
|
588
|
-
|
|
589
|
-
# View logs for errors
|
|
590
|
-
docker compose logs qdrant
|
|
591
|
-
```
|
|
244
|
+
Your conversation data (`~/.claude/projects/`) is untouched. The new engine re-imports from the same JSONL files.
|
|
592
245
|
|
|
593
246
|
</details>
|
|
594
247
|
|
|
595
248
|
<details>
|
|
596
|
-
<summary><
|
|
249
|
+
<summary><strong>Troubleshooting</strong></summary>
|
|
597
250
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
251
|
+
| Symptom | Fix |
|
|
252
|
+
|---------|-----|
|
|
253
|
+
| No search results | Run `csr-engine setup` |
|
|
254
|
+
| MCP tools not available | Run `csr-engine setup`, restart Claude Code |
|
|
255
|
+
| "spawn ENOENT" in MCP | Ensure `csr-engine` is in PATH |
|
|
256
|
+
| Slow first startup | Normal (~14s for index rebuild, subsequent: ~93ms) |
|
|
602
257
|
|
|
603
|
-
|
|
604
|
-
- Docker installation and configuration
|
|
605
|
-
- Environment variables and paths
|
|
606
|
-
- Claude projects and JSONL files
|
|
607
|
-
- Import status and collections
|
|
608
|
-
- Service health
|
|
258
|
+
Full guide: [Documentation](https://ramakay.github.io/claude-self-reflect/#/docs/troubleshooting)
|
|
609
259
|
|
|
610
|
-
|
|
611
|
-
```bash
|
|
612
|
-
# View all service logs
|
|
613
|
-
docker compose logs -f
|
|
260
|
+
</details>
|
|
614
261
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
docker compose logs watcher
|
|
618
|
-
```
|
|
262
|
+
<details>
|
|
263
|
+
<summary><strong>Uninstall</strong></summary>
|
|
619
264
|
|
|
620
|
-
### Generate Diagnostic Report
|
|
621
265
|
```bash
|
|
622
|
-
|
|
623
|
-
claude-self-reflect
|
|
266
|
+
claude mcp remove claude-self-reflect
|
|
267
|
+
rm -rf ~/.claude-self-reflect/
|
|
268
|
+
rm ~/.local/bin/csr-engine
|
|
269
|
+
npm uninstall -g claude-self-reflect # if installed via npm
|
|
624
270
|
```
|
|
625
271
|
|
|
626
272
|
</details>
|
|
627
273
|
|
|
628
274
|
<details>
|
|
629
|
-
<summary><
|
|
275
|
+
<summary><strong>Contributors (v1–v7)</strong></summary>
|
|
630
276
|
|
|
631
|
-
1. **Check Documentation**
|
|
632
|
-
- [Troubleshooting Guide](docs/troubleshooting.md)
|
|
633
|
-
- [FAQ](docs/faq.md)
|
|
634
|
-
- [Windows Setup](docs/windows-setup.md)
|
|
635
|
-
|
|
636
|
-
2. **Community Support**
|
|
637
|
-
- [GitHub Discussions](https://github.com/ramakay/claude-self-reflect/discussions)
|
|
638
|
-
- [Discord Community](https://discord.gg/claude-self-reflect)
|
|
639
|
-
|
|
640
|
-
3. **Report Issues**
|
|
641
|
-
- [GitHub Issues](https://github.com/ramakay/claude-self-reflect/issues)
|
|
642
|
-
- Include diagnostic output when reporting
|
|
643
|
-
|
|
644
|
-
</details>
|
|
645
|
-
|
|
646
|
-
## Contributors
|
|
647
|
-
|
|
648
|
-
Special thanks to our contributors:
|
|
649
277
|
- **[@TheGordon](https://github.com/TheGordon)** - Fixed timestamp parsing (#10)
|
|
650
278
|
- **[@akamalov](https://github.com/akamalov)** - Ubuntu WSL insights
|
|
651
279
|
- **[@kylesnowschwartz](https://github.com/kylesnowschwartz)** - Security review (#6)
|
|
652
280
|
|
|
281
|
+
</details>
|
|
282
|
+
|
|
653
283
|
---
|
|
654
284
|
|
|
655
|
-
|
|
285
|
+
[Documentation](https://ramakay.github.io/claude-self-reflect/) | [npm](https://www.npmjs.com/package/claude-self-reflect) | [Issues](https://github.com/ramakay/claude-self-reflect/issues) | MIT License
|