aidex

v1.8.0
io.github.CSCSoftware/aidex Checked 3 days ago Published 10 months ago

Persistent 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.

ParameterTypeDescription
path *stringAbsolute path to the project directory to index
excludearrayAdditional glob patterns to exclude (e.g., ["**/test/**"])
namestringOptional 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory
term *stringThe term to search for
file_filterstringGlob pattern to filter files (e.g., "src/commands/**")
limitnumberMaximum number of results (default: 100)
modestringSearch mode: exact match, contains, or starts_with (default: exact)
modified_beforestringOnly include lines modified before this time. Same format as modified_since
modified_sincestringOnly include lines modified after this time. Supports: "2h" (hours), "30m" (minutes), "1d" (days), "1w" (weeks), or ISO date string
type_filterarrayFilter by line type: code, comment, method, struct, property

aidex_status

Get AiDex server status and statistics for an indexed project

ParameterTypeDescription
pathstringPath 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.

ParameterTypeDescription
file *stringRelative path to the file within the project (e.g., "src/Core/Engine.cs")
path *stringPath 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory
filesarrayExplicit list of relative file paths (alternative to pattern)
patternstringGlob 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.

ParameterTypeDescription
file *stringRelative path to the file to update (e.g., "src/Core/Engine.cs")
path *stringPath to project with .aidex directory

aidex_remove

Remove a file from the AiDex index. Use when a file has been deleted from the project.

ParameterTypeDescription
file *stringRelative path to the file to remove (e.g., "src/OldFile.cs")
path *stringPath 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory

aidex_tree

Get the indexed file tree. Optionally filter by subdirectory, limit depth, or include statistics per file.

ParameterTypeDescription
path *stringPath to project with .aidex directory
depthnumberMaximum depth to traverse (default: unlimited)
include_statsbooleanInclude item/method/type counts per file
subpathstringSubdirectory 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.

ParameterTypeDescription
content *stringContent to add to the section
path *stringPath to project with .aidex directory
section *stringSection to update
replacebooleanReplace existing section content (default: append)

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.

ParameterTypeDescription
path *stringRoot path to scan for .aidex directories
max_depthnumberMaximum 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory
modified_sincestringOnly files indexed after this time. Supports: "2h", "30m", "1d", "1w", or ISO date. Use to find files changed this session.
patternstringGlob pattern to filter files (e.g., "src/**/*.ts")
typestringFilter 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory
appendbooleanIf true, appends to existing note instead of replacing (default: false)
clearbooleanIf true, clears the note (default: false)
notestringNote 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.

ParameterTypeDescription
path *stringPath 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory
actionstringAction 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.

ParameterTypeDescription
action *stringAction to perform on the task
path *stringPath to project with .aidex directory
descriptionstringTask description (optional details)
idnumberTask ID (required for read/update/delete/log)
notestringLog note text (required for log action)
prioritynumberPriority: 1=high, 2=medium (default), 3=low
sort_ordernumberSort order within same priority (lower = first, default: 0)
sourcestringWhere the task came from (freetext, e.g., "code review of parser.ts:142")
statusstringTask status (default: backlog)
tagsstringComma-separated tags (e.g., "bug, viewer, parser")
titlestringTask 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.

ParameterTypeDescription
path *stringPath to project with .aidex directory
prioritynumberFilter by priority
statusstringFilter by status (default: show all)
tagstringFilter by tag (matches any task containing this tag)