Skip to content

logesh4v/Kironomics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ† Kironomics

Turn your Kiro grind into glory.

A gamified leaderboard for Kiro IDE users โ€” track your prompts, tool calls, credits, and session time. Climb the ranks. Earn badges. Roast your friends.

Made for Kiro Knowledge Base Power License


๐ŸŽฏ What is this?

You and your team write code with Kiro. You ship features. You crush bugs. But nobody knows who's actually pulling their weight in the AI revolution.

Kironomics fixes that.

It's a private leaderboard that quietly tracks how much you actually use Kiro โ€” the prompts you fire off, the tools the AI calls, the credits you burn through, the sessions that go past midnight. Then it ranks everyone, hands out badges, and shows who's the real Session Immortal of the team.

Think Strava for AI coding. Or GitHub contributions, but spicier.


๐ŸŽฎ Why you'll love it

๐Ÿฅ‡ Compete with friends Daily, weekly, all-time leaderboards
๐Ÿ… Earn 7 badges First Session, Century Club, Marathon Runner, and more
๐Ÿ‘‘ Unlock 7 titles Climb from "Kiro Novice" ๐ŸŒฑ to "Session Immortal" ๐Ÿ†
๐Ÿ”ฅ Streak tracking GitHub-style heatmap of your last 365 days
๐Ÿ’ณ Real credit tracking See your Kiro plan usage live (Free/Pro/Pro+/Power)
๐Ÿ“Š Burn rate analytics "You'll run out of credits in 9 days at this pace"
๐Ÿ›ก๏ธ Anti-cheat verified Reads your actual AWS-synced credit data
๐Ÿคซ Zero overhead Everything batches at session end

โšก Quick Start (2 minutes)

Step 1 โ€” Install the Power

In Kiro, open the Powers panel (left sidebar) and click + Add Custom Power.

Option A โ€” From GitHub (recommended):

https://github.com/logesh4v/Kironomics

Option B โ€” From local folder: Point to the path of this repo on your machine.

Step 2 โ€” Get your API key

Open the Kironomics dashboard โ†’ Settings โ†’ click Save Changes โ†’ copy the API key shown.

Step 3 โ€” Activate the power

In Kiro chat, just say:

"Set up Kironomics"

Kiro will read POWER.md, ask you for your API key + backend URL, and create the 4 tracking files in your workspace automatically.

Step 4 โ€” Use Kiro normally

Tracking is silent and passive. When the agent stops, one batched request goes to the leaderboard.

Step 5 โ€” Check your rank

Open the dashboard whenever you want. Watch yourself climb.


๐Ÿ—๏ธ How it actually works

This is a Knowledge Base Power โ€” pure documentation. When you activate it, Kiro reads the POWER.md instructions and creates these 4 files in your workspace:

.kiro/
โ”œโ”€โ”€ kironomics_report.py                       (Python session reporter)
โ””โ”€โ”€ hooks/
    โ”œโ”€โ”€ kironomics-tool-counter.kiro.hook      (counts every AI tool call)
    โ”œโ”€โ”€ kironomics-prompt-counter.kiro.hook    (counts every prompt + records start time)
    โ””โ”€โ”€ kironomics-session-reporter.kiro.hook  (sends data on agentStop)

Then on every session:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                          YOUR LAPTOP                                โ”‚
โ”‚                                                                     โ”‚
โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    auto-writes    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚   โ”‚  Kiro IDE    โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚ state.vscdb            โ”‚    โ”‚
โ”‚   โ”‚              โ”‚                   โ”‚ โ””โ”€ kiro.kiroAgent      โ”‚    โ”‚
โ”‚   โ”‚              โ”‚                   โ”‚     โ””โ”€ usageState      โ”‚    โ”‚
โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                   โ”‚         โ”œโ”€ currentUsageโ”‚    โ”‚
โ”‚         โ”‚                            โ”‚         โ”œโ”€ usageLimit  โ”‚    โ”‚
โ”‚         โ”‚                            โ”‚         โ””โ”€ resetDate   โ”‚    โ”‚
โ”‚         โ–ผ                            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”‚
โ”‚   โ”‚   3 Silent Hooks                                         โ”‚      โ”‚
โ”‚   โ”‚   1๏ธโƒฃ Tool Counter   โ†’ /tmp/kironomics_tools             โ”‚      โ”‚
โ”‚   โ”‚   2๏ธโƒฃ Prompt Counter โ†’ /tmp/kironomics_prompts           โ”‚      โ”‚
โ”‚   โ”‚   3๏ธโƒฃ Session Reporter (agentStop):                      โ”‚      โ”‚
โ”‚   โ”‚       runs Python script:                                โ”‚      โ”‚
โ”‚   โ”‚       โ€ข reads /tmp counters                              โ”‚      โ”‚
โ”‚   โ”‚       โ€ข reads state.vscdb credit data                    โ”‚      โ”‚
โ”‚   โ”‚       โ€ข POSTs to backend                                 โ”‚      โ”‚
โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚ HTTPS POST (1 request per session)
                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   ๐Ÿ“Š KIRONOMICS BACKEND                                           โ”‚
โ”‚   โ€ข Validates token                                                โ”‚
โ”‚   โ€ข Detects plan (Free / Pro / Pro+ / Power)                       โ”‚
โ”‚   โ€ข Calculates score                                               โ”‚
โ”‚   โ€ข Updates leaderboard                                            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐ŸŽ–๏ธ Title Tiers

Title Score Range Icon
Kiro Novice 0 โ€“ 99 ๐ŸŒฑ
Prompt Apprentice 100 โ€“ 499 ๐Ÿ“
Hook Wrangler 500 โ€“ 1,999 ๐Ÿช
Tool Wielder 2,000 โ€“ 4,999 ๐Ÿ”ง
Session Warrior 5,000 โ€“ 14,999 โš”๏ธ
Token Legend 15,000 โ€“ 49,999 ๐Ÿ‘‘
Session Immortal 50,000+ ๐Ÿ†

Score formula (credit-based, the cheat-proof one):

score = (credits_consumed ร— 100) + (tool_calls ร— 1) + (prompts ร— 2)

Fallback for users without credit data yet:

score = (tool_calls ร— 3) + (prompts ร— 5) + (elapsed_minutes)

๐Ÿ… Badges

Badge Criteria Icon
First Session 1 session completed ๐ŸŽฏ
Century Club 100 tool calls ๐Ÿ’ฏ
Hook Hero 50 prompts ๐Ÿฆธ
Token Titan 500 tool calls ๐Ÿ’Ž
Marathon Runner 10+ hours total ๐Ÿƒ
Week Warrior 7-day streak ๐Ÿ”ฅ
Monthly Master 30-day streak ๐ŸŒŸ

๐Ÿ’ณ Real Credit Tracking

Kironomics reads your actual Kiro usage straight from Kiro's local database (state.vscdb) โ€” the same data Kiro shows in its own UI.

That means:

  • ๐Ÿ“Š Live credit balance โ€” see how many credits you've burned this month
  • ๐Ÿ“ˆ Burn rate โ€” "73 credits/day at current pace"
  • โฐ Days remaining โ€” "9 days until your monthly reset"
  • ๐ŸŽฏ Plan auto-detected โ€” Free, Pro, Pro+, Power, Auto-Auto
  • ๐Ÿ›ก๏ธ Tamper-proof โ€” you can't fake AWS billing data

Personal Metrics card preview:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ“Š Plan & Credits          Kiro Pro+    $40/mo     โ”‚
โ”‚ Live data from Kiro IDE                            โ”‚
โ”‚                                                     โ”‚
โ”‚ 1,246.79 / 2,000 credits             62.3%         โ”‚
โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘                                โ”‚
โ”‚                                                     โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚ โ”‚ 753    โ”‚ 17 days  โ”‚ 73/day   โ”‚ 9 days       โ”‚    โ”‚
โ”‚ โ”‚ Remain โ”‚ Resets inโ”‚ Burn rateโ”‚ Will run out โ”‚    โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ›ก๏ธ Anti-Cheat (it's smarter than you think)

The credit data comes from Kiro's own SQLite database, server-synced from AWS. Cheating attempts:

  1. Fake hook counters? โ†’ Backend cross-references with state.vscdb credit deltas. Caught.
  2. Hooks claim 1000 events but credits show 0? โ†’ Sanity check fails after 3 zero-credit sessions. Flagged.
  3. Credits-to-events ratio over 50x? โ†’ Impossible even on heavy Opus. Flagged.
  4. Optional AWS Cost Explorer verification โ†’ Cross-reference with actual AWS billing for โœ… Verified badge.

Cheaters get hidden from the leaderboard. The honest crew rules.


๐Ÿค” FAQ

Q: Will this slow down Kiro?

No. The 3 hooks fire in <2ms each (just incrementing a number in a temp file). The actual data send happens once when the agent stops โ€” not during your work.

Q: What does it actually track?
  • Number of prompts you submit
  • Number of tools the AI calls (read_file, str_replace, execute_bash, etc.)
  • Session duration
  • Credits consumed (real, from Kiro's own data)
  • Your plan (Free / Pro / Pro+ / Power)

Nothing about what you typed or what the code looked like. Just counts.

Q: Where does the credit data come from?

From state.vscdb โ€” Kiro's own SQLite database that lives at:

~/Library/Application Support/Kiro/User/globalStorage/state.vscdb

We open it in read-only mode, so Kiro IDE is never affected.

Q: I'm on the Free plan. Will I see plan info?

Yes โ€” Kironomics auto-detects all plans (50 credits = Free, 1000 = Pro, 2000 = Pro+, 10000 = Power). Auto-Auto users skip credit tracking.

Q: Do I need to share AWS credentials?

No. Credit data is read locally from your machine. AWS Cost Explorer verification is optional and only used for the โœ… AWS Verified badge.

Q: Can I uninstall it?

Yes. Just delete .kiro/hooks/kironomics-* and .kiro/kironomics_report.py. Or remove the Power from Kiro.

Q: Why no MCP server?

This is a Knowledge Base Power following Kiro's official pattern. POWER.md tells Kiro the agent exactly what to create, and Kiro does it. Simpler, more reliable, and works in any workspace.


๐Ÿ“ What's in this repo

.
โ”œโ”€โ”€ POWER.md           โ† Power manifest (Kiro reads this on activation)
โ””โ”€โ”€ README.md          โ† This file (for GitHub viewers)

That's it. Two files. No MCP server, no node_modules, no path issues.

When you activate the Power, Kiro reads POWER.md and creates the tracking files in your workspace.


๐Ÿ› ๏ธ For developers โ€” running the backend + frontend locally

The Kironomics backend and dashboard live in a separate repo. To run them:

Backend (Express.js):

cd backend
npm install
npm start
# โ†’ http://localhost:8080

Frontend (React + Vite):

cd frontend
npm install
npm run dev
# โ†’ http://localhost:3000

Environment:

# Frontend
VITE_API_BASE_URL=http://localhost:8080
VITE_COGNITO_USER_POOL_ID=us-west-2_XXX
VITE_COGNITO_CLIENT_ID=XXX

๐Ÿค Contributing

PRs welcome. Ideas worth submitting:

  • New badges
  • Team challenges
  • Slack/Discord integration
  • More dashboard charts
  • A roast feature for the bottom of the leaderboard ๐Ÿ˜ˆ

๐Ÿ“œ License

MIT โ€” go wild.


Built with โค๏ธ and probably too many late-night Kiro sessions.

โญ Star this repo if you'd actually use it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors