glancey 2.2.0 → 2.2.1

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
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="logo.png" alt="glancey logo" width="150" height="150">
2
+ <img src="logo.png" alt="Glancey logo" width="150" height="150">
3
3
  </p>
4
4
 
5
5
  <p align="center">
@@ -9,7 +9,7 @@
9
9
  <img src="https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg" alt="Node.js version">
10
10
  </p>
11
11
 
12
- # glancey
12
+ # Glancey
13
13
 
14
14
  An MCP plugin that adds semantic code search to Claude Code and other AI coding agents, giving them deep context from your entire codebase.
15
15
 
@@ -23,37 +23,11 @@ An MCP plugin that adds semantic code search to Claude Code and other AI coding
23
23
  - **Web Dashboard**: Real-time monitoring of index status, token savings, and usage statistics
24
24
  - **Beads Integration**: Shows issue tracker data if your project uses [beads](https://github.com/steveyegge/beads)
25
25
 
26
- ## How glancey Saves Tokens
27
-
28
- AI coding agents typically need to read entire files to understand your codebase, which consumes significant context tokens. glancey dramatically reduces token usage by:
29
-
30
- | Without glancey | With glancey | Savings |
31
- |-----------------------|-------------------|---------|
32
- | Read 5-10 files to find auth code (~5000 lines) | `search_code` returns 3 chunks (~150 lines) | ~97% |
33
- | Read entire file to understand structure | `get_symbols_overview` returns compact list | ~80-90% |
34
- | Explore many files to understand codebase | `summarize_codebase` + `list_concepts` | ~95% |
35
- | Read and compare files for duplicates | `search_similar` returns targeted results | ~90% |
36
-
37
- ### Token Savings Dashboard
38
-
39
- The web dashboard displays real-time token savings statistics:
40
- - **Estimated Tokens Saved**: Total tokens avoided by using semantic search
41
- - **Efficiency**: Percentage of potential tokens saved
42
- - **Files Not Read**: Count of files skipped due to targeted search
43
- - **Operations Tracked**: Number of search operations contributing to savings
44
-
45
- ### How It Works
46
-
47
- 1. **Chunking**: Your codebase is split into semantic chunks (functions, classes, etc.)
48
- 2. **Embedding**: Each chunk is converted to a vector embedding
49
- 3. **Search**: Queries find only the most relevant chunks, not entire files
50
- 4. **Return**: Only the matching chunks are sent to the AI, saving context tokens
51
-
52
26
  ## Installation
53
27
 
54
28
  ### Quick Install (Recommended)
55
29
 
56
- Add glancey to Claude Code:
30
+ Add Glancey to Claude Code:
57
31
 
58
32
  ```bash
59
33
  claude mcp add --scope user --transport stdio glancey -- npx -y glancey
@@ -69,7 +43,7 @@ For faster startup (no npm check on each run):
69
43
  npm install -g glancey
70
44
  ```
71
45
 
72
- This automatically registers glancey with Claude Code. Update manually with `npm update -g glancey`.
46
+ This automatically registers Glancey with Claude Code. Update manually with `npm update -g glancey`.
73
47
 
74
48
  ### Manual Registration
75
49
 
@@ -81,7 +55,21 @@ claude mcp add --scope user --transport stdio glancey -- npx -y glancey@latest
81
55
 
82
56
  ### Verify Installation
83
57
 
84
- In Claude Code, run `/mcp` to see glancey in the list of MCP servers.
58
+ In Claude Code, run `/mcp` to see Glancey in the list of MCP servers.
59
+
60
+ ### Initialize Your Project (Recommended)
61
+
62
+ After installing Glancey, run `init_project` in your project to set up agent instructions:
63
+
64
+ ```
65
+ > init_project
66
+ ```
67
+
68
+ This creates:
69
+ - **CLAUDE.md** - Instructions for AI agents on how to use Glancey tools
70
+ - **Post-commit hook** - Warns when commits bypass the `commit` tool
71
+
72
+ The hook is installed in `.husky/` if you use Husky, otherwise in `.git/hooks/`.
85
73
 
86
74
  ### Project-Level Installation
87
75
 
@@ -100,7 +88,7 @@ For project-specific MCP configuration, add a `.mcp.json` to your project root:
100
88
 
101
89
  ### Project Configuration
102
90
 
103
- Create a `.glancey.json` file in your project root to customize indexing behavior. All options are optional - glancey works out of the box with sensible defaults.
91
+ Create a `.glancey.json` file in your project root to customize indexing behavior. All options are optional - Glancey works out of the box with sensible defaults.
104
92
 
105
93
  #### Minimal Configuration
106
94
 
@@ -160,7 +148,7 @@ For most projects, you only need to specify what to include:
160
148
 
161
149
  #### Default Behavior
162
150
 
163
- Without a `.glancey.json` file, glancey will:
151
+ Without a `.glancey.json` file, Glancey will:
164
152
 
165
153
  - Index common source code files (TypeScript, JavaScript, Python, Go, Rust, Java, Ruby, PHP, C/C++, C#, Swift, Kotlin)
166
154
  - Exclude build artifacts, dependencies, and generated files
@@ -185,6 +173,32 @@ Set these environment variables to configure embedding backends:
185
173
  2. If `GEMINI_API_KEY` is set, use Gemini
186
174
  3. Fall back to Ollama (must be running locally)
187
175
 
176
+ ## How Glancey Saves Tokens
177
+
178
+ AI coding agents typically need to read entire files to understand your codebase, which consumes significant context tokens. Glancey dramatically reduces token usage by:
179
+
180
+ | Without Glancey | With Glancey | Savings |
181
+ |-----------------------|-------------------|---------|
182
+ | Read 5-10 files to find auth code (~5000 lines) | `search_code` returns 3 chunks (~150 lines) | ~97% |
183
+ | Read entire file to understand structure | `get_symbols_overview` returns compact list | ~80-90% |
184
+ | Explore many files to understand codebase | `summarize_codebase` + `list_concepts` | ~95% |
185
+ | Read and compare files for duplicates | `search_similar` returns targeted results | ~90% |
186
+
187
+ ### Token Savings Dashboard
188
+
189
+ The web dashboard displays real-time token savings statistics:
190
+ - **Estimated Tokens Saved**: Total tokens avoided by using semantic search
191
+ - **Efficiency**: Percentage of potential tokens saved
192
+ - **Files Not Read**: Count of files skipped due to targeted search
193
+ - **Operations Tracked**: Number of search operations contributing to savings
194
+
195
+ ### How It Works
196
+
197
+ 1. **Chunking**: Your codebase is split into semantic chunks (functions, classes, etc.)
198
+ 2. **Embedding**: Each chunk is converted to a vector embedding
199
+ 3. **Search**: Queries find only the most relevant chunks, not entire files
200
+ 4. **Return**: Only the matching chunks are sent to the AI, saving context tokens
201
+
188
202
  ## Architecture
189
203
 
190
204
  ```
@@ -213,7 +227,7 @@ Set these environment variables to configure embedding backends:
213
227
 
214
228
  ## Embedding Backend Setup
215
229
 
216
- glancey automatically selects the best available backend (in priority order):
230
+ Glancey automatically selects the best available backend (in priority order):
217
231
 
218
232
  1. **Google Gemini** (if `GEMINI_API_KEY` is set, free tier available)
219
233
  ```bash
@@ -245,7 +259,7 @@ Ollama provides free, local embeddings with no API rate limits. Perfect for inde
245
259
  ollama run qwen3-embedding:0.6b "test"
246
260
  ```
247
261
 
248
- That's it! glancey will automatically use Ollama when no Gemini API key is set.
262
+ That's it! Glancey will automatically use Ollama when no Gemini API key is set.
249
263
 
250
264
  #### Model Options
251
265
 
@@ -331,7 +345,7 @@ Use semantic search for exploring this codebase. Always run tests before committ
331
345
 
332
346
  ## Dashboard
333
347
 
334
- glancey includes a web dashboard for monitoring index status and usage.
348
+ Glancey includes a web dashboard for monitoring index status and usage.
335
349
 
336
350
  ### Accessing the Dashboard
337
351
 
@@ -16,7 +16,7 @@ export function getDashboardHTML() {
16
16
  <head>
17
17
  <meta charset="UTF-8">
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
- <title>glancey Dashboard</title>
19
+ <title>Glancey Dashboard</title>
20
20
  <link rel="icon" type="image/png" href="${FAVICON_PNG}">
21
21
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css">
22
22
  <style>
@@ -1186,8 +1186,8 @@ export function getDashboardHTML() {
1186
1186
  <header>
1187
1187
  <div class="header-left">
1188
1188
  <h1>
1189
- <div class="logo"><img src="${LOGO_PNG}" alt="glancey logo" width="40" height="36"></div>
1190
- glancey
1189
+ <div class="logo"><img src="${LOGO_PNG}" alt="Glancey logo" width="40" height="36"></div>
1190
+ Glancey
1191
1191
  <span class="version-badge" id="versionBadge"></span>
1192
1192
  </h1>
1193
1193
  <div class="project-name" id="projectName"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glancey",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "MCP plugin for semantic code search using LanceDB - gives AI coding agents deep context from your entire codebase",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",