-
-
Notifications
You must be signed in to change notification settings - Fork 350
docs: update README with non-interactive mode, new MCP tools, and agent tool list #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -255,12 +255,23 @@ The system automatically detects and processes files for all supported languages | |
|
|
||
| ### Step 2: Query the Codebase | ||
|
|
||
| **Interactive mode:** | ||
|
|
||
| Start the interactive RAG CLI: | ||
|
|
||
| ```bash | ||
| python -m codebase_rag.main start --repo-path /path/to/your/repo | ||
| ``` | ||
|
|
||
| **Non-interactive mode (single query):** | ||
|
|
||
| Run a single query and exit, with output sent to stdout (useful for scripting): | ||
|
|
||
| ```bash | ||
| python -m codebase_rag.main start --repo-path /path/to/your/repo \ | ||
| --ask-agent "What functions call UserService.create_user?" | ||
| ``` | ||
|
|
||
| ### Step 2.5: Real-Time Graph Updates (Optional) | ||
|
|
||
| For active development, you can keep your knowledge graph automatically synchronized with code changes using the realtime updater. This is particularly useful when you're actively modifying code and want the AI assistant to always work with the latest codebase structure. | ||
|
|
@@ -503,6 +514,10 @@ claude mcp add --transport stdio graph-code \ | |
| - **surgical_replace_code** - Precise code edits | ||
| - **read_file / write_file** - File operations | ||
| - **list_directory** - Browse project structure | ||
| - **shell_command** - Execute terminal commands | ||
| - **document_analyzer** - Analyze PDFs and documents | ||
| - **semantic_search** - Find functions by intent | ||
| - **get_function_source** - Retrieve function source by ID | ||
|
Comment on lines
+517
to
+520
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change adds several new tools to the MCP server's available tools list. However, in the provided Additionally, there seems to be a naming inconsistency. The agent tools for similar functionalities are named Please ensure the tool registration is part of this PR or that this documentation is merged after the feature is implemented and the names are confirmed. |
||
|
|
||
| ### Example Usage | ||
|
|
||
|
|
@@ -607,6 +622,9 @@ The agent has access to a suite of tools to understand and interact with the cod | |
| - **`create_new_file`**: Creates a new file with specified content. | ||
| - **`replace_code_surgically`**: Surgically replaces specific code blocks in files. Requires exact target code and replacement. Only modifies the specified block, leaving rest of file unchanged. True surgical patching. | ||
| - **`execute_shell_command`**: Executes a shell command in the project's environment. | ||
| - **`analyze_document`**: Analyzes PDFs and documents to answer questions about their content. | ||
| - **`semantic_search_functions`**: Finds functions by natural language intent using embeddings. | ||
| - **`get_function_source_by_id`**: Retrieves source code for a function by its node ID. | ||
|
|
||
| ### Intelligent and Safe File Editing | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation introduces the
--ask-agentflag for non-interactive mode. However, based on the providedcodebase_rag/main.pyfile, thestartcommand does not have this option defined. This makes the documentation inconsistent with the current state of the code in this branch. Please ensure the feature is included in this PR or that this documentation is merged only after the corresponding feature PR.