-
Notifications
You must be signed in to change notification settings - Fork 137
Description
It junk download the all the repo details into the working directory keep on specifc to ai agent seperately
Hi @Bhartendu-Kumar ,
I encountered several issues while trying to download and use the
.roorules directory from yourrules_templaterepository into my project.Goal: Download the contents of the
.roodirectory fromhttps://github.com/Bhartendu-Kumar/rules_template/tree/main/.roointo the local.roofolder of my project.Steps Taken & Observations:
Initial Attempt (svn):
- Command:
svn checkout https://github.com/Bhartendu-Kumar/rules_template/trunk/.roo .roo- Result: Failed (Exit code 127,
svnlikely not installed).Second Attempt (git clone & cp):
- Command:
mkdir temp_rules_repo && git clone --depth 1 https://github.com/Bhartendu-Kumar/rules_template.git temp_rules_repo && cp -r temp_rules_repo/.roo . && rm -rf temp_rules_repo- Result: Command completed successfully (Exit code 0).
Initial File Check (
list_files .roo -r):
- Showed the expected structure, including subdirectories like
rules/,rules-code/, and files likesystem-prompt-chat,rules/memory.mdc,rules-code/implement.mdc, etc.Reading
.mdfiles:
- Successfully read
.roo/rules/rules.mdand.roo/rules-code/rules.md. Both were empty.Reading
.mdcfiles:
- Attempted to read
.roo/rules/directory-structure.mdcand.roo/rules/memory.mdc.- Result: Failed repeatedly with "File not found" errors, even though
list_filesconfirmed their existence.Reading file in root
.roo:
- Successfully read
.roo/system-prompt-chat.Inconsistent
list_files:
- A later
list_files .roo/rules-codereported the directory as empty, contradicting the initial listing.Final Structure Check (
list_files .roo -r):
- Revealed that the entire
rules_templaterepository content was now inside.roo/rules_template/, not the intended structure directly within.roo. The specific.mdcrule files were not found in their expected locations within this new structure.Correction Attempt (interrupted):
- Command:
rm -rf .roo/* && mkdir temp_rules_repo && git clone --depth 1 https://github.com/Bhartendu-Kumar/rules_template.git temp_rules_repo && cp -r temp_rules_repo/.roo/* .roo/ && rm -rf temp_rules_repo- This command was initiated to try and fix the structure but was interrupted.
Environment:
- OS: Linux 6.1
- Tools:
git,cp,rm,mkdir(within a VS Code environment)Problem Summary:
- Inability to read
.mdcfiles using standard tools, despitelist_filesshowing them initially.- Inconsistent results from
list_filesover time.- The
cp -r temp_rules_repo/.roo .command resulted in an unexpected nested structure (.roo/rules_template/.roo/...) instead of copying the contents directly into.roo. (Correction attempt was interrupted).Could you please advise on the correct method to reliably download only the
.roodirectory and its contents from the repository, or investigate if there might be an issue with accessing specific file types (.mdc) after cloning/copying?Thanks!