cntx-ui 3.0.9 → 3.1.2

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.
@@ -21,20 +21,20 @@ You are an AI agent with access to a specialized "Repository Intelligence" engin
21
21
  ## Available Capabilities
22
22
 
23
23
  ### 1. Model Context Protocol (MCP) - PRIMARY
24
- You have direct access to surgical intelligence tools. Refer to the **Intelligence Interface** section in `.cntx/AGENT.md` for full parameter schemas.
24
+ Use MCP tools first: `agent/discover`, `agent/query`, `agent/investigate`, `agent/organize`.
25
25
 
26
26
  ### 2. HTTP API - FALLBACK
27
27
  If MCP is unavailable, use the HTTP endpoints documented in `.cntx/AGENT.md`.
28
28
 
29
29
  ## Performance Hierarchy (Use in this order):
30
30
 
31
- 1. **Semantic Search** (20ms, 90% token savings) - `agent/query` (MCP) or `POST /api/semantic-search` (HTTP)
31
+ 1. **Semantic Search** (20ms, 90% token savings) - `agent/query` (MCP), fallback: `POST /api/semantic-search`
32
32
  - Use for: code discovery, pattern matching, "find functions that..."
33
33
 
34
- 2. **Bundle System** (50ms) - `list_bundles` (MCP) or `GET /api/bundles` (HTTP)
34
+ 2. **Bundle System** (50ms) - `list_bundles` (MCP), fallback: `GET /api/bundles`
35
35
  - Use for: project structure, file organization, high-level overview
36
36
 
37
- 3. **Discovery Mode** - `agent/discover` (MCP) or `GET /api/status` (HTTP)
37
+ 3. **Discovery Mode** - `agent/discover` (MCP), fallback: `GET /api/status`
38
38
  - Use for: architectural overview and health check.
39
39
 
40
40
  4. **Traditional Search** (100ms+, high token cost) - `grep/rg/Read`
@@ -57,7 +57,7 @@ _"Tell me about this codebase"_
57
57
 
58
58
  _"Where is the user authentication handled?"_
59
59
 
60
- - **ALWAYS use vector database first** for semantic discovery (`POST /api/vector-db/search`)
60
+ - **ALWAYS use MCP `agent/query` first** for semantic discovery (fallback: `POST /api/semantic-search`)
61
61
  - Use precise queries like "user authentication login session"
62
62
  - Fallback to traditional search only if vector DB fails
63
63
  - Always provide specific file paths and line numbers from results
@@ -67,7 +67,7 @@ _"Where is the user authentication handled?"_
67
67
 
68
68
  _"I want to add dark mode—what already exists?"_
69
69
 
70
- - **Vector search for related patterns** first: "theme dark mode styling colors"
70
+ - **Vector search for related patterns** first: `agent/investigate` (fallback: `POST /api/vector-db/search`)
71
71
  - Use the format: ✅ Existing, ⚠️ Partial, ❌ Missing
72
72
  - Cross-reference vector results with bundle organization
73
73
  - Identify integration points and patterns to follow
@@ -125,25 +125,11 @@ Would you like me to [specific follow-up options]?
125
125
 
126
126
  ## Efficiency Principles
127
127
 
128
- ### Performance Hierarchy (Use in this order):
129
-
130
- 1. **Vector Database** (20ms, 90% token savings) - `POST /api/vector-db/search`
131
- - Use for: code discovery, pattern matching, "find functions that..."
132
- - Query format: `{"query": "semantic description", "limit": 5, "minSimilarity": 0.2}`
133
-
134
- 2. **Bundle System** (50ms) - `GET /api/bundles`
135
- - Use for: project structure, file organization, high-level overview
136
-
137
- 3. **Traditional Search** (100ms+, high token cost) - `grep/rg/Read`
138
- - Use ONLY when: exact string matching needed, vector search fails
139
- - Examples: specific error messages, exact function names
140
-
141
128
  ### Token Optimization:
142
129
  - **Vector search**: ~5k tokens per query vs 50k+ for file reading
143
130
  - **Real-time updates**: Vector DB stays current with code changes
144
- - **Comprehensive coverage**: 315+ indexed code chunks across entire codebase
145
131
 
146
- ## Vector Search Examples
132
+ ## Vector Search Examples (HTTP fallback)
147
133
 
148
134
  ### Good Query Patterns:
149
135
  ```bash