@xelth/eck-snapshot 6.0.3 → 6.0.5
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 +29 -18
- package/package.json +1 -1
- package/src/cli/cli.js +2 -2
package/README.md
CHANGED
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
A specialized, AI-native CLI tool designed to create and restore single-file text snapshots of Git repositories. Optimized for providing full project context to Large Language Models (LLMs) and serving as the coordination hub for AI Coders.
|
|
4
4
|
|
|
5
|
-
## 🎯 The Battle-Tested Workflow (Author's Note)
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
## 🎯 The Battle-Tested Workflow & Quick Start
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
2. **Context Profiles:** If the project is huge, I use context profiles (`--profile frontend`) to slice it into manageable pieces.
|
|
11
|
-
3. **Direct Execution:** I write code directly using the Senior Architect's guidance and execute tasks via local Coders (Claude/OpenCode).
|
|
12
|
-
4. **Incremental Updates:** After changes are made, I use delta updates (`eck-snapshot update`) to keep the Architect's context perfectly synced without resending the whole repo.
|
|
8
|
+
I personally use this tool daily with local AI coding agents (**Claude Code** using Claude, and **OpenCode** using GLM). My reliable, heavily-tested workflow is:
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## 🚀 Quick Start
|
|
17
|
-
|
|
18
|
-
### Installation
|
|
10
|
+
### 1. Installation
|
|
19
11
|
```bash
|
|
20
12
|
npm install -g @xelth/eck-snapshot
|
|
21
13
|
```
|
|
22
14
|
|
|
23
|
-
###
|
|
15
|
+
### 2. Initial Context (Full Snapshots)
|
|
16
|
+
Take a full snapshot and feed it to a powerful Web LLM (Senior Architect like **Gemini** or **Grok**). *(Note: **ChatGPT** also works, but you MUST paste the specific prompt provided at the end of the snapshot output as your first prompt).*
|
|
24
17
|
```bash
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
eck-snapshot
|
|
19
|
+
```
|
|
20
|
+
*(For massive monorepos, slice the context using profiles: `eck-snapshot --profile frontend`)*
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
### 3. Direct Execution
|
|
23
|
+
Pass the Architect's technical plan to your local Coder agent (Claude Code / OpenCode). The Coder will implement the changes directly in your repository.
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
### 4. Auto-Updates vs Manual Updates
|
|
26
|
+
When the Coder agent finishes a task, it automatically calls the built-in MCP tool (`eck_finish_task`), which commits the code and automatically generates an incremental delta update snapshot.
|
|
27
|
+
|
|
28
|
+
**Optional Manual Update:**
|
|
29
|
+
If you make manual changes yourself (without the agent), use this command to create a delta snapshot to sync your Web AI:
|
|
30
|
+
```bash
|
|
32
31
|
eck-snapshot update
|
|
33
32
|
```
|
|
33
|
+
This core loop is highly polished, actively maintained, and works exceptionally well.
|
|
34
34
|
|
|
35
35
|
## 🌟 Core Features
|
|
36
36
|
|
|
@@ -45,9 +45,20 @@ eck-snapshot update
|
|
|
45
45
|
|
|
46
46
|
*The following features are included in the tool, but I am not actively using them in my daily workflow right now. They are available for power users, but might have edge cases. If you use them and find issues, please open an issue on GitHub, or better yet, try fixing it yourself (you have the ultimate AI coding tool in your hands now!)*
|
|
47
47
|
|
|
48
|
-
* **🧠 Multi-Agent Protocol (Royal Court):** Built-in support for delegating tasks from a Senior Architect to Junior Managers (`--jas`, `--jao`, `--jaz`), who orchestrate a swarm of specialized GLM
|
|
48
|
+
* **🧠 Multi-Agent Protocol (Royal Court):** Built-in support for delegating tasks from a Senior Architect to Junior Managers (`--jas`, `--jao`, `--jaz`), who orchestrate a swarm of specialized GLM workers via MCP.
|
|
49
49
|
* **☠️ Skeleton Mode:** Uses `Tree-sitter` and `Babel` to strip function bodies (`--skeleton`), drastically reducing token count.
|
|
50
50
|
* **📊 Telemetry Hub:** Integrated with a Rust-based microservice for tracking agent execution metrics and auto-syncing token estimation weights.
|
|
51
51
|
|
|
52
|
+
|
|
53
|
+
## 💡 The Philosophy: Why force a full snapshot?
|
|
54
|
+
|
|
55
|
+
You've probably noticed a pattern: the longer you chat with an LLM about your codebase, the smarter it gets and the better its code becomes.
|
|
56
|
+
|
|
57
|
+
How do you get that expert-level understanding from the very first prompt? You can't rely on an agent guessing which isolated files to read based on filenames. You need to force-feed it the entire context at once.
|
|
58
|
+
|
|
59
|
+
Think of AI models like human engineers. Imagine a person standing next to a massive bookshelf of programming textbooks. The total amount of information available to them is exactly the same before they go to university and after they graduate. Both can open a book, check the table of contents, and look up a formula. Yet, the results they produce are vastly different. Why? Because the graduate has the structural context *inside their head*.
|
|
60
|
+
|
|
61
|
+
LLMs work the exact same way. Giving an AI a "file search" tool is like putting a beginner next to the bookshelf. Forcing a complete project snapshot into the LLM's massive context window is like giving it a university degree in your specific codebase. That is what `eck-snapshot` does.
|
|
62
|
+
|
|
52
63
|
## License
|
|
53
64
|
MIT © xelth-com
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xelth/eck-snapshot",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "A powerful CLI tool to create and restore single-file text snapshots of Git repositories. Optimized for AI context, LLM workflows, and multi-agent Swarm coordination.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
package/src/cli/cli.js
CHANGED
|
@@ -116,8 +116,8 @@ export function run() {
|
|
|
116
116
|
(For very large projects, use profiles: $ eck-snapshot --profile backend)
|
|
117
117
|
|
|
118
118
|
2. Working & Updating
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
Local coders (Claude Code / OpenCode) will automatically sync context using MCP tools when they finish a task.
|
|
120
|
+
If YOU make manual changes, send an incremental update to the Web AI:
|
|
121
121
|
|
|
122
122
|
$ eck-snapshot update
|
|
123
123
|
-> Generates: .eck/snapshots/update_<timestamp>.md (Contains changed/deleted files)
|