All-in-one codebase browser tool for file management, editing, searching, backup operations, and command execution
Single monolithic tool 'codebase_browser' with severe structural and documentation issues. Tool name lacks verb prefix (naming anti-pattern). Description is extremely long (2000+ chars) and buried in semi-structured text rather than LLM-optimized documentation. Parameter schema present but incomplete: 'options' is a generic object with insufficient sub-parameter descriptions. No documented output schema. Error handling absent. The tool conflates 16 distinct operations (read, write, delete, move, copy, list, mkdir, rmdir, edit, search, backup_create, backup_list, backup_restore, browse_backup, read_recent_commits, run_command) into a single parameter value, violating the single-responsibility principle. This design forces the LLM to guess which parameters apply to each operation and makes error recovery impossible.
All-in-one codebase browser tool for file management, editing, searching, and more. Parameters: - operation: (Required) Operation to perform, one of the following groups: 1. FILE OPERATIONS: - "read": Read file content (requires path) - "write": Write content to a file (requires path, options.content, and message) - "delete": Delete a file (requires path and message) - "move": Move a file or directory (requires path, options.destination, and message) - "copy": Copy a file or directory (requires path, options.destination, and message) - "list": List directory contents (requires path) - "mkdir": Create a directory (requires path and message) - "rmdir": Remove a directory (requires path and message) 2. EDIT OPERATIONS: - "edit": Edit file content with targeted find/replace (requires path and message) 3. SEARCH OPERATIONS: - "search": Search for text across all files (requires options.search_term) 4. BACKUP OPERATIONS: - "backup_create": Create a backup of the codebase - "backup_list": List available backups - "backup_restore": Restore from a backup (requires options.name) - "browse_backup": Browse backup contents read-only (requires options.name) 5. HISTORY OPERATIONS: - "read_recent_commits": Read recent commit history 6. COMMAND OPERATIONS: - "run_command": Execute shell commands
Tool name lacks action verb prefix. 'codebase_browser' is a noun phrase, not a verb-starting action name. Should be 'browse_codebase' or split into 'read_file', 'write_file', 'search_codebase', 'list_directory', 'edit_file', etc.
Single tool with 16 sub-operations violates single-responsibility principle. Tool combines FILE OPERATIONS (read, write, delete, move, copy, list, mkdir, rmdir), EDIT OPERATIONS (edit), SEARCH OPERATIONS (search), BACKUP OPERATIONS (4 variants), HISTORY OPERATIONS (read_recent_commits), and COMMAND OPERATIONS (run_command). LLM must reason about which params apply to each operation_value, causing confusion and error.
Description is 2000+ characters, far exceeding the 10 - 1024 character baseline (p90=392). Buried in semi-structured text listing operations. LLM cannot extract key intent from such verbose, wall-of-text documentation. Should be a concise 1-2 sentence summary with structured parameter docs separated.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 31 | 2026-07-28+ | v2 |
Parameter schema for 'options' is a bare object type with no sub-parameter schema validation. For write: needs 'content' (string); for move/copy: needs 'destination' (string); for search: needs 'search_term' (string); for read: needs 'start_line'/'end_line' (integer). No JSON Schema constraints, type validation, or bounds checking visible.
No documented output schema. What fields does each operation return? Does read return 'content' (string)? Does list return an array with 'name', 'type', 'size'? Does search return matches with 'filepath', 'line_number', 'context'? Without output schema, LLMs cannot plan downstream operations or extract the right data.
No error handling guidance. Code catches exceptions and returns generic error objects, but provides no recovery path. If 'file not found', should LLM retry? Call search_codebase? List directory? If 'permission denied', should user check permissions? If 'command failed', what does the stderr/stdout contain and how should the LLM interpret it?
run_command operation executes arbitrary shell commands without documented limits, timeout, or safety constraints. No mention of: max command length, execution timeout, allowlisted commands, or stderr/stdout size limits. Risk of agent invoking destructive commands (rm -rf, etc.) without confirmation.
Destructive operations (delete, move, rmdir, write, run_command) lack confirmation or dry-run mechanism. Agent could permanently delete code or overwrite critical files. No pattern for 'confirm_before_execute' or 'dry_run' mode visible in schema.
Parameter descriptions are minimal or missing context. 'path' says 'relative to codebase root' but doesn't explain: Can it be a symlink? What happens if it escapes codebase_root via ../? Does it apply to all 16 operations identically? 'message' says 'required for write/edit/delete/move/copy/mkdir/rmdir/run_command' but is vague, what should message contain?
No idempotency guarantees. Tool performs destructive operations (delete, write) but code does not guarantee idempotent retries. If delete fails mid-operation and LLM retries, does the second call succeed (no-op) or fail with 'file not found'? Agents cannot safely retry without explicit idempotency documentation.
Tool does not return IDs or references useful for chaining. If agent edits a file, response should include file_path, operation_type, success/failure for downstream logging. If backup_create succeeds, response should include backup_id/backup_name so agent can immediately call backup_restore or browse_backup without discovery.