Inspiration

We didn’t think finding a charity was the hard part. Remembering to give was. So we put the reminder somewhere we already look all day: the Claude Code terminal.

Coding with AI uses electricity and brings up questions about whose work these tools learn from and who benefits. We’re not trying to settle any of that with a €10 donation. We just wanted to make giving a little easier to remember.

What it does

Pick a giving rate, a few charities, and an amount you’d like to give at a time—say, €10. We call that a bucket. Attention counts your Claude Code tokens on your machine, and a little pixel tree grows in your status line as the bucket fills. When it’s full, the tree grows apples.

Run /attention:donate when you’re ready. It opens a page with a QR code that fills in a SEPA transfer in your banking app. You check the details and press Send. If you close the page instead, no money is sent.

You can try the estimator and pick your charities in the browser without installing anything.

How we built it

We used Claude Code hooks and Node.js to read the token counts in local session logs. Attention keeps the counts, not copies of your prompts or replies. We built the website in Svelte and used the same catalog of 22 charities in both places. The site gives you a setup command so you don’t have to enter your choices twice.

Challenges we ran into

Resuming a Claude Code session can copy old responses into a new log. If we just added up everything in the logs, we’d count some replies twice.

The charity mix was another puzzle. If you want to give 60% to one charity and 40% to another, you probably don’t want to make two transfers every time. Each bucket goes to one charity: whichever is furthest behind its target share. The split plays out over several donations, not on every transfer.

Accomplishments that we're proud of

The apples. We could have put another progress bar in the terminal, but the tree tells you what you need to know at a glance. We’re also happy we got the whole thing working, from picking charities on the site to opening a transfer with the right amount and reference already filled in.

What we learned

We didn’t need to automate the donation to make giving easier. Counting the tokens and filling out the transfer take care of the fiddly parts. The user still decides whether to give, and they can do it later.

What's next for Attention is all They need

We’d like to give it to a few people for a week and ask two questions: Did the tree make you notice the reminder? And did the reminder feel useful, or did you want to turn it off? We also want to try the QR codes with more banking apps and make the charity bank details easier to recheck.

Built With

  • attention
  • javascript
  • pixel
  • sepa
  • svelte
  • touchgrass(fromyourterminal)
Share this project:

Updates

Submission history