milens 0.7.2 → 0.7.3
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/.agents/skills/adapters/SKILL.md +59 -59
- package/.agents/skills/analyzer/SKILL.md +83 -83
- package/.agents/skills/apps/SKILL.md +65 -65
- package/.agents/skills/docs/SKILL.md +63 -63
- package/.agents/skills/milens/SKILL.md +322 -322
- package/.agents/skills/milens-security-review/SKILL.md +224 -224
- package/.agents/skills/orchestrator/SKILL.md +64 -64
- package/.agents/skills/parser/SKILL.md +86 -86
- package/.agents/skills/root/SKILL.md +89 -89
- package/.agents/skills/scripts/SKILL.md +56 -56
- package/.agents/skills/security/SKILL.md +67 -67
- package/.agents/skills/server/SKILL.md +84 -84
- package/.agents/skills/store/SKILL.md +77 -77
- package/.agents/skills/test/SKILL.md +155 -155
- package/.agents/skills/ui/SKILL.md +56 -56
- package/README.md +577 -577
- package/adapters/README.md +144 -144
- package/adapters/claude-code/.claude/mcp.json +9 -9
- package/adapters/claude-code/.claude/settings.json.hooks-snippet.json +26 -26
- package/adapters/claude-code/.claude-plugin/plugin.json +11 -11
- package/adapters/claude-code/.mcp.json +9 -9
- package/adapters/claude-code/CLAUDE.md +81 -81
- package/adapters/claude-code/hooks/hooks.json +27 -27
- package/adapters/codex/.codex/config.toml +3 -3
- package/adapters/copilot/.vscode/mcp.json +10 -10
- package/adapters/cursor/.cursor/mcp.json +9 -9
- package/adapters/cursor/.cursorrules +69 -69
- package/adapters/gemini/.gemini/context.md +81 -81
- package/adapters/gemini/.gemini/settings.json +9 -9
- package/adapters/opencode/.opencode/config.json +8 -8
- package/adapters/zed/.zed/settings.json +8 -8
- package/dist/build-info.d.ts +2 -2
- package/dist/build-info.js +2 -2
- package/dist/cli.js +482 -482
- package/dist/parser/lang-css.js +9 -9
- package/dist/parser/lang-go.js +58 -58
- package/dist/parser/lang-html.js +3 -3
- package/dist/parser/lang-java.js +37 -37
- package/dist/parser/lang-js.js +105 -105
- package/dist/parser/lang-php.js +45 -45
- package/dist/parser/lang-py.js +43 -43
- package/dist/parser/lang-ruby.js +28 -28
- package/dist/parser/lang-rust.js +48 -48
- package/dist/parser/lang-ts.js +210 -210
- package/dist/server/mcp-prompts.js +502 -502
- package/dist/server/mcp.js +56 -56
- package/dist/skills.js +296 -296
- package/dist/store/annotations.js +1 -1
- package/dist/store/db.js +224 -224
- package/dist/store/schema.sql +144 -144
- package/dist/store/vectors.js +2 -2
- package/package.json +85 -85
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"servers": {
|
|
3
|
-
"milens": {
|
|
4
|
-
"type": "stdio",
|
|
5
|
-
"command": "milens",
|
|
6
|
-
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
7
|
-
"env": { "MILENS_PROFILE": "standard" }
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"servers": {
|
|
3
|
+
"milens": {
|
|
4
|
+
"type": "stdio",
|
|
5
|
+
"command": "milens",
|
|
6
|
+
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
7
|
+
"env": { "MILENS_PROFILE": "standard" }
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"milens": {
|
|
4
|
-
"command": "milens",
|
|
5
|
-
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
6
|
-
"env": { "MILENS_PROFILE": "standard" }
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"milens": {
|
|
4
|
+
"command": "milens",
|
|
5
|
+
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
6
|
+
"env": { "MILENS_PROFILE": "standard" }
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
# Milens — Code Intelligence for Cursor
|
|
2
|
-
|
|
3
|
-
## ⚠️ BEFORE ANYTHING ELSE
|
|
4
|
-
|
|
5
|
-
This project is indexed by **milens**. You have MCP tools that are faster and more accurate than reading files directly.
|
|
6
|
-
|
|
7
|
-
**HARD RULE: Use milens tools BEFORE built-in search/read tools.**
|
|
8
|
-
|
|
9
|
-
| Situation | Built-in approach (❌) | Milens approach (✅) |
|
|
10
|
-
|---|---|---|
|
|
11
|
-
| Understand a function | Read 3-10 files | `mcp_milens_overview({name: "X"})` — 1 call |
|
|
12
|
-
| Find references | grep in files | `mcp_milens_grep({pattern: "X"})` — searches everything |
|
|
13
|
-
| Check edit safety | Hope nothing breaks | `mcp_milens_impact({target: "X"})` — exact blast radius |
|
|
14
|
-
| Start working | Read README, explore files | `mcp_milens_codebase_summary()` — 500 token overview |
|
|
15
|
-
| Before commit | `git diff` manually | `mcp_milens_detect_changes()` — symbols + risk scores |
|
|
16
|
-
|
|
17
|
-
**If you skip milens tools, you're wasting tokens and risking breaking changes.**
|
|
18
|
-
|
|
19
|
-
## MCP Connection
|
|
20
|
-
|
|
21
|
-
Milens registers as an MCP server via `.cursor/mcp.json` (see that file in this adapter pack). All milens MCP calls require the `repo` parameter set to the absolute workspace root.
|
|
22
|
-
|
|
23
|
-
## ⭐ Core Tools (Use Every Session)
|
|
24
|
-
|
|
25
|
-
| Tool | Description |
|
|
26
|
-
|---|---|
|
|
27
|
-
| `mcp_milens_overview` | **Use this first.** Context + impact + grep combined. 1 call replaces 3-5 file reads. |
|
|
28
|
-
| `mcp_milens_impact` | Blast radius BEFORE editing. Shows what WILL BREAK. |
|
|
29
|
-
| `mcp_milens_edit_check` | Pre-edit safety: callers, export status, re-export chains, test coverage |
|
|
30
|
-
| `mcp_milens_context` | Full incoming + outgoing dependency view |
|
|
31
|
-
| `mcp_milens_query` | Symbol search by name |
|
|
32
|
-
| `mcp_milens_grep` | Text search everywhere (templates, configs, docs, styles) |
|
|
33
|
-
| `mcp_milens_detect_changes` | Pre-commit: changed symbols + dependents + risk scores |
|
|
34
|
-
| `mcp_milens_codebase_summary` | 500-token project overview. Use instead of reading README. |
|
|
35
|
-
|
|
36
|
-
### 🔧 Situational Tools (Use When Needed)
|
|
37
|
-
|
|
38
|
-
| Tool | Description | Use when... |
|
|
39
|
-
|---|---|---|
|
|
40
|
-
| `mcp_milens_guard_edit_check` | Hard pre-edit gate with audit tracking | Before every edit |
|
|
41
|
-
| `mcp_milens_trace` | Execution flow from entrypoints | Debugging call chains |
|
|
42
|
-
| `mcp_milens_explain_relationship` | Shortest dependency path | Understanding connections |
|
|
43
|
-
| `mcp_milens_get_type_hierarchy` | Class inheritance tree | Class exploration |
|
|
44
|
-
| `mcp_milens_find_dead_code` | Unused exported symbols | Before major refactors |
|
|
45
|
-
| `mcp_milens_status` | Index health: symbols, links, files, coverage | Session start |
|
|
46
|
-
|
|
47
|
-
## Workflow
|
|
48
|
-
|
|
49
|
-
**Every session follows this pattern:**
|
|
50
|
-
|
|
51
|
-
1. **Start** — `mcp_milens_status` to verify the index is healthy.
|
|
52
|
-
2. **Understand** — `mcp_milens_overview({name, repo})` for any symbol mentioned.
|
|
53
|
-
3. **Edit safely** — `mcp_milens_edit_check` before touching hub/shared code. Halt if dependents > 5.
|
|
54
|
-
4. **Verify** — `mcp_milens_detect_changes` before committing. Report unexpected changes.
|
|
55
|
-
5. **Refresh** — `npx milens analyze -p . --force` after significant edits.
|
|
56
|
-
|
|
57
|
-
## Mandatory Safety Rules
|
|
58
|
-
|
|
59
|
-
- **Never edit** a symbol without `mcp_milens_edit_check` first.
|
|
60
|
-
- **Never delete/rename** without `mcp_milens_grep` AND `mcp_milens_impact`.
|
|
61
|
-
- **Never commit** without `mcp_milens_detect_changes`.
|
|
62
|
-
- **Never omit** the `repo` parameter from milens calls.
|
|
63
|
-
- **Use `mcp_milens_grep`** (not `mcp_milens_query`) for phrases, UI text, config strings.
|
|
64
|
-
|
|
65
|
-
## Codebase Structure
|
|
66
|
-
|
|
67
|
-
- `.agents/skills/milens/SKILL.md` — full milens documentation
|
|
68
|
-
- `.agents/skills/` — area-specific skill files (analyzer, parser, server, store, etc.)
|
|
69
|
-
- `AGENTS.md` — project-level instructions and conventions
|
|
1
|
+
# Milens — Code Intelligence for Cursor
|
|
2
|
+
|
|
3
|
+
## ⚠️ BEFORE ANYTHING ELSE
|
|
4
|
+
|
|
5
|
+
This project is indexed by **milens**. You have MCP tools that are faster and more accurate than reading files directly.
|
|
6
|
+
|
|
7
|
+
**HARD RULE: Use milens tools BEFORE built-in search/read tools.**
|
|
8
|
+
|
|
9
|
+
| Situation | Built-in approach (❌) | Milens approach (✅) |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Understand a function | Read 3-10 files | `mcp_milens_overview({name: "X"})` — 1 call |
|
|
12
|
+
| Find references | grep in files | `mcp_milens_grep({pattern: "X"})` — searches everything |
|
|
13
|
+
| Check edit safety | Hope nothing breaks | `mcp_milens_impact({target: "X"})` — exact blast radius |
|
|
14
|
+
| Start working | Read README, explore files | `mcp_milens_codebase_summary()` — 500 token overview |
|
|
15
|
+
| Before commit | `git diff` manually | `mcp_milens_detect_changes()` — symbols + risk scores |
|
|
16
|
+
|
|
17
|
+
**If you skip milens tools, you're wasting tokens and risking breaking changes.**
|
|
18
|
+
|
|
19
|
+
## MCP Connection
|
|
20
|
+
|
|
21
|
+
Milens registers as an MCP server via `.cursor/mcp.json` (see that file in this adapter pack). All milens MCP calls require the `repo` parameter set to the absolute workspace root.
|
|
22
|
+
|
|
23
|
+
## ⭐ Core Tools (Use Every Session)
|
|
24
|
+
|
|
25
|
+
| Tool | Description |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `mcp_milens_overview` | **Use this first.** Context + impact + grep combined. 1 call replaces 3-5 file reads. |
|
|
28
|
+
| `mcp_milens_impact` | Blast radius BEFORE editing. Shows what WILL BREAK. |
|
|
29
|
+
| `mcp_milens_edit_check` | Pre-edit safety: callers, export status, re-export chains, test coverage |
|
|
30
|
+
| `mcp_milens_context` | Full incoming + outgoing dependency view |
|
|
31
|
+
| `mcp_milens_query` | Symbol search by name |
|
|
32
|
+
| `mcp_milens_grep` | Text search everywhere (templates, configs, docs, styles) |
|
|
33
|
+
| `mcp_milens_detect_changes` | Pre-commit: changed symbols + dependents + risk scores |
|
|
34
|
+
| `mcp_milens_codebase_summary` | 500-token project overview. Use instead of reading README. |
|
|
35
|
+
|
|
36
|
+
### 🔧 Situational Tools (Use When Needed)
|
|
37
|
+
|
|
38
|
+
| Tool | Description | Use when... |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `mcp_milens_guard_edit_check` | Hard pre-edit gate with audit tracking | Before every edit |
|
|
41
|
+
| `mcp_milens_trace` | Execution flow from entrypoints | Debugging call chains |
|
|
42
|
+
| `mcp_milens_explain_relationship` | Shortest dependency path | Understanding connections |
|
|
43
|
+
| `mcp_milens_get_type_hierarchy` | Class inheritance tree | Class exploration |
|
|
44
|
+
| `mcp_milens_find_dead_code` | Unused exported symbols | Before major refactors |
|
|
45
|
+
| `mcp_milens_status` | Index health: symbols, links, files, coverage | Session start |
|
|
46
|
+
|
|
47
|
+
## Workflow
|
|
48
|
+
|
|
49
|
+
**Every session follows this pattern:**
|
|
50
|
+
|
|
51
|
+
1. **Start** — `mcp_milens_status` to verify the index is healthy.
|
|
52
|
+
2. **Understand** — `mcp_milens_overview({name, repo})` for any symbol mentioned.
|
|
53
|
+
3. **Edit safely** — `mcp_milens_edit_check` before touching hub/shared code. Halt if dependents > 5.
|
|
54
|
+
4. **Verify** — `mcp_milens_detect_changes` before committing. Report unexpected changes.
|
|
55
|
+
5. **Refresh** — `npx milens analyze -p . --force` after significant edits.
|
|
56
|
+
|
|
57
|
+
## Mandatory Safety Rules
|
|
58
|
+
|
|
59
|
+
- **Never edit** a symbol without `mcp_milens_edit_check` first.
|
|
60
|
+
- **Never delete/rename** without `mcp_milens_grep` AND `mcp_milens_impact`.
|
|
61
|
+
- **Never commit** without `mcp_milens_detect_changes`.
|
|
62
|
+
- **Never omit** the `repo` parameter from milens calls.
|
|
63
|
+
- **Use `mcp_milens_grep`** (not `mcp_milens_query`) for phrases, UI text, config strings.
|
|
64
|
+
|
|
65
|
+
## Codebase Structure
|
|
66
|
+
|
|
67
|
+
- `.agents/skills/milens/SKILL.md` — full milens documentation
|
|
68
|
+
- `.agents/skills/` — area-specific skill files (analyzer, parser, server, store, etc.)
|
|
69
|
+
- `AGENTS.md` — project-level instructions and conventions
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
# Milens — Code Intelligence
|
|
2
|
-
|
|
3
|
-
## ⚠️ BEFORE ANYTHING ELSE
|
|
4
|
-
|
|
5
|
-
This project is indexed by **milens**. You have MCP tools that are faster and more accurate than reading files directly.
|
|
6
|
-
|
|
7
|
-
**HARD RULE: Use milens tools BEFORE built-in search/read tools.**
|
|
8
|
-
|
|
9
|
-
| Situation | Built-in approach (❌) | Milens approach (✅) |
|
|
10
|
-
|---|---|---|
|
|
11
|
-
| Understand a function | Read 3-10 files | `mcp_milens_overview({name: "X"})` — 1 call |
|
|
12
|
-
| Find references | grep in files | `mcp_milens_grep({pattern: "X"})` — searches everything |
|
|
13
|
-
| Check edit safety | Hope nothing breaks | `mcp_milens_impact({target: "X"})` — exact blast radius |
|
|
14
|
-
| Start working | Read README, explore files | `mcp_milens_codebase_summary()` — 500 token overview |
|
|
15
|
-
| Before commit | `git diff` manually | `mcp_milens_detect_changes()` — symbols + risk scores |
|
|
16
|
-
|
|
17
|
-
**If you skip milens tools, you're wasting tokens and risking breaking changes.**
|
|
18
|
-
|
|
19
|
-
## MCP Connection
|
|
20
|
-
|
|
21
|
-
```json
|
|
22
|
-
{
|
|
23
|
-
"mcpServers": {
|
|
24
|
-
"milens": {
|
|
25
|
-
"command": "milens",
|
|
26
|
-
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
27
|
-
"env": { "MILENS_PROFILE": "standard" }
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
All milens MCP calls require the `repo` parameter set to the absolute workspace root.
|
|
34
|
-
|
|
35
|
-
## ⭐ Core Tools (Use Every Session)
|
|
36
|
-
|
|
37
|
-
| Tool | Description |
|
|
38
|
-
|---|---|
|
|
39
|
-
| `mcp_milens_overview` | **Use this first.** Context + impact + grep combined. 1 call replaces 3-5 file reads. |
|
|
40
|
-
| `mcp_milens_impact` | Blast radius BEFORE editing. Shows what WILL BREAK. |
|
|
41
|
-
| `mcp_milens_edit_check` | Pre-edit safety: callers, export status, re-export chains, test coverage |
|
|
42
|
-
| `mcp_milens_context` | Full incoming + outgoing dependency view |
|
|
43
|
-
| `mcp_milens_query` | Symbol search by name |
|
|
44
|
-
| `mcp_milens_grep` | Text search everywhere (templates, configs, docs, styles) |
|
|
45
|
-
| `mcp_milens_detect_changes` | Pre-commit: changed symbols + dependents + risk scores |
|
|
46
|
-
| `mcp_milens_codebase_summary` | 500-token project overview. Use instead of reading README. |
|
|
47
|
-
|
|
48
|
-
### 🔧 Situational Tools (Use When Needed)
|
|
49
|
-
|
|
50
|
-
| Tool | Description | Use when... |
|
|
51
|
-
|---|---|---|
|
|
52
|
-
| `mcp_milens_guard_edit_check` | Hard pre-edit gate with audit tracking | Before every edit |
|
|
53
|
-
| `mcp_milens_trace` | Execution flow from entrypoints | Debugging call chains |
|
|
54
|
-
| `mcp_milens_explain_relationship` | Shortest dependency path | Understanding connections |
|
|
55
|
-
| `mcp_milens_get_type_hierarchy` | Class inheritance tree | Class exploration |
|
|
56
|
-
| `mcp_milens_find_dead_code` | Unused exported symbols | Before major refactors |
|
|
57
|
-
| `mcp_milens_status` | Index health: symbols, links, files, coverage | Session start |
|
|
58
|
-
|
|
59
|
-
## Workflow
|
|
60
|
-
|
|
61
|
-
**Every session follows this pattern:**
|
|
62
|
-
|
|
63
|
-
1. **Start** — `mcp_milens_status` to verify the index is healthy.
|
|
64
|
-
2. **Understand** — `mcp_milens_overview({name, repo})` for any symbol mentioned.
|
|
65
|
-
3. **Edit safely** — `mcp_milens_edit_check` before touching hub/shared code. Halt if dependents > 5.
|
|
66
|
-
4. **Verify** — `mcp_milens_detect_changes` before committing. Report unexpected changes.
|
|
67
|
-
5. **Refresh** — `npx milens analyze -p . --force` after significant edits.
|
|
68
|
-
|
|
69
|
-
## Mandatory Safety Rules
|
|
70
|
-
|
|
71
|
-
- **Never edit** a symbol without `mcp_milens_edit_check` first.
|
|
72
|
-
- **Never delete/rename** without `mcp_milens_grep` AND `mcp_milens_impact`.
|
|
73
|
-
- **Never commit** without `mcp_milens_detect_changes`.
|
|
74
|
-
- **Never omit** the `repo` parameter from milens calls.
|
|
75
|
-
- **Use `mcp_milens_grep`** (not `mcp_milens_query`) for phrases, UI text, config strings.
|
|
76
|
-
|
|
77
|
-
## Codebase Structure
|
|
78
|
-
|
|
79
|
-
- `.agents/skills/milens/SKILL.md` — full milens documentation
|
|
80
|
-
- `.agents/skills/` — area-specific skill files (analyzer, parser, server, store, etc.)
|
|
81
|
-
- `AGENTS.md` — project-level instructions and conventions
|
|
1
|
+
# Milens — Code Intelligence
|
|
2
|
+
|
|
3
|
+
## ⚠️ BEFORE ANYTHING ELSE
|
|
4
|
+
|
|
5
|
+
This project is indexed by **milens**. You have MCP tools that are faster and more accurate than reading files directly.
|
|
6
|
+
|
|
7
|
+
**HARD RULE: Use milens tools BEFORE built-in search/read tools.**
|
|
8
|
+
|
|
9
|
+
| Situation | Built-in approach (❌) | Milens approach (✅) |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Understand a function | Read 3-10 files | `mcp_milens_overview({name: "X"})` — 1 call |
|
|
12
|
+
| Find references | grep in files | `mcp_milens_grep({pattern: "X"})` — searches everything |
|
|
13
|
+
| Check edit safety | Hope nothing breaks | `mcp_milens_impact({target: "X"})` — exact blast radius |
|
|
14
|
+
| Start working | Read README, explore files | `mcp_milens_codebase_summary()` — 500 token overview |
|
|
15
|
+
| Before commit | `git diff` manually | `mcp_milens_detect_changes()` — symbols + risk scores |
|
|
16
|
+
|
|
17
|
+
**If you skip milens tools, you're wasting tokens and risking breaking changes.**
|
|
18
|
+
|
|
19
|
+
## MCP Connection
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"mcpServers": {
|
|
24
|
+
"milens": {
|
|
25
|
+
"command": "milens",
|
|
26
|
+
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
27
|
+
"env": { "MILENS_PROFILE": "standard" }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
All milens MCP calls require the `repo` parameter set to the absolute workspace root.
|
|
34
|
+
|
|
35
|
+
## ⭐ Core Tools (Use Every Session)
|
|
36
|
+
|
|
37
|
+
| Tool | Description |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `mcp_milens_overview` | **Use this first.** Context + impact + grep combined. 1 call replaces 3-5 file reads. |
|
|
40
|
+
| `mcp_milens_impact` | Blast radius BEFORE editing. Shows what WILL BREAK. |
|
|
41
|
+
| `mcp_milens_edit_check` | Pre-edit safety: callers, export status, re-export chains, test coverage |
|
|
42
|
+
| `mcp_milens_context` | Full incoming + outgoing dependency view |
|
|
43
|
+
| `mcp_milens_query` | Symbol search by name |
|
|
44
|
+
| `mcp_milens_grep` | Text search everywhere (templates, configs, docs, styles) |
|
|
45
|
+
| `mcp_milens_detect_changes` | Pre-commit: changed symbols + dependents + risk scores |
|
|
46
|
+
| `mcp_milens_codebase_summary` | 500-token project overview. Use instead of reading README. |
|
|
47
|
+
|
|
48
|
+
### 🔧 Situational Tools (Use When Needed)
|
|
49
|
+
|
|
50
|
+
| Tool | Description | Use when... |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| `mcp_milens_guard_edit_check` | Hard pre-edit gate with audit tracking | Before every edit |
|
|
53
|
+
| `mcp_milens_trace` | Execution flow from entrypoints | Debugging call chains |
|
|
54
|
+
| `mcp_milens_explain_relationship` | Shortest dependency path | Understanding connections |
|
|
55
|
+
| `mcp_milens_get_type_hierarchy` | Class inheritance tree | Class exploration |
|
|
56
|
+
| `mcp_milens_find_dead_code` | Unused exported symbols | Before major refactors |
|
|
57
|
+
| `mcp_milens_status` | Index health: symbols, links, files, coverage | Session start |
|
|
58
|
+
|
|
59
|
+
## Workflow
|
|
60
|
+
|
|
61
|
+
**Every session follows this pattern:**
|
|
62
|
+
|
|
63
|
+
1. **Start** — `mcp_milens_status` to verify the index is healthy.
|
|
64
|
+
2. **Understand** — `mcp_milens_overview({name, repo})` for any symbol mentioned.
|
|
65
|
+
3. **Edit safely** — `mcp_milens_edit_check` before touching hub/shared code. Halt if dependents > 5.
|
|
66
|
+
4. **Verify** — `mcp_milens_detect_changes` before committing. Report unexpected changes.
|
|
67
|
+
5. **Refresh** — `npx milens analyze -p . --force` after significant edits.
|
|
68
|
+
|
|
69
|
+
## Mandatory Safety Rules
|
|
70
|
+
|
|
71
|
+
- **Never edit** a symbol without `mcp_milens_edit_check` first.
|
|
72
|
+
- **Never delete/rename** without `mcp_milens_grep` AND `mcp_milens_impact`.
|
|
73
|
+
- **Never commit** without `mcp_milens_detect_changes`.
|
|
74
|
+
- **Never omit** the `repo` parameter from milens calls.
|
|
75
|
+
- **Use `mcp_milens_grep`** (not `mcp_milens_query`) for phrases, UI text, config strings.
|
|
76
|
+
|
|
77
|
+
## Codebase Structure
|
|
78
|
+
|
|
79
|
+
- `.agents/skills/milens/SKILL.md` — full milens documentation
|
|
80
|
+
- `.agents/skills/` — area-specific skill files (analyzer, parser, server, store, etc.)
|
|
81
|
+
- `AGENTS.md` — project-level instructions and conventions
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"milens": {
|
|
4
|
-
"command": "milens",
|
|
5
|
-
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
6
|
-
"env": { "MILENS_PROFILE": "minimal" }
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"milens": {
|
|
4
|
+
"command": "milens",
|
|
5
|
+
"args": ["serve", "-p", "${workspaceFolder}"],
|
|
6
|
+
"env": { "MILENS_PROFILE": "minimal" }
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcp": {
|
|
3
|
-
"milens": {
|
|
4
|
-
"type": "local",
|
|
5
|
-
"command": ["milens", "serve", "-p", "."]
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"mcp": {
|
|
3
|
+
"milens": {
|
|
4
|
+
"type": "local",
|
|
5
|
+
"command": ["milens", "serve", "-p", "."]
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"context_servers": {
|
|
3
|
-
"milens": {
|
|
4
|
-
"command": "milens serve -p .",
|
|
5
|
-
"env": { "MILENS_PROFILE": "minimal" }
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"context_servers": {
|
|
3
|
+
"milens": {
|
|
4
|
+
"command": "milens serve -p .",
|
|
5
|
+
"env": { "MILENS_PROFILE": "minimal" }
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
package/dist/build-info.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const BUILD_SHA = "
|
|
2
|
-
export declare const BUILT_AT = "2026-07-11T17:
|
|
1
|
+
export declare const BUILD_SHA = "0e33b44";
|
|
2
|
+
export declare const BUILT_AT = "2026-07-11T17:58:41+07:00";
|
package/dist/build-info.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Auto-generated by scripts/gen-build-info.mjs — do not edit manually
|
|
2
|
-
export const BUILD_SHA = '
|
|
3
|
-
export const BUILT_AT = '2026-07-11T17:
|
|
2
|
+
export const BUILD_SHA = '0e33b44';
|
|
3
|
+
export const BUILT_AT = '2026-07-11T17:58:41+07:00';
|
|
4
4
|
//# sourceMappingURL=build-info.js.map
|