Skip to content

Conversation

@ayc
Copy link

@ayc ayc commented Nov 14, 2025

This PR introduces a system for Cline to diagnose and correct its own operational failures. It adds three new files that work together to create a structured process for identifying and resolving meta issues.

Core Components

  1. .clinerules/cognition-hazard-protocols.md: Defines low-level protocols to detect common failure patterns, such as repetitive loops or consecutive tool failures. When triggered, these protocols activate Diagnostic Mode.

  2. .clinerules/diagnostic-mode-persistence.md: A rule that enforces strict operational parameters while in Diagnostic Mode, ensuring the process stays focused on self-correction and is exited intentionally.

  3. workflows/diagnostic-mode.md: This new workflow guides the root cause analysis process. It is now invokable via the /diagnostic-mode.md slash command, providing a manual way for a user to initiate a collaborative diagnosis when Cline appears to be stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant