[FEATURE] Add an optional troubleshooting reference for codebase context and multi-step workflow failures
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code is very effective once the core agent workflow is running, but in longer or more complex codebase tasks, users can still run into recurring downstream failure patterns that are difficult to classify consistently.
Examples include:
- Codebase context drift across long sessions
- Stale or conflicting context after several chained edits
- Semantically related but operationally wrong files or snippets being used
- Answer inconsistency after multi-step tool usage
- Instruction path confusion during edit, explain, and git-related workflows
In practice, these are not always feature bugs in Claude Code itself. They are often workflow-level reliability problems that appear after the agent is already functioning, but the output becomes less trustworthy over time.
Right now, users often debug these situations in an ad hoc way. They retry prompts, restart sessions, or manually narrow the task, but there is no compact troubleshooting reference that helps classify the failure mode before changing the workflow.
Proposed Solution
I would like Claude Code to include an optional documentation-level troubleshooting reference for users dealing with context-heavy and multi-step workflow failures.
A practical way to do this would be to add a small note in a docs, FAQ, or troubleshooting section that points users to a structured external taxonomy for diagnosing downstream workflow failures.
One candidate resource is the WFGY RAG 16 Problem Map:
https://github.com/onestardao/WFGY/blob/main/ProblemMap/README.md
This is a framework-agnostic troubleshooting checklist that helps classify common failure modes such as context drift, stale context, retrieval mismatch, answer inconsistency, and reasoning breakdowns.
I am not suggesting this as a Claude Code feature change or a core architectural standard.
I am suggesting it as an optional companion reference that users can consult when Claude Code is operational, but workflow output becomes unreliable.
A simple documentation example could look like this:
If you are seeing inconsistent results across long sessions, conflicting edits, or context drift in multi-step workflows, consider using a structured troubleshooting map such as the WFGY RAG 16 Problem taxonomy to classify the failure before changing prompts, settings, or task scope.
This would not require any code changes.
It would only provide a more structured path for users who need debugging guidance.
Alternative Solutions
I have considered a few alternatives:
- Users continue troubleshooting manually through trial and error
This works, but it is slow and inconsistent, especially for longer workflows.
- Anthropic could eventually build a fully Claude Code-specific troubleshooting taxonomy
That could work, but it would increase documentation scope and maintenance effort.
- Users rely only on scattered GitHub issues and discussions
This helps in isolated cases, but it does not provide a compact shared vocabulary for recurring workflow-level failure patterns.
Because many of these failure modes are not unique to one coding agent, an optional external structured reference may be a lower-overhead way to improve user troubleshooting without expanding core product complexity.
Priority
Medium - Would be very helpful
Feature Category
Documentation
Use Case Example
Example scenario:
- I am using Claude Code for a longer codebase task that touches multiple files and requires several edit, explain, and git-related steps.
- The agent works at first, but after several iterations it starts using stale context and produces edits that are locally reasonable but globally inconsistent.
- I am not sure whether the issue is prompt wording, context drift, the wrong file being prioritized, or a broader multi-step reasoning breakdown.
- With a structured troubleshooting reference, I could classify the failure pattern first, then adjust task scope, restart strategy, or workflow structure more intentionally.
- This would reduce repeated retries and make it easier to debug longer agent sessions in a more systematic way.
Additional Context
Reference:
https://github.com/onestardao/WFGY/blob/main/ProblemMap/README.md
This suggestion is documentation-oriented only.
It does not require any API, model, CLI, or runtime changes.
The WFGY RAG 16 Problem Map has already been referenced or integrated by several public RAG and LLM ecosystem projects, including:
- RAGFlow
- LlamaIndex
- ToolUniverse (Harvard MIMS Lab)
- Rankify
- Multimodal RAG Survey (QCRI LLM Lab)
I am sharing it here only as a possible optional troubleshooting reference for users who need a more structured way to reason about workflow failures after the agent is already running.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗