@skyf0xx/hedgehog 6.0.2 → 6.0.4

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 CHANGED
@@ -95,20 +95,18 @@ Agents fan out to give you great outcomes at **faster speeds**.
95
95
 
96
96
  ## Your Code is a Graph
97
97
 
98
- Hedgehog indexes your codebase with [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext).
98
+ Hedgehog reaches for your editor's own Language Server Protocol integration to see what depends on what.
99
99
 
100
100
  ```mermaid
101
101
  flowchart TD
102
- A[Code Repository] --> B[Tree-sitter / SCIP Indexing]
103
- B --> C[Knowledge Graph]
104
- C --> D[Graph Database]
105
- D --> E[MCP Server]
106
- E --> F[Hedgehog]
102
+ A[Code Repository] --> B[Language Server]
103
+ B --> C[Symbols & References]
104
+ C --> D[Hedgehog]
107
105
  ```
108
106
 
109
- - **Fewer tokens burned**: tasks arrive knowing what to read, instead of searching for it
110
- - **Faster builds**: no time spent hunting through the codebase for context
111
- - **No more surprise breakage**: every task knows what depends on it before it edits
107
+ - **No index to go stale**: the language server's view of the code is always current
108
+ - **No time spent hunting through the codebase for context**: find references and callers directly
109
+ - **No more surprise breakage**: every task can check what depends on it before it edits
112
110
  - **Tests cover what changed**: verification that misses affected code gets caught
113
111
 
114
112
  ## Deterministic Code Generation
@@ -202,9 +200,7 @@ Where possible, Hedgehog uses a battle-tested blueprint in [`hedgehog-core-autho
202
200
 
203
201
  ### Existing codebases
204
202
 
205
- Hedgehog also adopts onto existing repos.
206
-
207
- It scans the repo's shape and is able to create new changes with the same scoped, verified, committed loop.
203
+ Hedgehog also adopts onto a repo it didn't build. It reads the repo and proposes a layer chain that verifies with the repo's own test/lint/build commands.
208
204
 
209
205
  ## Why Hedgehog Works
210
206
 
@@ -220,10 +216,7 @@ Mention `Hedgehog` whenever you want to build something with it.
220
216
  <summary>Instructions for AI Agents</summary>
221
217
 
222
218
  1. Check Node >=22.5.0 is installed.
223
- 2. Check Python >=3.10 is installed — it runs [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext), the code index every project uses.
224
- 3. Check CodeGraphContext is installed and configured.
225
- 4. If anything is missing, offer to set it up with the `hedgehog-code-intelligence-setup` skill — `init` stops without it.
226
- 5. Run the install commands above.
219
+ 2. Run the install commands below.
227
220
 
228
221
  </details>
229
222
 
@@ -290,8 +283,6 @@ new one.
290
283
 
291
284
  - Animation skills vendored from [gsap-skills](https://github.com/greensock/gsap-skills).
292
285
 
293
- - Hedgehog indexes your codebase with [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext).
294
-
295
286
  ## Support Hedgehog
296
287
 
297
288
  If Hedgehog helps you build better software with AI, **give it a ⭐ on GitHub**.
package/README.zh-CN.md CHANGED
@@ -95,20 +95,18 @@ npx @skyf0xx/hedgehog graph # 显示构建图
95
95
 
96
96
  ## 你的代码是一张图
97
97
 
98
- Hedgehog 使用 [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext) 为你的代码库建立索引。
98
+ Hedgehog 借助你编辑器自带的 Language Server Protocol 集成来查看代码间的依赖关系。
99
99
 
100
100
  ```mermaid
101
101
  flowchart TD
102
- A[代码仓库] --> B[Tree-sitter / SCIP 索引]
103
- B --> C[知识图谱]
104
- C --> D[图数据库]
105
- D --> E[MCP 服务器]
106
- E --> F[Hedgehog]
102
+ A[代码仓库] --> B[Language Server]
103
+ B --> C[符号与引用]
104
+ C --> D[Hedgehog]
107
105
  ```
108
106
 
109
- - **更省 Token**:任务开始时就已知道该读什么,无需四处搜索
110
- - **构建更快**:不必在代码库中翻找上下文
111
- - **不再意外改坏**:每个任务在动手前就知道有哪些代码依赖它
107
+ - **索引永不过期**:语言服务器看到的代码状态始终是最新的
108
+ - **不必在代码库中翻找上下文**:直接查找引用和调用方
109
+ - **不再意外改坏**:每个任务在动手前都能查一查有哪些代码依赖它
112
110
  - **测试覆盖改动**:遗漏受影响代码的验证会被发现
113
111
 
114
112
  ## 确定性代码生成
@@ -204,7 +202,7 @@ CLI、库、浏览器扩展、数据管道等,都会拥有各自的构建顺
204
202
 
205
203
  Hedgehog 也可以接入已有仓库。
206
204
 
207
- 它会扫描仓库的既有结构,并以同样受限、可验证、可提交的循环方式在其上创建新的改动。
205
+ Hedgehog 也可以接入它并未参与构建的仓库。它会读取该仓库,并提出一条构建层次链,用仓库自身的 test/lint/build 命令来验证。
208
206
 
209
207
  ## Hedgehog 为什么有效
210
208
 
@@ -220,10 +218,7 @@ Hedgehog 也可以接入已有仓库。
220
218
  <summary>给 AI Agent 的操作说明</summary>
221
219
 
222
220
  1. 检查已安装 Node >=22.5.0。
223
- 2. 检查已安装 Python >=3.10 —— 它负责运行 [CodeGraphContext](https://github.com/CodeGraphContext/CodeGraphContext),即每个项目都会用到的代码索引。
224
- 3. 检查 CodeGraphContext 已安装并完成配置。
225
- 4. 如有缺失,主动提出使用 `hedgehog-code-intelligence-setup` skill 完成配置 —— 否则 `init` 会中止。
226
- 5. 运行上方的安装命令。
221
+ 2. 运行上方的安装命令。
227
222
 
228
223
  </details>
229
224