General Introduction
Cline Recursive Chain-of-Thought System (CRCT for short) is an open source framework designed for managing large code projects in VS Code. The current version is v7.0 , it through recursive methods and file systems , to maintain the continuity of the project state , to avoid problems caused by the loss of context AI assistant . CRCT is the core of efficient dependency tracking and task decomposition , the size of the compressed context up to 90% , suitable for dealing with large and complex code base . The system is divided into three phases: "Setup/Maintenance", "Policy" and "Execution"..clinerules
Documentation controls progress, ensuring work is transparent and structured. Developers can access source code via GitHub and participate in community optimization.
Function List
- Recursive task decomposition: Split complex tasks into small chunks and store them in files and directories to isolate the management context.
- Persistent State Management: Save the state of the project with the file system to prevent loss of context at each session reset.
- Efficient dependency tracking: Tracks relationships between files, modules and documents through a hierarchical structure, compressing data up to 90%.
- Minimize context loading: Load only the necessary data and scale on demand for very large projects.
- Staged workflowsStructured project progression with support for "Setup/Maintenance", "Policy" and "Execution" phases.
- Transparent reasoning: Provide step-by-step reasoning and reflection to ensure that AI operations are clearly visible.
Using Help
Installation process
CRCT needs to be used with the Cline extension in VS Code. Here are the detailed installation steps:
- Preparing the environment
- Ensure that VS Code and the Cline extension are installed.
- Install Python 3.8+ and Git for running scripts and cloning repositories.
- clone warehouse
- Open a terminal and type:
git clone https://github.com/RPG-fan/Cline-Recursive-Chain-of-Thought-System-CRCT-.git
- Go to the project catalog:
cd Cline-Recursive-Chain-of-Thought-System-CRCT-
- Open a terminal and type:
- Installation of dependencies
- Run the following command to install the Python library:
pip install -r requirements.txt
- Run the following command to install the Python library:
- Configuring Cline Extensions
- Open the project folder in VS Code.
- Open the Cline Extension Settings and find the "System Tips" field.
- commander-in-chief (military)
cline_docs/prompts/core_prompt(put this in Custom Instructions).md
of the content is copied into the prompted input box.
- activation system
- In the Cline input box, enter
Start.
And run. - The system will be based on the
.clinerules
File initialization, automatic generation of missing files and bootstrap setup. - probe
cline_docs/
Catalog to ensure thatprojectbrief.md
,dependency_tracker.md
etc. core documents have been created.
- In the Cline input box, enter
How to use the main features
Project structure
cline/ │ .clinerules # Controls phase and state │ README.md # This file │ requirements.txt # Python dependencies │ ├──cline_docs/ # Operational memory │ │ activeContext.md # Current state and priorities │ │ changelog.md # Logs significant changes │ │ productContext.md # Project purpose and user needs │ │ progress.md # Tracks progress │ │ projectbrief.md # Mission and objectives │ │ dependency_tracker.md # Module-level dependencies │ │ ... # Additional templates │ └───prompts/ # System prompts and plugins │ core_prompt.md # Core system instructions │ setup_maintenance_plugin.md │ strategy_plugin.md │ execution_plugin.md │ strategy_plugin.md │ execution_plugin.md ├───cline_utils/ # Utility scripts │ └───dependency_system/ │ dependency_processor.py # Dependency management script │ Dependency management script ├───docs/ # Project documentation │ │ doc_tracker.md # Documentation dependencies │ │ doc_tracker.md ├───src/ # Source code root │ ├───src/ # Source code root └───strategy_tasks/ # Strategic plans
CRCT helps developers manage large code projects efficiently. Below is the detailed operation flow of the core functions:
1. Recursive task decomposition
- procedure::
- exist
cline_docs/
Create subfolders undertask_feature/
, depositing specific tasks. - Creating in a folder
task.md
, write down the objectives and steps of the task. - The system automatically recognizes the catalog structure and breaks down tasks into independent units.
- exist
- Usage Scenarios: Reduce confusion when dealing with complex projects by breaking large tasks into smaller chunks.
- caveat: Keep folder naming clear and easy to track.
2. Persistent State Management
- procedure::
- The system is passed through a file (e.g.
activeContext.md
,progress.md
) save state. - At the beginning of each session, check the
.clinerules
file that loads the last context.
- The system is passed through a file (e.g.
- Usage Scenarios: In long-term projects, ensure that the state is continuous and no information is lost due to session resets.
- draw attention to sth.: Regular backups
cline_docs/
To avoid data loss.
3. Efficient dependency tracking
- procedure::
- show (a ticket)
cline_docs/dependency_tracker.md
, record module dependencies such as:- The login module depends on auth.py. - The payment module depends on api_gateway/
- (of a computer) run
cline_utils/dependency_system/dependency_processor.py
::python cline_utils/dependency_system/dependency_processor.py
- Check dependency diagrams to ensure relationships are accurate.
- show (a ticket)
- Usage Scenarios: Track relationships between files and modules in large codebases.
- Advanced Usage: Reduce the amount of data by utilizing RLE compression for an efficiency gain of 90%.
4. Minimize context loading
- procedure::
- By default, the system only loads
activeContext.md
The key data in the - When more information is needed, the
dependency_tracker.md
Marking modules, system expansion on demand.
- By default, the system only loads
- Usage Scenarios: Handle large projects with thousands of files and reduce resource usage.
- caveat: Update dependency tracking on a regular basis to keep the data accurate.
5. Staged workflows
- procedure::
- ferret out
.clinerules
The current phase (e.g. "Set-up/Maintenance") is confirmed. - Update the document according to the phase:
- Setting stage: refinement
projectbrief.md
The - Strategy phase: editing
strategy_tasks/
under the program. - Implementation phase: update
progress.md
Record progress.
- Setting stage: refinement
- importation
Review the current state and suggest next steps.
, get advice from Cline.
- ferret out
- Usage Scenarios: Ensure that team or individual projects are moving forward in a step-by-step manner.
- draw attention to sth.: Timely adjustments when switching phases
.clinerules
The
6. Transparent reasoning
- procedure::
- Enter specific tasks in Cline, such as
Optimize dependency tracking.
The - The system returns the step-by-step reasoning process displayed in the
progress.md
Center.
- Enter specific tasks in Cline, such as
- Usage Scenarios: Understand the logic of AI operations and reduce misunderstandings.
- caveat: Check the results of the reasoning to ensure that it meets the needs of the program.
Existing project access
- procedure::
- Putting existing code into
src/
The document is placed in thedocs/
The - Input at Cline:
Perform initial setup and populate dependency trackers.
- The system analyzes the code, initializes the tracker and guides the setup.
- Putting existing code into
- Usage Scenarios: Apply CRCT to existing programs to improve management efficiency.
caveat
- adjust components during testing: If there is a problem with the system, enter
Review the current state and suggest next steps.
Get solutions. - Efficiency Optimization: Dependency tracking compression rate up to 90% for very large projects.
- Community involvement: Participate in CRCT improvements by submitting feedback via GitHub.
With these steps, you can easily use CRCT to manage complex code projects and improve efficiency and clarity.