You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading about Caveman and looking at some videos of it reminded me of a thought I had months ago. When an agent writes code, it writes it with indentation. Indentation is just space but it counts against tokens used. At that time I asked the agent (Gemini I believe) if it could write code without the indentation, thus saving tokens. At that time it wasn't possible but now, with Rules and Skills and whatnot it is possible.
Let the agent write any line of code (when creating a new file) starting on column 0 and let the IDE take care of the indentation.
I'm mainly creating in Dart/Flutter and I let the agent run 'dart format' on the created files and all is well.
It might be a nice addition to add to Caveman, bringing down the number of tokens being used even more.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Julius,
Reading about Caveman and looking at some videos of it reminded me of a thought I had months ago. When an agent writes code, it writes it with indentation. Indentation is just space but it counts against tokens used. At that time I asked the agent (Gemini I believe) if it could write code without the indentation, thus saving tokens. At that time it wasn't possible but now, with Rules and Skills and whatnot it is possible.
Let the agent write any line of code (when creating a new file) starting on column 0 and let the IDE take care of the indentation.
I'm mainly creating in Dart/Flutter and I let the agent run 'dart format' on the created files and all is well.
It might be a nice addition to add to Caveman, bringing down the number of tokens being used even more.
Met vriendelijke groet,
Hubèrt
Beta Was this translation helpful? Give feedback.
All reactions