๐—ง๐—ต๐—ฒ ๐Ÿญ๐Ÿฌ-๐—Ÿ๐—ถ๐—ป๐—ฒ ๐—ฆ๐—ฒ๐—ฐ๐—ฟ๐—ฒ๐˜ ๐˜๐—ผ ๐—•๐—ฒ๐˜๐˜๐—ฒ๐—ฟ ๐—”๐—œ ๐—ฃ๐—ฒ๐—ฟ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐—ป๐—ฐ๐—ฒ

Stop writing long instruction files for your AI. Most users waste tokens by adding unnecessary details to their project files.

I tested how the length of a GEMINI.md file affects Gemini CLI performance. Here are the results.

I compared three versions:

The results show that 10 lines are just as effective as 100 lines.

The Data: โ€ข GEMINI_0: 33.3% accuracy | 66.8s latency โ€ข GEMINI_10: 100% accuracy | 16.1s latency โ€ข GEMINI_100: 100% accuracy | 20.2s latency

Why 10 lines win:

Rules for writing instructions:

Other ways to save tokens:

Summary of strategies:

Keep your instructions lean. Only write what the model does not already know.

Source: https://dev.to/jh5_pulse/rang-sheng-huo-chan-sheng-bian-hua-de-geminixiao-shi-yan-men-45ke

Optional learning community: https://t.me/GyaanSetuAi