Claude Code is moving auto compact to 400k on most 1M models. I went through my own sessions to see how many of my instructions make it through a compact.
Before I added a hook for this, the first compact in a session kept 78% of them word for word on average, and from the tenth one on it was 55%. With the hook it's 87% and 74%, so long sessions still lose a lot.
It's not a perfect test since the sessions were different and only 11 with the hook got to a tenth compact. I counted my first message and the ones where I said stuff like never, must or only.
You can paste this into Claude Code to build a short version of it. My numbers are from a longer one.
Add a Claude Code hook to .claude/settings.json for PreCompact, and for SessionStart with the compact matcher. Read the transcript path it gets on stdin. Collect my first message plus every message I typed that says never, always, don't, must or only, skip earlier compact summaries, and stay under 8,000 characters. On PreCompact print them and ask for each one to be quoted word for word in the summary. On SessionStart print them again and say to check the next step against each one.
@not_sacke Mine is a hook that adds the list to the system prompt. I have another one that checks the list whenever Claude tries to ask me a question. The CLAUDE.md rule in the post is the simpler version, so I'd start with that if you don't want to set up hooks.
I keep a list of 28 things I've already decided so Claude Code doesn't ask me about them again, and it reads the list at the start of every session.
Each one is just the question and my answer. These are three of mine.
Turn agent teams back on? No, they stay off unless I ask for them.
Open Excel or another app on my screen to check work? Never, checks run in the background.
Use max effort on an agent? Never, xhigh is as high as I go.
This is the prompt to start your own list.
Make a file called decided.md for choices I have already made, with one line per topic and my answer. Add a rule to CLAUDE.md to read it at the start of every session, follow it, and not ask me about anything on it. If I answer the same question twice, add it to the file.
Introducing Blink Pixel - the world's first multiplayer AI employee
Pixel knows who does what, works with the right people, takes initiative, hires other Pixels and delegates work.
A new kind of employee. A new kind of team.
Comment + RT for a free month of Pixel.
I looked at 7 times after a compact when Claude Code seemed to forget something I'd told it. In 5 of them my instruction was still sitting in Claude's own summary and it just didn't act on it.
Only one was really lost, and I'd said that one 3 days and 24 compacts earlier. The other one I never said in that session at all.
I have a hook now that puts as many of my instructions as it can back in front of Claude after a compact and tells it to check its next step against them. I haven't measured if that part works yet.
@Wenxiao__Wang@priyathamkat@FeiziSoheil I personally have the criteria for my sub agents to use by my main agent, so it already knows my goals and what we are aiming for based off each task
My purpose of having the initial reviewer in the first place was to lower the number of review rounds before a PR. It’s all within the same initial prompt, and I review the output of the reviewer so there’s another pair of eyes. Because of this, the number of review rounds is already low
@cy_zanfar@hyojun_at They almost certainly did. It would be extremely hard to have things like focus stealing/bot detection signals on a Pure JS/extension or Electron.
Spent my morning negotiating with @interaction for Devin Bot credits to finish the self-hosted crawler I'm building, and it grilled me on validation logic harder than most interviews. Pretty fun way to give out credits @cognition
When I asked Devin Bot for credits, it grilled me on how I'd check that my crawler worked.
I'd ask a coding agent the same thing before it edits. What could fail, and what test would catch it? After the edit, run that test and paste the result.
Lightning AI's free plan includes up to 50 free GPU hours, with no credit card. Paid GPUs on the same page run from $0.55 an hour for a T4 to $5.45 an hour for an H100.
The catch is the fine print. Prices vary, and a free Studio has to be restarted every 4 hours.
What would you train or run first?
Tavily's startup program gives 100k free credits and hands-on support. The apply form lists Bootstrapped as a funding stage.
The catch is that applications are reviewed on a rolling basis, so it isn't instant. Tavily's own launch post called it a program for early-stage, VC-backed teams, so a bootstrapped team may not get in.
Have you used Tavily in an agent yet?
@undefinedKi I do this in all my repos with one rule. A lesson only gets saved with proof attached, like the error output or the exact file and line. Without that the agent saves its own wrong guesses, and repeats them every session
@Pirat_Nation Most of my Claude limit goes to planning and review now. The grunt work runs on cheaper models through separate API keys that I have integrated for the subagents to use. It also depends on what models you are using for subagents, and the effort in which the main agent is set on
Firecrawl gives verified students 10,000 free credits, with no credit card. One credit scrapes a page or returns a search result. Its Hobby plan sells extra credits at $5 per 1,000, so that's about $50 of scraping.
The catch is that it's a one-time grant for school and personal projects. You redeem a code in Settings, then pass an ID check once.
What would you scrape first?