Skip to content

It junk download the all the repo details into the working directory keep on specifc to ai agent seperately #15

@benzntech

Description

@benzntech

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 .roo rules directory from your rules_template repository into my project.

Goal: Download the contents of the .roo directory from https://github.com/Bhartendu-Kumar/rules_template/tree/main/.roo into the local .roo folder of my project.

Steps Taken & Observations:

  1. Initial Attempt (svn):

    • Command: svn checkout https://github.com/Bhartendu-Kumar/rules_template/trunk/.roo .roo
    • Result: Failed (Exit code 127, svn likely not installed).
  2. 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).
  3. Initial File Check (list_files .roo -r):

    • Showed the expected structure, including subdirectories like rules/, rules-code/, and files like system-prompt-chat, rules/memory.mdc, rules-code/implement.mdc, etc.
  4. Reading .md files:

    • Successfully read .roo/rules/rules.md and .roo/rules-code/rules.md. Both were empty.
  5. Reading .mdc files:

    • Attempted to read .roo/rules/directory-structure.mdc and .roo/rules/memory.mdc.
    • Result: Failed repeatedly with "File not found" errors, even though list_files confirmed their existence.
  6. Reading file in root .roo:

    • Successfully read .roo/system-prompt-chat.
  7. Inconsistent list_files:

    • A later list_files .roo/rules-code reported the directory as empty, contradicting the initial listing.
  8. Final Structure Check (list_files .roo -r):

    • Revealed that the entire rules_template repository content was now inside .roo/rules_template/, not the intended structure directly within .roo. The specific .mdc rule files were not found in their expected locations within this new structure.
  9. 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 .mdc files using standard tools, despite list_files showing them initially.
  • Inconsistent results from list_files over 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 .roo directory and its contents from the repository, or investigate if there might be an issue with accessing specific file types (.mdc) after cloning/copying?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions