ragtime-cli 0.2.18__tar.gz → 0.3.0__tar.gz

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 (31) hide show
  1. {ragtime_cli-0.2.18/ragtime_cli.egg-info → ragtime_cli-0.3.0}/PKG-INFO +61 -28
  2. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/README.md +60 -27
  3. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/pyproject.toml +1 -4
  4. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0/ragtime_cli.egg-info}/PKG-INFO +61 -28
  5. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/ragtime_cli.egg-info/SOURCES.txt +0 -10
  6. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/cli.py +862 -105
  7. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/config.py +17 -1
  8. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/indexers/docs.py +86 -8
  9. ragtime_cli-0.2.18/src/commands/audit.md +0 -151
  10. ragtime_cli-0.2.18/src/commands/create-pr.md +0 -389
  11. ragtime_cli-0.2.18/src/commands/generate-docs.md +0 -325
  12. ragtime_cli-0.2.18/src/commands/handoff.md +0 -176
  13. ragtime_cli-0.2.18/src/commands/import-docs.md +0 -259
  14. ragtime_cli-0.2.18/src/commands/pr-graduate.md +0 -192
  15. ragtime_cli-0.2.18/src/commands/recall.md +0 -175
  16. ragtime_cli-0.2.18/src/commands/remember.md +0 -168
  17. ragtime_cli-0.2.18/src/commands/save.md +0 -10
  18. ragtime_cli-0.2.18/src/commands/start.md +0 -206
  19. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/LICENSE +0 -0
  20. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/ragtime_cli.egg-info/dependency_links.txt +0 -0
  21. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/ragtime_cli.egg-info/entry_points.txt +0 -0
  22. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/ragtime_cli.egg-info/requires.txt +0 -0
  23. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/ragtime_cli.egg-info/top_level.txt +0 -0
  24. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/setup.cfg +0 -0
  25. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/__init__.py +0 -0
  26. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/db.py +0 -0
  27. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/feedback.py +0 -0
  28. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/indexers/__init__.py +0 -0
  29. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/indexers/code.py +0 -0
  30. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/mcp_server.py +0 -0
  31. {ragtime_cli-0.2.18 → ragtime_cli-0.3.0}/src/memory.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ragtime-cli
3
- Version: 0.2.18
3
+ Version: 0.3.0
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
@@ -32,6 +32,10 @@ Dynamic: license-file
32
32
 
33
33
  Local-first memory and RAG system for Claude Code. Semantic search over code, docs, and team knowledge.
34
34
 
35
+ **Two interfaces, same data:**
36
+ - **CLI** for humans - formatted output, interactive workflows
37
+ - **MCP** for agents - structured data, tool integration
38
+
35
39
  ## Features
36
40
 
37
41
  - **Memory Storage**: Store structured knowledge with namespaces, types, and metadata
@@ -42,8 +46,8 @@ Local-first memory and RAG system for Claude Code. Semantic search over code, do
42
46
  - **Doc Generation**: Generate documentation from code (stubs or AI-powered)
43
47
  - **Debug Tools**: Verify index integrity, inspect similarity scores
44
48
  - **MCP Server**: Native Claude Code integration
45
- - **Claude Commands**: Pre-built `/remember`, `/recall`, `/create-pr`, `/generate-docs` commands
46
- - **ghp-cli Integration**: Auto-context when starting issues
49
+ - **Usage Documentation**: Guidance for integrating ragtime into AI workflows
50
+ - **ghp-cli Integration**: Auto-context when starting issues via hooks
47
51
 
48
52
  ## Installation
49
53
 
@@ -75,8 +79,8 @@ ragtime remember "Auth uses JWT with 15-min expiry" \
75
79
  # Search memories
76
80
  ragtime search "authentication" --namespace app
77
81
 
78
- # Install Claude commands
79
- ragtime install --workspace
82
+ # View usage documentation for AI integration
83
+ ragtime usage
80
84
 
81
85
  # Check for updates
82
86
  ragtime update --check
@@ -202,17 +206,17 @@ ragtime daemon status
202
206
  ragtime daemon stop
203
207
  ```
204
208
 
205
- ### Claude Integration
209
+ ### Usage Documentation
206
210
 
207
211
  ```bash
208
- # Install Claude commands to workspace
209
- ragtime install --workspace
210
-
211
- # Install globally
212
- ragtime install --global
212
+ # View all usage documentation
213
+ ragtime usage
213
214
 
214
- # List available commands
215
- ragtime install --list
215
+ # View specific sections
216
+ ragtime usage --section mcp # MCP server integration
217
+ ragtime usage --section cli # CLI workflow examples
218
+ ragtime usage --section workflows # Common AI workflow patterns
219
+ ragtime usage --section conventions # Convention checking
216
220
 
217
221
  # Set up ghp-cli hooks
218
222
  ragtime setup-ghp
@@ -255,6 +259,10 @@ code:
255
259
  conventions:
256
260
  files: [".ragtime/CONVENTIONS.md"]
257
261
  also_search_memories: true
262
+ storage: auto # auto | file | memory | ask
263
+ default_file: ".ragtime/CONVENTIONS.md"
264
+ folder: ".ragtime/conventions/"
265
+ scan_docs_for_sections: ["docs/"]
258
266
  ```
259
267
 
260
268
  ## How Search Works
@@ -404,21 +412,46 @@ Sessions are stored in Redis, not cookies.
404
412
  | `integration` | External service connections |
405
413
  | `context` | Session handoff |
406
414
 
407
- ## Claude Commands
408
-
409
- After `ragtime install --workspace`:
410
-
411
- | Command | Purpose |
412
- |---------|---------|
413
- | `/remember` | Capture knowledge mid-session |
414
- | `/recall` | Search memories |
415
- | `/handoff` | Save session context |
416
- | `/start` | Resume work on an issue |
417
- | `/create-pr` | Check conventions, graduate memories, create PR |
418
- | `/generate-docs` | AI-powered documentation generation from code |
419
- | `/import-docs` | Migrate existing docs to memories |
420
- | `/pr-graduate` | Curate branch knowledge (fallback if forgot before PR) |
421
- | `/audit` | Find duplicates/conflicts in memories |
415
+ ## AI Integration
416
+
417
+ Ragtime is designed to work seamlessly with AI agents via MCP tools. Run `ragtime usage` for comprehensive documentation on integration patterns.
418
+
419
+ ### Key Patterns
420
+
421
+ **Memory Storage**: Use `remember` to capture architectural decisions, patterns, and context:
422
+ ```
423
+ remember("Auth uses JWT with 15-min expiry", namespace="app", type="architecture", component="auth")
424
+ ```
425
+
426
+ **Semantic Search**: Use `search` for finding relevant code and documentation:
427
+ ```
428
+ search("how does authentication work", tiered=True) # Prioritizes curated knowledge
429
+ search("error handling", require_terms=["mobile", "dart"]) # Hybrid filtering
430
+ ```
431
+
432
+ **Convention Checking**: Before PRs, verify code follows team standards:
433
+ ```bash
434
+ ragtime check-conventions # Filtered to changed files
435
+ ragtime check-conventions --all # All conventions (for AI analysis)
436
+ ```
437
+
438
+ **Handoff Context**: Save session state for continuity:
439
+ ```
440
+ store_doc(content="Session summary...", namespace="branch-feature-123", doc_type="handoff")
441
+ ```
442
+
443
+ ### Building Custom Commands
444
+
445
+ Create project-specific slash commands in `.claude/commands/` that orchestrate ragtime tools:
446
+
447
+ ```markdown
448
+ # .claude/commands/my-workflow.md
449
+ 1. Search for relevant context: search("$ARGUMENTS", tiered=True)
450
+ 2. Store any new insights: remember(...)
451
+ 3. Check conventions before suggesting changes
452
+ ```
453
+
454
+ The **real value is in the MCP tools** - combine them however fits your workflow.
422
455
 
423
456
  ## MCP Server
424
457
 
@@ -2,6 +2,10 @@
2
2
 
3
3
  Local-first memory and RAG system for Claude Code. Semantic search over code, docs, and team knowledge.
4
4
 
5
+ **Two interfaces, same data:**
6
+ - **CLI** for humans - formatted output, interactive workflows
7
+ - **MCP** for agents - structured data, tool integration
8
+
5
9
  ## Features
6
10
 
7
11
  - **Memory Storage**: Store structured knowledge with namespaces, types, and metadata
@@ -12,8 +16,8 @@ Local-first memory and RAG system for Claude Code. Semantic search over code, do
12
16
  - **Doc Generation**: Generate documentation from code (stubs or AI-powered)
13
17
  - **Debug Tools**: Verify index integrity, inspect similarity scores
14
18
  - **MCP Server**: Native Claude Code integration
15
- - **Claude Commands**: Pre-built `/remember`, `/recall`, `/create-pr`, `/generate-docs` commands
16
- - **ghp-cli Integration**: Auto-context when starting issues
19
+ - **Usage Documentation**: Guidance for integrating ragtime into AI workflows
20
+ - **ghp-cli Integration**: Auto-context when starting issues via hooks
17
21
 
18
22
  ## Installation
19
23
 
@@ -45,8 +49,8 @@ ragtime remember "Auth uses JWT with 15-min expiry" \
45
49
  # Search memories
46
50
  ragtime search "authentication" --namespace app
47
51
 
48
- # Install Claude commands
49
- ragtime install --workspace
52
+ # View usage documentation for AI integration
53
+ ragtime usage
50
54
 
51
55
  # Check for updates
52
56
  ragtime update --check
@@ -172,17 +176,17 @@ ragtime daemon status
172
176
  ragtime daemon stop
173
177
  ```
174
178
 
175
- ### Claude Integration
179
+ ### Usage Documentation
176
180
 
177
181
  ```bash
178
- # Install Claude commands to workspace
179
- ragtime install --workspace
180
-
181
- # Install globally
182
- ragtime install --global
182
+ # View all usage documentation
183
+ ragtime usage
183
184
 
184
- # List available commands
185
- ragtime install --list
185
+ # View specific sections
186
+ ragtime usage --section mcp # MCP server integration
187
+ ragtime usage --section cli # CLI workflow examples
188
+ ragtime usage --section workflows # Common AI workflow patterns
189
+ ragtime usage --section conventions # Convention checking
186
190
 
187
191
  # Set up ghp-cli hooks
188
192
  ragtime setup-ghp
@@ -225,6 +229,10 @@ code:
225
229
  conventions:
226
230
  files: [".ragtime/CONVENTIONS.md"]
227
231
  also_search_memories: true
232
+ storage: auto # auto | file | memory | ask
233
+ default_file: ".ragtime/CONVENTIONS.md"
234
+ folder: ".ragtime/conventions/"
235
+ scan_docs_for_sections: ["docs/"]
228
236
  ```
229
237
 
230
238
  ## How Search Works
@@ -374,21 +382,46 @@ Sessions are stored in Redis, not cookies.
374
382
  | `integration` | External service connections |
375
383
  | `context` | Session handoff |
376
384
 
377
- ## Claude Commands
378
-
379
- After `ragtime install --workspace`:
380
-
381
- | Command | Purpose |
382
- |---------|---------|
383
- | `/remember` | Capture knowledge mid-session |
384
- | `/recall` | Search memories |
385
- | `/handoff` | Save session context |
386
- | `/start` | Resume work on an issue |
387
- | `/create-pr` | Check conventions, graduate memories, create PR |
388
- | `/generate-docs` | AI-powered documentation generation from code |
389
- | `/import-docs` | Migrate existing docs to memories |
390
- | `/pr-graduate` | Curate branch knowledge (fallback if forgot before PR) |
391
- | `/audit` | Find duplicates/conflicts in memories |
385
+ ## AI Integration
386
+
387
+ Ragtime is designed to work seamlessly with AI agents via MCP tools. Run `ragtime usage` for comprehensive documentation on integration patterns.
388
+
389
+ ### Key Patterns
390
+
391
+ **Memory Storage**: Use `remember` to capture architectural decisions, patterns, and context:
392
+ ```
393
+ remember("Auth uses JWT with 15-min expiry", namespace="app", type="architecture", component="auth")
394
+ ```
395
+
396
+ **Semantic Search**: Use `search` for finding relevant code and documentation:
397
+ ```
398
+ search("how does authentication work", tiered=True) # Prioritizes curated knowledge
399
+ search("error handling", require_terms=["mobile", "dart"]) # Hybrid filtering
400
+ ```
401
+
402
+ **Convention Checking**: Before PRs, verify code follows team standards:
403
+ ```bash
404
+ ragtime check-conventions # Filtered to changed files
405
+ ragtime check-conventions --all # All conventions (for AI analysis)
406
+ ```
407
+
408
+ **Handoff Context**: Save session state for continuity:
409
+ ```
410
+ store_doc(content="Session summary...", namespace="branch-feature-123", doc_type="handoff")
411
+ ```
412
+
413
+ ### Building Custom Commands
414
+
415
+ Create project-specific slash commands in `.claude/commands/` that orchestrate ragtime tools:
416
+
417
+ ```markdown
418
+ # .claude/commands/my-workflow.md
419
+ 1. Search for relevant context: search("$ARGUMENTS", tiered=True)
420
+ 2. Store any new insights: remember(...)
421
+ 3. Check conventions before suggesting changes
422
+ ```
423
+
424
+ The **real value is in the MCP tools** - combine them however fits your workflow.
392
425
 
393
426
  ## MCP Server
394
427
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ragtime-cli"
3
- version = "0.2.18"
3
+ version = "0.3.0"
4
4
  description = "Local-first memory and RAG system for Claude Code - semantic search over code, docs, and team knowledge"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -49,8 +49,5 @@ build-backend = "setuptools.build_meta"
49
49
  where = ["."]
50
50
  include = ["src*"]
51
51
 
52
- [tool.setuptools.package-data]
53
- "src.commands" = ["*.md"]
54
-
55
52
  [tool.ruff]
56
53
  line-length = 100
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ragtime-cli
3
- Version: 0.2.18
3
+ Version: 0.3.0
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
@@ -32,6 +32,10 @@ Dynamic: license-file
32
32
 
33
33
  Local-first memory and RAG system for Claude Code. Semantic search over code, docs, and team knowledge.
34
34
 
35
+ **Two interfaces, same data:**
36
+ - **CLI** for humans - formatted output, interactive workflows
37
+ - **MCP** for agents - structured data, tool integration
38
+
35
39
  ## Features
36
40
 
37
41
  - **Memory Storage**: Store structured knowledge with namespaces, types, and metadata
@@ -42,8 +46,8 @@ Local-first memory and RAG system for Claude Code. Semantic search over code, do
42
46
  - **Doc Generation**: Generate documentation from code (stubs or AI-powered)
43
47
  - **Debug Tools**: Verify index integrity, inspect similarity scores
44
48
  - **MCP Server**: Native Claude Code integration
45
- - **Claude Commands**: Pre-built `/remember`, `/recall`, `/create-pr`, `/generate-docs` commands
46
- - **ghp-cli Integration**: Auto-context when starting issues
49
+ - **Usage Documentation**: Guidance for integrating ragtime into AI workflows
50
+ - **ghp-cli Integration**: Auto-context when starting issues via hooks
47
51
 
48
52
  ## Installation
49
53
 
@@ -75,8 +79,8 @@ ragtime remember "Auth uses JWT with 15-min expiry" \
75
79
  # Search memories
76
80
  ragtime search "authentication" --namespace app
77
81
 
78
- # Install Claude commands
79
- ragtime install --workspace
82
+ # View usage documentation for AI integration
83
+ ragtime usage
80
84
 
81
85
  # Check for updates
82
86
  ragtime update --check
@@ -202,17 +206,17 @@ ragtime daemon status
202
206
  ragtime daemon stop
203
207
  ```
204
208
 
205
- ### Claude Integration
209
+ ### Usage Documentation
206
210
 
207
211
  ```bash
208
- # Install Claude commands to workspace
209
- ragtime install --workspace
210
-
211
- # Install globally
212
- ragtime install --global
212
+ # View all usage documentation
213
+ ragtime usage
213
214
 
214
- # List available commands
215
- ragtime install --list
215
+ # View specific sections
216
+ ragtime usage --section mcp # MCP server integration
217
+ ragtime usage --section cli # CLI workflow examples
218
+ ragtime usage --section workflows # Common AI workflow patterns
219
+ ragtime usage --section conventions # Convention checking
216
220
 
217
221
  # Set up ghp-cli hooks
218
222
  ragtime setup-ghp
@@ -255,6 +259,10 @@ code:
255
259
  conventions:
256
260
  files: [".ragtime/CONVENTIONS.md"]
257
261
  also_search_memories: true
262
+ storage: auto # auto | file | memory | ask
263
+ default_file: ".ragtime/CONVENTIONS.md"
264
+ folder: ".ragtime/conventions/"
265
+ scan_docs_for_sections: ["docs/"]
258
266
  ```
259
267
 
260
268
  ## How Search Works
@@ -404,21 +412,46 @@ Sessions are stored in Redis, not cookies.
404
412
  | `integration` | External service connections |
405
413
  | `context` | Session handoff |
406
414
 
407
- ## Claude Commands
408
-
409
- After `ragtime install --workspace`:
410
-
411
- | Command | Purpose |
412
- |---------|---------|
413
- | `/remember` | Capture knowledge mid-session |
414
- | `/recall` | Search memories |
415
- | `/handoff` | Save session context |
416
- | `/start` | Resume work on an issue |
417
- | `/create-pr` | Check conventions, graduate memories, create PR |
418
- | `/generate-docs` | AI-powered documentation generation from code |
419
- | `/import-docs` | Migrate existing docs to memories |
420
- | `/pr-graduate` | Curate branch knowledge (fallback if forgot before PR) |
421
- | `/audit` | Find duplicates/conflicts in memories |
415
+ ## AI Integration
416
+
417
+ Ragtime is designed to work seamlessly with AI agents via MCP tools. Run `ragtime usage` for comprehensive documentation on integration patterns.
418
+
419
+ ### Key Patterns
420
+
421
+ **Memory Storage**: Use `remember` to capture architectural decisions, patterns, and context:
422
+ ```
423
+ remember("Auth uses JWT with 15-min expiry", namespace="app", type="architecture", component="auth")
424
+ ```
425
+
426
+ **Semantic Search**: Use `search` for finding relevant code and documentation:
427
+ ```
428
+ search("how does authentication work", tiered=True) # Prioritizes curated knowledge
429
+ search("error handling", require_terms=["mobile", "dart"]) # Hybrid filtering
430
+ ```
431
+
432
+ **Convention Checking**: Before PRs, verify code follows team standards:
433
+ ```bash
434
+ ragtime check-conventions # Filtered to changed files
435
+ ragtime check-conventions --all # All conventions (for AI analysis)
436
+ ```
437
+
438
+ **Handoff Context**: Save session state for continuity:
439
+ ```
440
+ store_doc(content="Session summary...", namespace="branch-feature-123", doc_type="handoff")
441
+ ```
442
+
443
+ ### Building Custom Commands
444
+
445
+ Create project-specific slash commands in `.claude/commands/` that orchestrate ragtime tools:
446
+
447
+ ```markdown
448
+ # .claude/commands/my-workflow.md
449
+ 1. Search for relevant context: search("$ARGUMENTS", tiered=True)
450
+ 2. Store any new insights: remember(...)
451
+ 3. Check conventions before suggesting changes
452
+ ```
453
+
454
+ The **real value is in the MCP tools** - combine them however fits your workflow.
422
455
 
423
456
  ## MCP Server
424
457
 
@@ -14,16 +14,6 @@ src/db.py
14
14
  src/feedback.py
15
15
  src/mcp_server.py
16
16
  src/memory.py
17
- src/commands/audit.md
18
- src/commands/create-pr.md
19
- src/commands/generate-docs.md
20
- src/commands/handoff.md
21
- src/commands/import-docs.md
22
- src/commands/pr-graduate.md
23
- src/commands/recall.md
24
- src/commands/remember.md
25
- src/commands/save.md
26
- src/commands/start.md
27
17
  src/indexers/__init__.py
28
18
  src/indexers/code.py
29
19
  src/indexers/docs.py