ragtime-cli 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl
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.
Potentially problematic release.
This version of ragtime-cli might be problematic. Click here for more details.
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/METADATA +179 -42
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/RECORD +11 -9
- src/cli.py +657 -7
- src/commands/create-pr.md +389 -0
- src/commands/generate-docs.md +325 -0
- src/commands/pr-graduate.md +7 -2
- src/config.py +19 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/WHEEL +0 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/entry_points.txt +0 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/licenses/LICENSE +0 -0
- {ragtime_cli-0.2.2.dist-info → ragtime_cli-0.2.4.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragtime-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Local-first memory and RAG system for Claude Code - semantic search over code, docs, and team knowledge
|
|
5
5
|
Author-email: Bret Martineau <bretwardjames@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -37,8 +37,12 @@ Local-first memory and RAG system for Claude Code. Semantic search over code, do
|
|
|
37
37
|
- **Memory Storage**: Store structured knowledge with namespaces, types, and metadata
|
|
38
38
|
- **Semantic Search**: Query memories and docs with natural language
|
|
39
39
|
- **Cross-Branch Sync**: Share context with teammates before PRs merge
|
|
40
|
+
- **Convention Checking**: Verify code follows team standards before PRs
|
|
41
|
+
- **Doc Generation**: Generate documentation from code (stubs or AI-powered)
|
|
42
|
+
- **Debug Tools**: Verify index integrity, inspect similarity scores
|
|
40
43
|
- **MCP Server**: Native Claude Code integration
|
|
41
|
-
- **Claude Commands**: Pre-built `/remember`, `/recall`, `/
|
|
44
|
+
- **Claude Commands**: Pre-built `/remember`, `/recall`, `/create-pr`, `/generate-docs` commands
|
|
45
|
+
- **ghp-cli Integration**: Auto-context when starting issues
|
|
42
46
|
|
|
43
47
|
## Installation
|
|
44
48
|
|
|
@@ -52,6 +56,9 @@ pip install ragtime-cli
|
|
|
52
56
|
# Initialize in your project
|
|
53
57
|
ragtime init
|
|
54
58
|
|
|
59
|
+
# Index your docs
|
|
60
|
+
ragtime index
|
|
61
|
+
|
|
55
62
|
# Store a memory
|
|
56
63
|
ragtime remember "Auth uses JWT with 15-min expiry" \
|
|
57
64
|
--namespace app \
|
|
@@ -63,6 +70,9 @@ ragtime search "authentication" --namespace app
|
|
|
63
70
|
|
|
64
71
|
# Install Claude commands
|
|
65
72
|
ragtime install --workspace
|
|
73
|
+
|
|
74
|
+
# Check for updates
|
|
75
|
+
ragtime update --check
|
|
66
76
|
```
|
|
67
77
|
|
|
68
78
|
## CLI Commands
|
|
@@ -94,19 +104,75 @@ ragtime search "how does auth work" --namespace app --limit 10
|
|
|
94
104
|
|
|
95
105
|
# Reindex memory files
|
|
96
106
|
ragtime reindex
|
|
107
|
+
|
|
108
|
+
# Audit docs for missing frontmatter
|
|
109
|
+
ragtime audit docs/
|
|
110
|
+
ragtime audit docs/ --fix # Interactively add frontmatter
|
|
111
|
+
ragtime audit docs/ --json # Machine-readable output
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Documentation Generation
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Generate doc stubs from code
|
|
118
|
+
ragtime generate src/ --stubs
|
|
119
|
+
|
|
120
|
+
# Specify output location
|
|
121
|
+
ragtime generate src/ --stubs -o docs/api
|
|
122
|
+
|
|
123
|
+
# Python only
|
|
124
|
+
ragtime generate src/ --stubs -l python
|
|
125
|
+
|
|
126
|
+
# Include private methods
|
|
127
|
+
ragtime generate src/ --stubs --include-private
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Debug & Verification
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Debug a search query (show similarity scores)
|
|
134
|
+
ragtime debug search "authentication"
|
|
135
|
+
ragtime debug search "auth" --show-vectors
|
|
136
|
+
|
|
137
|
+
# Find similar documents
|
|
138
|
+
ragtime debug similar docs/auth/jwt.md
|
|
139
|
+
|
|
140
|
+
# Index statistics by namespace/type
|
|
141
|
+
ragtime debug stats
|
|
142
|
+
ragtime debug stats --by-namespace
|
|
143
|
+
ragtime debug stats --by-type
|
|
144
|
+
|
|
145
|
+
# Verify index integrity
|
|
146
|
+
ragtime debug verify
|
|
97
147
|
```
|
|
98
148
|
|
|
99
149
|
### Cross-Branch Sync
|
|
100
150
|
|
|
101
151
|
```bash
|
|
102
|
-
# Sync teammate
|
|
103
|
-
ragtime sync
|
|
152
|
+
# Sync all teammate branch memories
|
|
153
|
+
ragtime sync
|
|
104
154
|
|
|
105
|
-
#
|
|
155
|
+
# Auto-prune stale synced folders
|
|
156
|
+
ragtime sync --auto-prune
|
|
157
|
+
|
|
158
|
+
# Manual prune
|
|
106
159
|
ragtime prune --dry-run
|
|
107
160
|
ragtime prune
|
|
108
161
|
```
|
|
109
162
|
|
|
163
|
+
### Daemon (Auto-Sync)
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Start background sync daemon
|
|
167
|
+
ragtime daemon start --interval 5m
|
|
168
|
+
|
|
169
|
+
# Check status
|
|
170
|
+
ragtime daemon status
|
|
171
|
+
|
|
172
|
+
# Stop daemon
|
|
173
|
+
ragtime daemon stop
|
|
174
|
+
```
|
|
175
|
+
|
|
110
176
|
### Claude Integration
|
|
111
177
|
|
|
112
178
|
```bash
|
|
@@ -118,48 +184,47 @@ ragtime install --global
|
|
|
118
184
|
|
|
119
185
|
# List available commands
|
|
120
186
|
ragtime install --list
|
|
121
|
-
```
|
|
122
187
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Add to your Claude config (`.mcp.json`):
|
|
126
|
-
|
|
127
|
-
```json
|
|
128
|
-
{
|
|
129
|
-
"mcpServers": {
|
|
130
|
-
"ragtime": {
|
|
131
|
-
"command": "ragtime-mcp",
|
|
132
|
-
"args": ["--path", "."]
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
188
|
+
# Set up ghp-cli hooks
|
|
189
|
+
ragtime setup-ghp
|
|
136
190
|
```
|
|
137
191
|
|
|
138
|
-
Available tools:
|
|
139
|
-
- `remember` - Store a memory
|
|
140
|
-
- `search` - Semantic search
|
|
141
|
-
- `list_memories` - List with filters
|
|
142
|
-
- `get_memory` - Get by ID
|
|
143
|
-
- `store_doc` - Store document verbatim
|
|
144
|
-
- `forget` - Delete memory
|
|
145
|
-
- `graduate` - Promote branch → app
|
|
146
|
-
- `update_status` - Change memory status
|
|
147
|
-
|
|
148
192
|
## Storage Structure
|
|
149
193
|
|
|
150
194
|
```
|
|
151
|
-
.
|
|
152
|
-
├──
|
|
195
|
+
.ragtime/
|
|
196
|
+
├── config.yaml # Configuration
|
|
197
|
+
├── CONVENTIONS.md # Team rules (checked by /create-pr)
|
|
198
|
+
├── app/{component}/ # Graduated app knowledge (tracked)
|
|
153
199
|
│ └── {id}-{slug}.md
|
|
154
|
-
├── team/
|
|
200
|
+
├── team/ # Team conventions (tracked)
|
|
155
201
|
│ └── {id}-{slug}.md
|
|
156
|
-
├──
|
|
157
|
-
│
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
202
|
+
├── branches/
|
|
203
|
+
│ ├── {branch-slug}/ # Your branch (tracked in git)
|
|
204
|
+
│ │ ├── context.md
|
|
205
|
+
│ │ └── {id}-{slug}.md
|
|
206
|
+
│ └── .{branch-slug}/ # Synced from teammates (gitignored, dot-prefix)
|
|
207
|
+
├── archive/branches/ # Archived completed branches (tracked)
|
|
208
|
+
└── index/ # ChromaDB vector store (gitignored)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Configuration
|
|
212
|
+
|
|
213
|
+
`.ragtime/config.yaml`:
|
|
214
|
+
|
|
215
|
+
```yaml
|
|
216
|
+
docs:
|
|
217
|
+
paths: ["docs", ".ragtime"]
|
|
218
|
+
patterns: ["**/*.md"]
|
|
219
|
+
exclude: ["**/node_modules/**"]
|
|
220
|
+
|
|
221
|
+
code:
|
|
222
|
+
paths: ["."]
|
|
223
|
+
languages: ["python", "typescript", "dart"]
|
|
224
|
+
|
|
225
|
+
conventions:
|
|
226
|
+
files: [".ragtime/CONVENTIONS.md"]
|
|
227
|
+
also_search_memories: true
|
|
163
228
|
```
|
|
164
229
|
|
|
165
230
|
## Memory Format
|
|
@@ -174,7 +239,7 @@ type: architecture
|
|
|
174
239
|
component: auth
|
|
175
240
|
confidence: high
|
|
176
241
|
status: active
|
|
177
|
-
added: '
|
|
242
|
+
added: '2025-01-31'
|
|
178
243
|
author: bretwardjames
|
|
179
244
|
---
|
|
180
245
|
|
|
@@ -200,6 +265,7 @@ Sessions are stored in Redis, not cookies.
|
|
|
200
265
|
| `decision` | Why we chose X over Y |
|
|
201
266
|
| `convention` | Team standards |
|
|
202
267
|
| `pattern` | Reusable approaches |
|
|
268
|
+
| `integration` | External service connections |
|
|
203
269
|
| `context` | Session handoff |
|
|
204
270
|
|
|
205
271
|
## Claude Commands
|
|
@@ -212,8 +278,79 @@ After `ragtime install --workspace`:
|
|
|
212
278
|
| `/recall` | Search memories |
|
|
213
279
|
| `/handoff` | Save session context |
|
|
214
280
|
| `/start` | Resume work on an issue |
|
|
215
|
-
| `/pr
|
|
216
|
-
| `/
|
|
281
|
+
| `/create-pr` | Check conventions, graduate memories, create PR |
|
|
282
|
+
| `/generate-docs` | AI-powered documentation generation from code |
|
|
283
|
+
| `/import-docs` | Migrate existing docs to memories |
|
|
284
|
+
| `/pr-graduate` | Curate branch knowledge (fallback if forgot before PR) |
|
|
285
|
+
| `/audit` | Find duplicates/conflicts in memories |
|
|
286
|
+
|
|
287
|
+
## MCP Server
|
|
288
|
+
|
|
289
|
+
Add to your Claude config (`.mcp.json`):
|
|
290
|
+
|
|
291
|
+
```json
|
|
292
|
+
{
|
|
293
|
+
"mcpServers": {
|
|
294
|
+
"ragtime": {
|
|
295
|
+
"command": "ragtime-mcp",
|
|
296
|
+
"args": ["--path", "."]
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Available tools:
|
|
303
|
+
- `remember` - Store a memory
|
|
304
|
+
- `search` - Semantic search
|
|
305
|
+
- `list_memories` - List with filters
|
|
306
|
+
- `get_memory` - Get by ID
|
|
307
|
+
- `store_doc` - Store document verbatim
|
|
308
|
+
- `forget` - Delete memory
|
|
309
|
+
- `graduate` - Promote branch → app
|
|
310
|
+
- `update_status` - Change memory status
|
|
311
|
+
|
|
312
|
+
## ghp-cli Integration
|
|
313
|
+
|
|
314
|
+
If you use [ghp-cli](https://github.com/bretwardjames/ghp-cli):
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
# Register ragtime hooks
|
|
318
|
+
ragtime setup-ghp
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
This auto-creates `context.md` from issue details when you run `ghp start`.
|
|
322
|
+
|
|
323
|
+
## Workflow
|
|
324
|
+
|
|
325
|
+
### Starting Work
|
|
326
|
+
|
|
327
|
+
```bash
|
|
328
|
+
ghp start 123 # Creates branch + context.md
|
|
329
|
+
# or
|
|
330
|
+
ragtime new-branch 123 # Just the context
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### During Development
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
/remember "API uses rate limiting" # Capture insights
|
|
337
|
+
/handoff # Save progress for later
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Before PR
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
/create-pr
|
|
344
|
+
# 1. Checks code against CONVENTIONS.md
|
|
345
|
+
# 2. Reviews branch memories
|
|
346
|
+
# 3. Graduates selected memories to app/
|
|
347
|
+
# 4. Commits knowledge with code
|
|
348
|
+
# 5. Creates PR
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### After Merge
|
|
352
|
+
|
|
353
|
+
Graduated knowledge is already in the PR. Run `ragtime prune` to clean up synced folders.
|
|
217
354
|
|
|
218
355
|
## License
|
|
219
356
|
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
ragtime_cli-0.2.
|
|
1
|
+
ragtime_cli-0.2.4.dist-info/licenses/LICENSE,sha256=9A0wJs2PRDciGRH4F8JUJ-aMKYQyq_gVu2ixrXs-l5A,1070
|
|
2
2
|
src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
src/cli.py,sha256=
|
|
4
|
-
src/config.py,sha256=
|
|
3
|
+
src/cli.py,sha256=iNCYKD6w1gi64eNeb8BFj-xPzVnQLqHMzmPzoRGE3tI,67135
|
|
4
|
+
src/config.py,sha256=kaJV-7yI-LMW16e1w6JvM1ZCjgPf8EiBBOM4OXio6I8,4045
|
|
5
5
|
src/db.py,sha256=BKrlhilXYHNaj-ZcffinSXVhdUqowmwpFPBx7aLxamU,4642
|
|
6
6
|
src/mcp_server.py,sha256=Tx0i73GXO0YmcVrdO7UjRMS0auN8fBG2LOpHuf_LUC0,20374
|
|
7
7
|
src/memory.py,sha256=POT2lYeBcEx4_MPbsIdet6ScwcjmuETz8Dxmz-Z_7IY,11939
|
|
8
8
|
src/commands/audit.md,sha256=Xkucm-gfBIMalK9wf7NBbyejpsqBTUAGGlb7GxMtMPY,5137
|
|
9
|
+
src/commands/create-pr.md,sha256=u6-jVkDP_6bJQp6ImK039eY9F6B9E2KlAVlvLY-WV6Q,9483
|
|
10
|
+
src/commands/generate-docs.md,sha256=9W2Yy-PDyC3p5k39uEb31z5YAHkSKsQLg6gV3tLgSnQ,7015
|
|
9
11
|
src/commands/handoff.md,sha256=8VxTddtW08jGTW36GW_rS77JdeSn8vHeMfklrWwVUD4,5055
|
|
10
12
|
src/commands/import-docs.md,sha256=ByIdcfbdiF77HoFv5U6zZ_YvZf00-hAs9EMconXssvY,6927
|
|
11
|
-
src/commands/pr-graduate.md,sha256=
|
|
13
|
+
src/commands/pr-graduate.md,sha256=nXJMuXeOp0SZfjQ567NUO02Rg9zPQHQFbZbJ4Q_His0,6692
|
|
12
14
|
src/commands/recall.md,sha256=unQPWsmocKRoQR7jRtjrj8aVcMHverjGR6u5mYL8TLw,6008
|
|
13
15
|
src/commands/remember.md,sha256=nNewsUhIqF4wtD1jhVDZvmLZjdcmPN6NmUM43SdWepc,5368
|
|
14
16
|
src/commands/save.md,sha256=7gTpW46AU9Y4l8XVZ8f4h1sEdBfVqIRA7hlidUxMAC4,251
|
|
15
17
|
src/commands/start.md,sha256=qoqhkMgET74DBx8YPIT1-wqCiVBUDxlmevigsCinHSY,6506
|
|
16
18
|
src/indexers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
19
|
src/indexers/docs.py,sha256=7FENHaKSvC1T557bRzvmrjyaG_vK94GuQG9XMZdr89w,3349
|
|
18
|
-
ragtime_cli-0.2.
|
|
19
|
-
ragtime_cli-0.2.
|
|
20
|
-
ragtime_cli-0.2.
|
|
21
|
-
ragtime_cli-0.2.
|
|
22
|
-
ragtime_cli-0.2.
|
|
20
|
+
ragtime_cli-0.2.4.dist-info/METADATA,sha256=VtuTNejyKDZqNrVuC5tJGNHWDHVrIY-2Pk1-k0NlwWY,8383
|
|
21
|
+
ragtime_cli-0.2.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
22
|
+
ragtime_cli-0.2.4.dist-info/entry_points.txt,sha256=cWLbeyMxZNbew-THS3bHXTpCRXt1EaUy5QUOXGXLjl4,75
|
|
23
|
+
ragtime_cli-0.2.4.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
|
|
24
|
+
ragtime_cli-0.2.4.dist-info/RECORD,,
|