simon-inkie-ink
Founder & CTO at Inkie
- Joined
- Nov 25, 2026
Comments
How do you manage token use in Claude and other commercial models?
This is really tough, Claude Pro is not enough really for full time development, I manage to eek out my usage on Pro but it's a juggling act. I also have $20 Gemini Pro and $20 ChatGPT that I switch between for different tasks (and when I hit 5 hour limits on one provider). Some tips:
If you need to chat and brainstorm, or you want ot use an orchestrator then use Sonnet 5.5, and have Sonnet spin up Opus subagents for heavy planning and verification, let Sonnet 5.5 subagents build.
Lean on Gemini where you can, they have a fair free tier, I use Flash 3.8 or Hydrogen as a code reviewer for Claude's work and Neon for planning. Hydrogen is also a very capable code writer. Gemini is a good fallback if you hit a 5 hour window on Claude. The $20 Pro plan on Gemini is amazing bang for the buck.
More practical tips things to try:
Set a hard context limit in config, under 500k, so your sessions don't creep up to 1 mil and burn tokens.
Check the context you're passing in on each turn, agents.md, skills, mcp's etc can start to add up over a long session.
Look at the context passed into subagents, they don't necessarily always need everything in your main thread
I've built my own harness harness that I use for this - Inkie Deck (github.com). It enables cross model communications and cooperation.
I've heard T3 Code (t3.codes) is good too (I haven't tried it).
What are your solutions for agent memory?
There's fundamentally two different setups for agent memory. It comes down to who’s using the agent.
For agents I run myself, on my machine or on infrastructure I control, I’m happy to give them fairly broad access. The files live in my Brain vault. A file watcher picks up new files and indexes them in Qdrant using Google’s Gemini embeddings.
It handles more than text. When an agent gets an image or creates a file, we save a little Markdown sidecar with the context from that conversation. So when I find the file months later, I can see why it was there in the first place. I index the agents’ inbox messages too. That’s made a massive difference to recall. I can ask why we made a decision six months ago and find the actual conversation.
I call it Inkie and the Brain, open sourced here (github.com)
For a service other people use (and what I use in Inkie Platform (inkie.ink)), I’d go straight to Mastra. If an agent needs to keep track of a long conversation or pick it up in another session, it runs on most dbs and the harness already does a lot of the work I’d otherwise have to build. Its Observational Memory writes notes as the conversation goes and condenses them when they get too long. Mastra reported 83.3% at 100k tokens and 80.6% at a million on BEAM, the long-conversation memory benchmark.
Mastra’s BEAM results (mastra.ai)