aidex
v1.8.0Persistent code indexing for AI assistants.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
aidex_init
Initialize AiDex indexing for a project. Scans all source files and builds a searchable index of identifiers, methods, types, and signatures.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project directory to index |
exclude | array | Additional glob patterns to exclude (e.g., ["**/test/**"]) |
name | string | Optional project name (defaults to directory name) |
aidex_query
Search for terms/identifiers in the AiDex index. Returns file locations where the term appears. PREFERRED over Grep/Glob for code searches when .aidex/ exists - faster and more precise. Use this instead of grep for finding functions, classes, variables by name.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
term * | string | The term to search for |
file_filter | string | Glob pattern to filter files (e.g., "src/commands/**") |
limit | number | Maximum number of results (default: 100) |
mode | string | Search mode: exact match, contains, or starts_with (default: exact) |
modified_before | string | Only include lines modified before this time. Same format as modified_since |
modified_since | string | Only include lines modified after this time. Supports: "2h" (hours), "30m" (minutes), "1d" (days), "1w" (weeks), or ISO date string |
type_filter | array | Filter by line type: code, comment, method, struct, property |
aidex_status
Get AiDex server status and statistics for an indexed project
| Parameter | Type | Description |
|---|---|---|
path | string | Path to project with .aidex directory (optional, shows server status if not provided) |
aidex_signature
Get the signature of a single file: header comments, types (classes/structs/interfaces), and method prototypes. Use this INSTEAD of reading entire files when you only need to know what methods/classes exist. Much faster than Read tool for understanding file structure.
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative path to the file within the project (e.g., "src/Core/Engine.cs") |
path * | string | Path to project with .aidex directory |
aidex_signatures
Get signatures for multiple files at once using glob pattern or file list. Returns types and method prototypes. Use INSTEAD of reading multiple files when exploring codebase structure. Much more efficient than multiple Read calls.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
files | array | Explicit list of relative file paths (alternative to pattern) |
pattern | string | Glob pattern to match files (e.g., "src/Core/**/*.cs", "**/*.ts") |
aidex_update
Re-index a single file. Use after editing a file to update the AiDex index. If the file is new, it will be added to the index. If unchanged (same hash), no update is performed.
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative path to the file to update (e.g., "src/Core/Engine.cs") |
path * | string | Path to project with .aidex directory |
aidex_remove
Remove a file from the AiDex index. Use when a file has been deleted from the project.
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative path to the file to remove (e.g., "src/OldFile.cs") |
path * | string | Path to project with .aidex directory |
aidex_summary
Get project summary including auto-detected entry points, main types, and languages. Also returns content from summary.md if it exists.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
aidex_tree
Get the indexed file tree. Optionally filter by subdirectory, limit depth, or include statistics per file.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
depth | number | Maximum depth to traverse (default: unlimited) |
include_stats | boolean | Include item/method/type counts per file |
subpath | string | Subdirectory to list (default: project root) |
aidex_describe
Add or update a section in the project summary (summary.md). Use to document project purpose, architecture, key concepts, or patterns.
| Parameter | Type | Description |
|---|---|---|
content * | string | Content to add to the section |
path * | string | Path to project with .aidex directory |
section * | string | Section to update |
replace | boolean | Replace existing section content (default: append) |
aidex_link
Link a dependency project to enable cross-project queries. The dependency must have its own .aidex index.
| Parameter | Type | Description |
|---|---|---|
dependency * | string | Path to dependency project to link |
path * | string | Path to current project with .aidex directory |
name | string | Optional display name for the dependency |
aidex_unlink
Remove a linked dependency project.
| Parameter | Type | Description |
|---|---|---|
dependency * | string | Path to dependency project to unlink |
path * | string | Path to current project with .aidex directory |
aidex_links
List all linked dependency projects.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
aidex_scan
Scan a directory tree to find all projects with AiDex indexes (.aidex directories). Use this to discover which projects are already indexed before using Grep/Glob - indexed projects should use aidex_query instead.
| Parameter | Type | Description |
|---|---|---|
path * | string | Root path to scan for .aidex directories |
max_depth | number | Maximum directory depth to scan (default: 10) |
aidex_files
List all files and directories in the indexed project. Returns the complete project structure with file types (code, config, doc, asset, test, other) and whether each file is indexed for code search. Use modified_since to find files changed in this session.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
modified_since | string | Only files indexed after this time. Supports: "2h", "30m", "1d", "1w", or ISO date. Use to find files changed this session. |
pattern | string | Glob pattern to filter files (e.g., "src/**/*.ts") |
type | string | Filter by file type |
aidex_note
Read or write a session note for the project. Use this to leave reminders for the next session (e.g., "Test the glob fix", "Refactor X"). Notes persist in the AiDex database and are shown when querying the project.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
append | boolean | If true, appends to existing note instead of replacing (default: false) |
clear | boolean | If true, clears the note (default: false) |
note | string | Note to save. If omitted, reads the current note. |
aidex_session
Start or check an AiDex session. Call this at the beginning of a new chat session to: (1) detect files changed externally since last session, (2) auto-reindex modified files, (3) get session note and last session times. Returns info for "What did we do last session?" queries.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
aidex_viewer
Open an interactive project tree viewer in the browser. Shows the indexed file structure with clickable nodes - click on a file to see its signature (header comments, types, methods). Uses a local HTTP server with WebSocket for live updates.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
action | string | Action to perform: open (default) or close the viewer |
aidex_task
Manage a single task in the project backlog. Actions: create (new task), read (get task + log), update (change fields), delete, log (add history note). Tasks persist in the AiDex database. Completed tasks are preserved as documentation.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform on the task |
path * | string | Path to project with .aidex directory |
description | string | Task description (optional details) |
id | number | Task ID (required for read/update/delete/log) |
note | string | Log note text (required for log action) |
priority | number | Priority: 1=high, 2=medium (default), 3=low |
sort_order | number | Sort order within same priority (lower = first, default: 0) |
source | string | Where the task came from (freetext, e.g., "code review of parser.ts:142") |
status | string | Task status (default: backlog) |
tags | string | Comma-separated tags (e.g., "bug, viewer, parser") |
title | string | Task title (required for create) |
aidex_tasks
List and filter tasks in the project backlog. Returns tasks grouped by status (active, backlog, done, cancelled) and sorted by priority. Use to get an overview of all open and completed work.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to project with .aidex directory |
priority | number | Filter by priority |
status | string | Filter by status (default: show all) |
tag | string | Filter by tag (matches any task containing this tag) |