Remix.run Logo
alvis 4 days ago

Context window after certain size doesn’t bring in much benefit but higher bill. If it still keeps forgetting instructions it would be just much easier to be ended up with long messages with higher context consumption and hence the bill

I’d rather having an option to limit the context size

EcommerceFlow 4 days ago | parent [-]

It does if you're working with bigger codebases. I've found copy/pasting my entire codebase + adding a <task> works significantly better than cursor.

spiderice 3 days ago | parent [-]

How does one even copy their entire codebase? Are you saying you attach all the files? Or you use some script to copy all the text to your clipboard? Or something else?

EcommerceFlow 3 days ago | parent | next [-]

I created a script that outputs the entire codebase to a text file (also allows me to exclude files/folders/node_modules), separating and labeling each file in the program folder.

I then structure my prompts around like so:

<project_code> ``` ``` </project_code>

<heroku_errors> " " </heroku_errors>

<task> " " </task>

I've been using this with Google Ai studio and it's worked phenomenally. 1 million tokens is A LOT of code, so I'd imagine this would work for lots n lots of project type programs.

swader999 3 days ago | parent | prev [-]

Repomix, there's a cli and an MCP.