yamadashy / repomix

📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, and Gemini.
MIT License
4.04k stars 181 forks source link

Share Your Experience with Repomix #170

Open BinkyTinky opened 4 days ago

BinkyTinky commented 4 days ago

Hi everyone! I’m new to coding and rely on Claude for a lot of guidance, so I find Repomix super helpful for providing project context. However, I only want the project structure—not the actual code—because including everything fills up my context window too quickly. Specifically, I need just the directory and file names under project/frontend/ and project/backend/ without going too deep. Is there a command to display this structure at a high level, showing just the folder and file names?

Thanks for the help!

yamadashy commented 1 day ago

@BinkyTinky Thanks for your feedback from the discussion!

We don't currently have a way to output only the directory structure, but how to effectively pack large projects is something we're actively thinking about for the next steps of Repomix. This is similar to the issue raised here: https://github.com/yamadashy/repomix/issues/164

Just to clarify, are you looking to exclude the contents of files within specific folders like project/frontend/ and project/backend/ while still including the folder and file names? Adding an option for finer control using glob patterns might be a good approach. For example:

{
  "output": {
    "rules": [
      { "pattern": "project/frontend/**/*", "outputContent": false }
    ]
  }
}

We're exploring possible solutions.