Execute Composite Multi Step Codebase Workflow
execute_codebase_workflowRuns a combined codebase audit and context pipeline when action='auto', or routes to specific analyses like security, dependencies, impact, and search for targeted workflows.
Instructions
Compatibility router for combined reports, distinguishing from 'build_project_context' and 'audit_code_quality' by combining analyses when action='auto'; for individual tasks use the dedicated tools directly.
Parameters:
action: Workflow operation: 'auto' runs comprehensive all-in-one audit & context pipeline; 'context' builds AST context tree; 'audit' checks code quality & smells; 'security' runs Zero-Leak secret scan; 'blueprint' generates Mermaid architecture; 'dependencies' maps import topology; 'impact' evaluates blast radius of modified symbols; 'search' performs hybrid BM25 code search; 'prune' strips in-memory AST bodies; 'heal' runs AST self-healing; 'memory' manages episodic memory; 'swarm' coordinates multi-agent consensus.target: Target repository root path, file path, git diff text buffer, or raw source code snippet to process.query: Free-text search term, focus symbol name, or goal prompt depending on selected action.options: Optional JSON string specifying extra configuration parameters (e.g. {"reduction_mode": "ultra", "max_tokens": 32000, "depth": 4}).
Behavior:
Mutability: Depends on action and options. Security may install hooks; rules, memory, sync, healing, merge, and generated tests can modify files.
Idempotency: Not guaranteed for state-changing operations.
Privacy & Network: Most analysis is local, but blueprint with use_ai can contact a configured provider and transmit context.
Performance & Resources: Runtime and memory depend on workspace size and selected operation.
Auth: Zero authentication or cloud credentials required.
Return Structure: Emits comprehensive executive Markdown report tailored to the requested action or full autonomous pipeline.
Error Handling: Gracefully reports clean diagnostic notices for missing paths, unparseable files, or invalid JSON options without crashing.
Usage Guidelines:
When to use: Use action='auto' for a combined report or retain this router for compatibility with existing clients.
When NOT to use: Do not use when an isolated single-purpose operation is sufficient, such as generating an AST context tree (use 'build_project_context' instead), auditing code smells (use 'audit_code_quality' instead), scanning secrets (use 'verify_security_guard' instead), or pruning an in-memory snippet (use 'prune_code_snippet' instead).
Returns: Comprehensive Markdown report tailored to the requested action or full autonomous pipeline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "execute_codebase_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search query, focus symbol name, or task goal prompt. | |
| action | No | Workflow operation: 'auto' (comprehensive all-in-one pipeline), 'context', 'audit', 'security', 'blueprint', 'dependencies', 'impact', 'search', 'prune', 'heal', 'memory', 'swarm', 'design'. | auto |
| target | No | Target repository path, file path, diff string, or code snippet (default: '.'). | . |
| options | No | Optional JSON string or dictionary of additional configuration parameters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |