Replies: 5 comments 2 replies
-
I've been using Repomix extensively for all aspects of Repomix's own development. I primarily use Claude (Web version), creating a dedicated Project with the Repomix output file for continuous consultation. When Claude hits usage limits, I switch to Gemini as a backup. Here's how I use it in my daily development:
Some tips that worked well for me:
From my experience with code generation capabilities: |
Beta Was this translation helpful? Give feedback.
-
I just learned about Repomix about an hour ago. I'm just learning code - (like this is day 4 or 5 or me learning code) so having language model AI tools available to ask questions to, has been absolutely invaluable. The fact that they can also review code, and write code... truly incredible. |
Beta Was this translation helpful? Give feedback.
-
I've been using it on-ff for about one week now, with Claude (I didn't know you could pass an output file to ChatGPT, I'll give that a try).
"repomix": "node repomix/repomix.cjs",
"repomix:all": "node repomix/repomix.cjs --all",
const dateFns = require('date-fns');
const exec = require('node:child_process').execSync;
const date = dateFns.format(new Date(), 'yyyy-MM-dd');
const repomix = `pnpm dlx repomix --config repomix/repomix.config.json --include "src" --output "repomix/output/${date}-output.md"`;
const repomixAll = `pnpm dlx repomix --config repomix/repomix.config.json --include "**/*" --output "repomix/output/${date}-output-all.md"`;
const command = process.argv.includes('--all') ? repomixAll : repomix;
exec(command, { stdio: 'inherit' });
{
"output": {
"filePath": "repomix/output/output.md",
"style": "markdown",
"removeComments": false,
"removeEmptyLines": false,
"topFilesLength": 5,
"showLineNumbers": false,
"instructionFilePath": "repomix/instructions.md"
},
"include": [],
"ignore": {
"useGitignore": true,
"useDefaultPatterns": true,
"customPatterns": [
"**/*.i18n.*",
"**/*.constants.*",
"**/*.config.*",
"**/*.env.*",
"**/*.secret.*",
"**/*.svg"
]
},
"security": {
"enableSecurityCheck": true
}
} I used it to implement a SolidJS data table in my Astro project with sorting, caching, table state, and filtering. It helped tons, although my current (non-all) output takes about 51% of memory, and Claude seems to have a mind of its own and seems to ignore my project structure these past 2–3 days, plus, it's not up-to-date on Astro so that's a hit & miss sometimes, and it takes them aaaages to respond on a new chat. Haven't tried tests yet, but I intend to do that. Do you have any tips for an approach there? Also, since you use it extensively with Claude as well, are you using ClaudeSync or just upload the file manually, like I do? I think I should set up an output for a particular set of files, so I can focus on a specific part of my app so the responses are more targeted, but I haven't looked into that yet, I suppose I can do that with the --include. |
Beta Was this translation helpful? Give feedback.
-
Can anyone give me a sense of what repo size you're finding success with? For reference, the repomix-output.txt file for the project I want to use is 1.2MB in size. I keep running into token limits for most models with the OpenAI API. |
Beta Was this translation helpful? Give feedback.
-
I've been using s/repopack/repomix extensively with Claude Projects. I've found it incredibly useful, many thanks @yamadashy, excellent work! (if you would like praise expressed more formally/for promotional materials, let me know). The main project 'Transmissions' I'm working on at the moment has LOC & repomix stats as below. I'm predominantly using node, occasional bits of browser stuff (also a toy language 'sheltopusik' I have in-progress, the less said about that the better - hence the instantly forgettable name). The repomix config for transmissions isn't far off defaults regarding code, except I do have several additions to the ignore section - like a My dev workflow for a New Feature (more or less) is figuring out a prompt describing my requirements for it, repomixing (good verb) and replacing the project's current knowledge, starting a new chat session in the project. This I follow for maybe a dozen interactions, 6 or so artifacts, then halt, however prematurely, and ask for a handover document (I have a bunch of commands in the system prompt, {
...
"scripts": {
"rp": "repomix -c repomix.config-small.json . && repomix -c repomix.config-large.json . ",
...
}
}
(I'm leaving it as legacy fyi @yamadashy, I plan to use chunks of repomix, pulled apart into small pieces, in my Transmissions pipeliney thing. I've not actually looked yet how things are exposed, but ideally I'd like to use it as a lib, so one node on my processing pipeline loads the config, another build the path filters, aother does the treewalking etc etc. Whatever, thanks again, keep up the good work! Pack Summary:
────────────────
Total Files: 264
Total Chars: 314527
Total Tokens: 73062
Output: ./repopack-transmissions-large.txt
Security: ✔ No suspicious files detected
transmissions$ cloc src
231 text files.
166 unique files.
65 files ignored.
github.com/AlDanial/cloc v 1.98 T=3.00 s (55.4 files/s, 2928.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 115 1035 1082 3971
Markdown 28 461 5 1113
HTML 2 17 0 763
JSON 14 0 0 292
Bourne Shell 1 8 9 9
Text 6 0 0 7
-------------------------------------------------------------------------------
SUM: 166 1521 1096 6155
------------------------------------------------------------------------------- |
Beta Was this translation helpful? Give feedback.
-
Hey everyone! We'd love to hear how you're using Repomix with AI tools.
Your experiences could inspire others and help improve Repomix!
Feel free to share:
Share in whatever format works for you - keep it casual!
Beta Was this translation helpful? Give feedback.
All reactions