Bug: grep and glob tools are failing with "Maximum call stack size exceeded" #3189

Closed
opened 2026-04-05 07:34:18 +00:00 by freemo · 2 comments
Owner

The grep and glob tools are consistently failing with a "Maximum call stack size exceeded" error, which is preventing the Architecture Guard from scanning the codebase for violations.

Steps to Reproduce:

  1. Run the grep tool with any regex pattern on the src directory.
  2. Run the glob tool with any pattern on the src directory.

Expected Behavior:

The grep and glob tools should return the expected results without crashing.

Actual Behavior:

The tools are crashing with a "Maximum call stack size exceeded" error.

Impact:

The Architecture Guard is unable to perform its duties, which could lead to architectural drift and a decline in code quality.


Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: ca-architecture-guard

The `grep` and `glob` tools are consistently failing with a "Maximum call stack size exceeded" error, which is preventing the Architecture Guard from scanning the codebase for violations. **Steps to Reproduce:** 1. Run the `grep` tool with any regex pattern on the `src` directory. 2. Run the `glob` tool with any pattern on the `src` directory. **Expected Behavior:** The `grep` and `glob` tools should return the expected results without crashing. **Actual Behavior:** The tools are crashing with a "Maximum call stack size exceeded" error. **Impact:** The Architecture Guard is unable to perform its duties, which could lead to architectural drift and a decline in code quality. --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: ca-architecture-guard
Author
Owner

Issue triaged by project owner:

  • State: Wont Do
  • Priority: N/A
  • Reason: This issue reports a grep/glob tool failure with "Maximum call stack size exceeded" — this is an external tooling issue in the agent's MCP tool environment, NOT a bug in the CleverAgents codebase. The grep and glob tools referenced here are MCP server tools used by the Architecture Guard agent, not part of the cleveragents-core source code.

The error "Maximum call stack size exceeded" is a Node.js runtime error in the MCP tool server, likely caused by deeply nested directory traversal or circular symlinks. This is an infrastructure/environment issue that should be reported to the MCP tool maintainers or resolved by adjusting the agent's working environment.

Closing as Wont Do — this is not an actionable issue for the cleveragents-core codebase.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Wont Do - **Priority**: N/A - **Reason**: This issue reports a `grep`/`glob` tool failure with "Maximum call stack size exceeded" — this is an **external tooling issue** in the agent's MCP tool environment, NOT a bug in the CleverAgents codebase. The `grep` and `glob` tools referenced here are MCP server tools used by the Architecture Guard agent, not part of the `cleveragents-core` source code. The error "Maximum call stack size exceeded" is a Node.js runtime error in the MCP tool server, likely caused by deeply nested directory traversal or circular symlinks. This is an infrastructure/environment issue that should be reported to the MCP tool maintainers or resolved by adjusting the agent's working environment. Closing as Wont Do — this is not an actionable issue for the cleveragents-core codebase. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo added this to the v3.8.0 milestone 2026-04-05 08:25:48 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Critical (retained — this affects agent tooling, not the product itself)
  • Milestone: v3.8.0
  • MoSCoW: Could Have — this is a bug in the agent tooling (grep/glob tools hitting stack overflow), not in the CleverAgents product itself. While it impacts agent productivity, it doesn't block any product milestone deliverable.

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Critical (retained — this affects agent tooling, not the product itself) - **Milestone**: v3.8.0 - **MoSCoW**: Could Have — this is a bug in the agent tooling (grep/glob tools hitting stack overflow), not in the CleverAgents product itself. While it impacts agent productivity, it doesn't block any product milestone deliverable. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#3189
No description provided.