You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,6 +373,50 @@ When adding repositories via the dashboard or MCP tools, use **paths as they app
373
373
374
374
The dashboard's **Browse** tab shows the container's filesystem, so you can just click to select. The **Enter Path** tab accepts relative paths within the workspace (e.g., `src`, `backend/api`).
375
375
376
+
## Automatic AI Agent Usage (Cursor Rules)
377
+
378
+
Context-Simplo tools are most effective when your AI agent uses them automatically instead of falling back to file-by-file search. You can add a Cursor rule that instructs the agent to prefer Context-Simplo for code intelligence tasks — reducing tool call chains and lowering token costs.
379
+
380
+
**Create `.cursor/rules/context-simplo-usage.mdc` in your project:**
381
+
382
+
```markdown
383
+
---
384
+
description: Use Context-Simplo MCP for code intelligence and analysis
385
+
alwaysApply: true
386
+
---
387
+
388
+
# Context-Simplo MCP
389
+
390
+
MCP server: `user-context-simplo`. Use it **instead of** grep/ripgrep/Glob/SemanticSearch when the codebase is indexed.
391
+
392
+
## Startup: call `list_repositories` first. If empty, call `index_repository` with path `/workspace`.
393
+
394
+
## Tool selection
395
+
396
+
-**Symbol by name** → `find_symbol` (with optional `kind` filter)
397
+
-**Who calls X / what does X call** → `find_callers` / `find_callees`
398
+
-**Execution path A→B** → `find_path`
399
+
-**Conceptual search** ("how do we handle auth?") → `semantic_search`
- Prefer Context-Simplo over multi-file Read/Grep chains — one MCP call replaces many tool calls
410
+
- Use `limit` parameter to cap results (default 10, increase only if needed)
411
+
- Pass `repositoryId` to scope queries and avoid full-index scans
412
+
- Use `incremental: true` when re-indexing after changes
413
+
- Skip Context-Simplo for single-file edits where the file is already open/known
414
+
```
415
+
416
+
**Why this reduces cost:** Without the rule, AI agents explore codebases by chaining multiple Grep → Read → Grep → Read calls, each consuming tokens. A single Context-Simplo MCP call (e.g., `find_callers` or `get_impact_radius`) replaces entire chains of exploration, returning structured results in one round-trip.
417
+
418
+
This also works with other MCP-compatible clients (VS Code, Claude Desktop, Claude Code) — adapt the rule format to your IDE's conventions.
0 commit comments