Review of "AI Meter" version 0.1.4 (1)

Details Page Preview

Shows your Claude Pro/Max usage (5-hour window and weekly limits) in the top bar, with a detail panel on click. It reuses the login of Claude Code on this machine, so no API key is needed: it reads the access token in ~/.claude/.credentials.json and sends it only to api.anthropic.com, to the usage endpoint behind Claude Code's /usage command. Nothing is written back and nothing is sent anywhere else. Not affiliated with Anthropic.

Extension Homepage
https://github.com/rodibozman/ai-meter

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) warning 3

Shexli found 3 issues that may need reviewer attention.

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:175
    this._extraItem = new PopupMenu.PopupBaseMenuItem({reactive: false, can_focus: false})
  • extension.js:178
    this._extraLabel = new St.Label({style_class: 'ai-meter-meter-pct'})
  • extension.js:169
    this._message = new PopupMenu.PopupBaseMenuItem({reactive: false, can_focus: false})
  • extension.js:170
    this._messageLabel = new St.Label({style_class: 'ai-meter-menu-message', x_expand: true})
  • extension.js:166
    this._metersSection = new PopupMenu.PopupMenuSection()
  • extension.js:161
    this._planLabel = new St.Label({style_class: 'ai-meter-menu-plan', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:187
    this._updatedLabel = new St.Label({style_class: 'ai-meter-footer-text', x_expand: true, y_align: Clutter.ActorAlign.CENTER})

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:175
    this._extraItem = new PopupMenu.PopupBaseMenuItem({reactive: false, can_focus: false})
  • extension.js:178
    this._extraLabel = new St.Label({style_class: 'ai-meter-meter-pct'})
  • extension.js:169
    this._message = new PopupMenu.PopupBaseMenuItem({reactive: false, can_focus: false})
  • extension.js:170
    this._messageLabel = new St.Label({style_class: 'ai-meter-menu-message', x_expand: true})
  • extension.js:166
    this._metersSection = new PopupMenu.PopupMenuSection()
  • extension.js:161
    this._planLabel = new St.Label({style_class: 'ai-meter-menu-plan', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:187
    this._updatedLabel = new St.Label({style_class: 'ai-meter-footer-text', x_expand: true, y_align: Clutter.ActorAlign.CENTER})

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • extension.js:151
    this.menu.connect('open-state-changed', (_m, open) => this._onMenuToggled(open))

All Versions

Version Status
0.1.8 (4) Unreviewed
0.1.7 (3) Rejected
0.1.6 (2) Active
0.1.4 (1) Rejected

Previous Reviews on this Version

JustPerfection waiting for author
Is this code generated by AI? If so, we have a rule for that: - [EGO Review Guidelines: AI](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#extensions-must-not-be-ai-generated) - [Extensions Best Practices Guidelines](https://gjs.guide/extensions/review-guidelines/best-practices.html#submissions-require-maintainership)
rodibozman auto- rejected
Auto-rejected because of new version 0.1.6 (2) was uploaded
rodibozman posted a review
Hey, thanks for taking time to answer me, I appreciate that. Yes the code was written and incrementally added with AI instance and carefully reviewed by myself, there's even a guideline for the agents on the repository. Don't hesitate to ask me any questions about the code itself. My coworkers and myself on currently using this extension, so I will definitely maintain it. I've pushed 0.1.6 which includes a couple of fixes and it cleans up the code with the best practices guide you gave me.
rodibozman posted a review
Hey, thanks for taking time to answer me, I appreciate that. Yes the code was written and incrementally added with AI instance and carefully reviewed by myself, there's even a guideline for the agents on the repository. Don't hesitate to ask me any questions about the code itself. My coworkers and myself on currently using this extension, so I will definitely maintain it. I've pushed 0.1.6 which includes a couple of fixes and it cleans up the code with the best practices guide you gave me.