# How to: Show current context size

**URL:** <https://forum.cursor.com/t/how-to-show-current-context-size/46618>\
**Category:** Guides\
**Created:** [January 31, 2025, 4:07pm UTC](https://forum.cursor.com/t/how-to-show-current-context-size/46618 "2025-01-31T16:07:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![usrrname](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/usrrname/32/47901_2.png) [@usrrname](https://forum.cursor.com/u/usrrname)\
**Post date:** [April 26, 2025, 4:09am UTC](https://forum.cursor.com/t/how-to-show-current-context-size/46618/9 "2025-04-26T04:09:10Z")

</div>

Wow it sure gets defensive about how it figures out the context size…  
(Was using gemini-flash-2.5-preview)

tl,dr: `{context_size}` was working because this particular keyword seemed to be a read-only property that’s provided by Cursor.

It kinda-sorta is inconvenient that `{javascriptFunctions()}` were interpolated inside the quasi-XML/YAML format of the rule too – and this too was codegen-ed.

Example: [spike: adds rule to display info about context size, account info by usrrname · Pull Request #8 · usrrname/cursorrules · GitHub](https://github.com/usrrname/cursorrules/pull/8/files#diff-7141d97c647a9a989c83049bb8d0002a7c1a22da85aa7e2a6e6184219bce3e88)

Everything above with a grain of 🧂 since it’s questionable halulu.

 ![Screenshot 2025-04-26 at 12.01.11 AM](https://us1.discourse-cdn.com/cursor1/original/3X/e/d/edbed4f67aa5998aeb45601d9fcd96764ad261fc.png)

 ![Screenshot 2025-04-26 at 12.01.23 AM](https://us1.discourse-cdn.com/cursor1/original/3X/6/7/67b54b82eca6931314e864d7cadc61fa942a72f6.png)

 ![Screenshot 2025-04-26 at 12.01.34 AM](https://us1.discourse-cdn.com/cursor1/original/3X/9/6/969f363236d52cd99a72d5d28f6f653726f3a37a.png)

 ![Screenshot 2025-04-26 at 12.01.44 AM](https://us1.discourse-cdn.com/cursor1/original/3X/8/2/82d57b3a3e5ce1250e5f56a3fa7b7a9e9ff6a101.png)

 ![Screenshot 2025-04-26 at 12.01.56 AM](https://us1.discourse-cdn.com/cursor1/original/3X/9/2/928c9f0bcb20dd8f634b47b30bf106732afb5fab.png)

I think I hit the fourth wall…

---

_[View the full topic](https://forum.cursor.com/t/how-to-show-current-context-size/46618)._
