frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Optimizing my sleep around Claude usage limits

https://mattwie.se/no-sleep-till-agi
115•mattwiese•20h ago

Comments

rappatic•19h ago
If Claude usage limits are this important to your life, it seems a little smarter to just bite the Claude Max bullet. Isn't an ordinary sleep schedule easily worth $180/month difference?
mattwiese•19h ago
It sure is, but this has been a fun experiment because I want to sail solo in the future.

If I can't vibe code while sleep deprived, I sure as heck won't be able to react to an AIS alert and change course in the middle of the night!

astral_drama•19h ago
You do your best and let the sea take of the rest.

Anyhow, vibe coding is pretty low stakes compared to the joys and terrors you'll find out at sea.

Bon voyage!

Ifkaluva•40m ago
For a landlubber like me, could you say something about what kind of joys might be possible expected?

As a landlubber, the terrors are quite easy to imagine.

cricalix•5m ago
In no particular order:

Marine mammals

Sunsets with no land in sight. Sunsets framing the land. Sunrises with no land in sight. Sunrises framing the land. Thunder and lightning rolling up one side of an island in the distance, putting on a show.

Dark skies and the stars.

The peace and tranquility of quiet places with just nature and you. Until the sod over the hill turns on their generator.

Fresh fish.

The feel of sea spray, wind in the ears, the connection to your boat, knowing if things are right just by the feel and sound.

And that's just from doing non-ocean-crossing sailing.

schaefer•18h ago
Do you know that big’s backyard ultra exists? Even more ways to get your sleep deprived fun.
serf•18h ago
counterpoint :

I had a max x20 account for the past three months and hit limits just about every period that fell within working hours.

I finally cancelled it two days ago due to overspending-guilt/token-grinding guilt, and they shorted me my last day due to an error on their side regarding time zones.

It's really so dependent on your workloads. Conversations around token expenditure are wildly different from individual to individual,and workload to workload.

Dealing with codebases that require contextual reading due to a lack of training corpus (R/Go/Common Lisp, among others..) EAT context and tokens for breakfast.

f137•2h ago
How many people would click on a "Using multiply Claude accounts to get more code" post?
johnfn•2h ago
This article is definitely just a joke. Right? Haha? It's a joke? People definitely aren't really doing this in real life? Ha? ...?
lovich•47m ago
he mentioned being inspired by 100 rabbits. i assume the author is a bit odd compared to most people just from that
GuinansEyebrows•45m ago
aesthetically, maybe. but i can't help think that someone who claims 100rabbits as an influence but molds their life around a paid service that burns a lot of joules in order to avoid getting closer to the metal might have missed some of the philosophical points.
rgmerk•19h ago
Um…is this satire?
PlunderBunny•19h ago
My thoughts exactly.
max-m•19h ago
At this point I can't even tell reality from satire anymore.
mattwiese•19h ago
At the risk of derailing the thread, your comment is a poignant reminder of Baudrillard's simulacra & simulation.

Also, not satire... although written with a healthy dose of token-in-cheek :]

BigJono•18h ago
The thread before with someone flogging off their educational book they wrote "with Claude in an afternoon", as if anyone would benefit from investing days or weeks of learning effort into consuming something the author couldn't be fucked spending even a single day on, that one was well crafted satire, right?

...right?

encom•18h ago
I wish I could have a HN front page without AI (or "$foo rewrite in Rust"). I'm not an anti-AI luddite, but it's just way too much at this point. Surely there are other interesting hackery topics we could talk about.
BallsInIt•18h ago
Flag them all and hope more do the same.
sitkack•17h ago
What an amazingly selfish behavior. Just hide them. What you are doing is censoring hn in support of whatever you want the hive mind to discuss as opposed to finding your tribes hyperplane.

Please colonize somewhere else.

bakugo•3h ago
Is it really censorship when 90% of AI related posts are just not-so-thinly-veiled advertisements with zero potential for meaningful discussion beyond "yes I agree fellow independent user, I also love Claude Code™ from Anthropic® and it has 1000x'd my productivity, their $5000/mo plan is a steal and everyone should buy it!"
sneak•17h ago
HN is available as RSS and you or I could vibe code up a filtering proxy in ten minutes, and you could use that in your feed reader. It’s easier to solve the problem than to complain about it.

Add another 2 minutes and you could have the list of keywords to filter as a configurable url parameter, so you can amend it easily when the next technology you want to hate comes along.

petesergeant•17h ago
Ironically this would be pretty easy to train an AI to do with Greasemonkey
jmuguy•2h ago
At least this hype cycle seems to be accelerating. Its always darkest before the light. So hopefully the day after every single front page link is something AI related, there won't be any. But that might be because the earth has exploded and not because the bubble finally burst.
senectus1•17h ago
perhaps you need to improve your sleep routine

/s

seriously tho.. yeah I'm a skeptical bastard in every aspect of my life these days. its exhausting.

tehnub•19h ago
Not sure if it's full on satire, slightly outrageous ideas expressed in fanciful language for the fun of it, or the writing of a true believer. Fun read, good luck with the stealth B2B!
mattwiese•19h ago
Definitely written tongue-in-cheek, but I did do this and it did "work" lol. Cheers!
ltbarcly3•19h ago
Literally the first thing I thought when I read how claude counts usage is "I need to set up a cron job to do one claude request before I wake up, so my work day is split in half on the 7 hour bucket times. So probably 5AM, my tokens reset at 12, then reset again at 7.
MangoToupe•19h ago
You could just try and sleep.
acedTrex•19h ago
This is satire right? It has to be
Duanemclemore•19h ago
Ah yes, polyphasic sleep. Like the classic Seinfeld episode [0].

Inspired by this, a buddy of mine tried "DaVinci Sleep" at our residential high school, and lasted a week before he crashed for 20 hours and went back to a normal schedule.

Apropos of nothing, he's now a very well regarded academic - in an unrelated field.

To be fair, computer science is famous for people rearranging their sleep schedule around when the compute time was available.

[0] https://en.m.wikipedia.org/wiki/The_Friar%27s_Club

Sn0wCoder•18h ago
"To be fair, computer science is famous for people rearranging their sleep schedule around when the compute time was available." - Duanemclemore Interesting take, not the mind set I went into reading the article but the one I wish I had...
__MatrixMan__•19h ago
I experimented with polyphasic sleep for a few months. It was really interesting to experience time as more continuous, not broken up into days.

I gave it up because I found it wasn't very fault tolerant. If I missed a bedtime even by just a few hours, or ate before trying to sleep, I was in a bad state for a day or two until I could get back on track.

mattwiese•18h ago
> I gave it up because I found it wasn't very fault tolerant. If I missed a bedtime even by just a few hours, or ate before trying to sleep, I was in a bad state for a day or two until I could get back on track.

That's what terrifies me about polyphasic sleep at sea. I had a few "cheat" days while attempting this, but of course the safety of myself and others didn't depend on if I hit snooze 5 times in an hour. Claude just got lonely for a bit.

It's really an interesting technique and I hope to find and talk with sailors who've done it. Thanks for sharing your experience.

__MatrixMan__•18h ago
On the bright side, those others would have good reason not to give you reasons to deviate from the plan.

It was usually social pressure that did me in. People want to meet for coffee or drinks or food at a time when it wasn't well aligned with my nap schedule, and I started making compromises...

I suppose something that engages you for hours could appear unscheduled while sailing, but it seems like most sources of such things could be mitigated with adequate planning, and they're unlikely to involve coffee or beer or birthday cake.

hattmall•18h ago
>I suppose something that engages you for hours could appear unscheduled while sailing

I would say, generally speaking, that comprises the bulk of the time. Most likely you will spend more time in unscheduled multi-hour long tasks than anything else over the course of an extended trip.

__MatrixMan__•7h ago
Well I guess that shows how much I know about sailing (I've done it once or twice, but never in a hurry or with a lot of distance between ports). Which of these cannot be delayed 45 minutes in order to accommodate a nap?
hattmall•5h ago
Wind shifts, something breaks, something blows overboard, random water where it shouldn't be. Something is making a funny noise. Some alert on the radio that you didnt catch all of it. Odd smell. People speaking excitedly in a foreign language about something. Something breaks again, hooked a fish, approaching vessel with no signal, coast guard inspection, unexpected military craft telling you to change course. Sure there is downtime, but it's lucky to have it remotely scheduled.
mareko•19h ago
I'm impressed by your determination.

A while back, I had a big paper deadline a week away and knew I didn’t have enough time to finish without sacrificing sleep.

Rather than cutting my sleep short, I decided to stick with 7–8 hours of rest and instead lengthen my wake window. I worked out a schedule that gave me six nights of sleep across seven days. It meant waking up at stranger and stranger times as the week went on, and getting some odd looks from my roommates when I emerged from my room. But in the end, it was totally worth it. I was waking up well-rested and ready to tackle those extra-long days.

The effort paid off 100%. Not only did I make the deadline, but my paper was accepted as well. A year later, that same paper helped me get into my PhD program of choice.

It’s funny how these short bursts of intense effort can sometimes have such a big impact.

Best of luck with your side hustle!

versteegen•18h ago
I'm surprised to hear that that schedule worked well. Even if you woke feeling well-rested, what did you feel like towards the end of the day, at your normal/previous sleep time?

Personally in that situation I would (and do) get plenty of sleep every night and then skip the final night. I find the fatigue from a lot of lost sleep normally doesn't hit me in full until the second day after, and the final-day panic is enough to counteract the lack of sleep.

mckn1ght•16h ago
I’ve tried this because I’ve long thought my circadian cycle is just a bit longer than average, where I just don’t feel tired until late at night, and traveling westward feels great because I can take an extra long day. Waking up early on a regular schedule is hard for me generally, like, I can do it but I feel braindead. Eastward jet lag of 3-6 hours is awful if I have to do stuff in the mornings.

So I tried a complete “cycle” of 28 hour days until I realigned with the normal day. Which happens to be the same thing GP did. LCM(24, 28) = 168 which is 7 days with 6 cycles. Roughly 19 hours waking and 9 hours sleeping. I did let myself sleep longer instead of holding to 7-8 hours like GP.

It definitely felt weird because my wife wasn’t on the schedule, but I didn’t feel super sleep deprived. I’m sure with multiple complete cycles you’d see more adverse effects, so it’s probably best to only do this very sparingly. Maybe napping during the wake period could alleviate issues.

squidbeak•1h ago
This sounds quite like Non 24 hr Sleep Wake Disorder.

https://en.wikipedia.org/wiki/Non-24-hour_sleep%E2%80%93wake...

sierra1011•13h ago
Ah, the classic 28 hour day

https://xkcd.com/320/

e12e•3m ago
Reminds me of:

https://web.archive.org/web/20020802073153/http://www.kuro5h...

nine_k•4h ago
Worked for me, too, in similar circumstances. 30-32 hours with 8-9 hours of sleep and 21-24 hours of activity is a somehow better sleep/activity ratio, closer to 1/4 than to 1/3. More important for me were longer stretches of uninterrupted concentration time. Likely it's not important in the vibe-coding case.
dlcarrier•19h ago
Spend a few hundred on a GPU, run Cline locally, and get a good nights rest.
plusfour•18h ago
have some self respect.
judge123•18h ago
LOL, this is the most brilliant, unhinged productivity hack I've seen all year. What's next? Moving to a different time zone to get more GPT-5 credits? I'm taking notes.
cookiengineer•18h ago
You seem to be a young fella, so let me tell you this:

Every time you do coder.Health-- for bank.Money++, you have the problem that you are never able to do coder.Health++ for bank.Money-- afterwards.

Never sacrifice health for money. Never. Every idea that needs to be worked on more than 50 hours a week is an idea not worth working on.

I know how it is, I've been there myself. You'll be reluctant to listen now. But maybe in a year you'll come back and remember this comment.

teaearlgraycold•18h ago
I’d say generally yes, working yourself too hard for some bullshit SaaS isn’t worth it. But there are bigger problems out there. You might still be expending your health but it could be worth it enough for others to justify the effort.
sneak•17h ago
People have been trading off sleep deprivation for productivity for all of human history.

It isn’t always about money, and it isn’t always a choice.

It is a personal decision to build or destroy one’s body, and while your advice is maybe sound in general, we should avoid generalizing for other people.

A little bit of sleep deprivation isn’t life threatening (such as being significantly overweight, or smoking, or consistently eating unhealthy foods). We should avoid over-moralizing to others about the engineering tradeoffs they make in their own lives.

Many a family has been enriched by mothers and fathers overworking themselves to build a better life for their children, for example.

> Never sacrifice health for money. Never. Every idea that needs to be worked on more than 50 hours a week is an idea not worth working on.

If I had taken this advice verbatim in my 20s, I wouldn’t be able to frequently be working 20 hour weeks in my 40s. I would argue that speaking in absolutes like this is actually bad advice.

It is frequently a good thing to work yourself to burnout for a year or three if it means you can work at 20% for the following 20 years.

mereck•17h ago
> It is frequently a good thing to work yourself to burnout for a year or three if it means you can work at 20% for the following 20 years.

Burnout is never a good thing. Go slower. Go well. Thank yourself later.

sneak•16h ago
I disagree. The year or two that ended with me burning out was one of the best things that ever happened to me.

I couldn’t work for two years after it and it was still worth it.

cookiengineer•16h ago
> I disagree. The year or two that ended with me burning out was one of the best things that ever happened to me.

> I couldn’t work for two years after it and it was still worth it.

That sums up kind of the problem I have with that type of survivor's bias.

Question to you:

Was it worth because of the burnout or because of other variables in that specific part of your life?

If the other variables were not the same, would you still recommend it, just for the sake of "recommending the experience of a burnout"?

komali2•16h ago
> People have been trading off sleep deprivation for productivity for all of human history.

I disagree, I believe what we mean when we say "productivity" these days was invented maybe during industrialization, maybe 1800s, and a couple etymology dictionaries I checked seem to agree, that the word being used in an economic sense to mean "production per unit" only started occurring in the 1890s. Also, I believe that the modern sense, meaning, "whether a human's time is spent being productive for the economy," is a mid to late 20th century invention of neoliberalism.

I don't really like hyper-generalizations like "all people have been doing this thing for all of human history," because it's just a silly thing to say on the face of it - the English were doing very different things and had very difference concerns in the year 800, 1100, 1700, 1900, and 2025! But also, the English in 1300 were doing very different things than the indigenous Americans in 1300! That said, one generalization I'm comfortable with is that throughout all of human history, until maybe the 1940s, people have been seeking comfort, leisure, and peace, and only recently have we developed a global society, and at that one that is obsessed with finding economic justifications for everything, including how humans spend their time!

You mention, "it isn't always a choice," and I agree, that is the failure of capitalism - there are people out there destroying their lives, minds, and bodies to scrape out a living. Our global economic system has failed these people - in fact it's sacrificed them on the alter of consumerism.

Many a child had stunted development from mothers and fathers subscribing to the cult of capitalism and overworking themselves and never being at home, with the self-serving justification of "I'm making a better life for my child," when in fact they're not.

schmookeeg•17h ago
> you have the problem that you are never able to do coder.Health++ for bank.Money-- afterwards.

Can you expound on this for me? This rule is not at all obvious to me. I'm curious what perspective this hails from :)

For example, most of my career, I will take 6+ months off between particularly intense work crunches for contracts/startups/jobs. I find the time off restorative to the point where I get restless for the next crunch.

cookiengineer•16h ago
> I find the time off restorative to the point where I get restless for the next crunch.

That is a sign of addiction, not a sign of balance.

The issues I have with this "crunching it" mentality now (post-burnouts) is that even with some time off afterwards you'll pay the price with physical health.

Just the heart issues alone that you'll get because of the absurd and constant stress levels are now for me an indicator that it's not worth it.

A company doesn't give a damn about you. They are not your family. The first sign of risk they'll ditch you. Devs need to see work as what it is: it's a contract with mutual expectations.

And my recommendation is to self-reflect more on the health part, because we (including me) tend to rationalize that it's worth working more for the sake of building something or for the interesting research parts, or for learning experience or whatever we make up to justify it.

You can do that still with basic income. We just can't because society is fucked up, and research and development isn't paid enough to make a living and a healthy life. I also think that huge parts of the open source community that I identify myself with on a moral level are pretty hypocritical, considering that only the top notch famous "leaders" make enough to have a good balanced life. The 99%+ majority doesn't make enough to even rent a flat, and that's the absurd part of our society. I still can't fathom how the richest companies have money laying around on their bank accounts, and were built on the shoulders of unpaid open source contributors that got nothing in return.

That is something I really don't understand because it's honestly really messed up if you think about it.

schmookeeg•15h ago
Thank you for expounding, but man, I have so many "wait, what? who?" reactions to that narrative.

I'm addicted to coding, not work. I know this because I've tried other jobs, even in late career, and they sucked in comparison and brought me no joy.

"The company" is mine, so yeah, probably it doesn't care about me, but it's definitely not dropping me without consent. :)

48, soon 49, heart still going. Not even sure what that's referring to. I don't feel stressed in these crunches, I feel excited! I build cool shit! They pay me to build cool shit! They pay me way too much to build cool shit!

I guess I don't know what I would balance that excitement with. I have cool hobbies too, and those have their place, but... I just don't resonate with your take and view on the industry.

IF someone hated coding, creating, or the tech industry itself -- then I could squint and get behind your balance suggestions. For them. :)

Thanks for sharing the perspective though. If nothing else, you're fanning my gratitude flame.

cookiengineer•15h ago
Don't get me wrong, I still love to code, and I still work on open source projects and I still believe in a future where sharing of mutual contributions lead to a better outcome for everyone. That's not my point.

I also am building up my own company for the last couple years. But I want it to be a sustainable company that promotes a healthy lifestyle and that doesn't overwork its employees, and one that doesn't aim for 2 years turnover/rehiring of staff...because I think these are the typical effects of a toxic work environment, and reflects the values I don't agree with, both on a personal and a professional level.

In the end we both have a different leading style, I guess!?

TruePath•14h ago
Some of the happiest and most satisfied people I know are academics who work 80+ hours a week because they love what they do. You don't need to sacrifice health to work more than 50 hours a week. And realistically there is no long term health damage from what he is doing. And yes you can trade money for better health, though in the first world you rapidly hit diminishing returns but if your sleep deprivation can make the difference between being able to afford good health care or moving to an area with less pollution it absolutely can trade off like that.
7jjjjjjj•1h ago
If you make B2B SASS, and you love your work, there's something wrong with you.
000ooo000•18h ago
You have it backwards

*Optimising My Claude Usage Around Their Usage Limits

Your sleep regime here is in no way optimal

TheCowboy•17h ago
Why isn't simply getting another Claude account an option that you've tried before damaging your brain with low quality sleep?

Or writing prompts that get fired off by a script once the usage resets when sleeping so that you at least get some free tokies?

I'm sympathetic to wanting to squeeze out what you can to control costs, but this is something that might only seem sustainable because you're too exhausted to fully appreciate the potential deleterious long-term health effects.

unwise-exe•17h ago
The writing style would seem to suggest that the lack of sleep has been having more effects than reported.
dalemhurley•16h ago
You know Cursor is giving away unlimited GPT-5 this week?

You could just work 24x7 and Vibe code yourself to a trillion dollars.

In all seriousness, you need to rest properly, you will be more productive and make less mistakes and have less rework.

Finally, if you are using Claude to get your "React component to hydrate correctly", you are not being very efficient in using AI as a coding agent.

I wrote a post about using Full.CX MCP that will build complete features for you with test etc. https://dalehurley.com/posts/fullcxmcp

rightrighton87•15h ago
These are the type of people I'm up against at job interviews FML
more_corn•2h ago
Your code will actually work though and you’ll understand it. Broheem is going to show up bleary eyed and with zero understanding of what his code does or how. Pretty sure he’s going to wash out of any interview.
Ezhik•15h ago
Being inspired by Hundred Rabbits to break your sleep schedule to work on a B2B SaaS... If this is bait, then I am hooked.
thefz•14h ago
Writing sofwtware is hard already, with such dependence on shitty AI code generation we must brace for the advent of the worst code ever era. Security and performance wise it will be a mess.
more_corn•2h ago
I would agree but then I think back on the codebases I’ve seen over the years. Ai doesn’t have a monopoly on crappy code and at least if you learn something you can add it to your cursor rules (let’s always follow best practices for security and data protection) Or you can add it as a pre-commit check. Whereas with human devs you can tell them a hundred times and they still won’t listen.
TruePath•14h ago
It is worth remembering that before artificial lighting the normal sleep pattern is to sleep in two segments and get up in the middle to have sex, talk, do some chores, change the baby etc. And I believe a normal sleep cycle is something like 90 minutes so if you *really* sleep in 3 hour chunks that's actually probably healthier than the normal us sleep schedule. I mean many of us find the usual wake at 7am alarm schedule to be pretty damn brutal. However, if what you actually do is kinda lie around check your phone in bed etc and then get blasted awake by an alarm that's a different story.
withinboredom•4h ago
Bro: uv tool install claude-monitor

The game is to balance the usage bars. If you run out of one before the others, you aren't max-min'ing it right.

SrslyJosh•4h ago
Totally not a cult.
macgiysap•4h ago
If you’re ever near the Annapolis area hit me up. I’m taking my boat out racing most weekends and Wednesday nights during the summer.
hoppp•3h ago
Solo sailing liveaboard coder here also. High five!
bialpio•2h ago
Brilliant example of Poe's law, I seriously don't know if this article is sincere or not. I tip my hat to the author.
guywithahat•2h ago
For his sake I really hope he's not "optimizing his sleep" for a B2B SaaS stealth startup lol. It was a funny article though
kazinator•2h ago
When the usage limit strikes, wouldn't that be a great time to review the code, and think a little bit?
mvieira38•2h ago
Please make this a series and monitor your vitals. Maybe routine cognitive tests would be a fun thing to do, like memory games or playing 10 games on lichess bullet daily, so we could track if the microsleeping is effective or not.
taftster•1h ago
Having Claude help write the tracking/monitoring application would be an additional bonus.
mvieira38•1h ago
And interpreting the results, and writing the blog posts and posting. Become Claude
StopVibeCoding•2h ago
I hope this is sarcasm. Surely, right?
jug•2h ago
I showed this blog post to ChatGPT and even an AI disapproved, lol.
internetguy•2h ago
maybe if you were really a "cracked coder", you could learn React...
jacquesm•1h ago
So, you're now officially a peripheral of an AI. That thing is supposed to work for you, not the other way around. I'm tempted to front you the money for a larger subscription so you can get some sleep, on the other hand then you might really burn out.
Garlef•1h ago
Tell me you don't have kids without telling me you don't have kids.
j45•1h ago
Feeding newborns around the clock + micro sleep excluded.
bogwog•1h ago
It may reduce your life span by 50%, but when you consider it improves your productivity by 100x, it means you lived more of a life than those that didn't.

(Also, I'm assuming this post is a joke, but some of the comments here seem to ve taking it seriously)

whalesalad•1h ago
bro just get an api key and call it a day lol.
jaredcwhite•54m ago
Haha, good one! I love me some juicy satire.

Wait…erm, is this for real?? :face_with_spiral_eyes:

jongjong•41m ago
This is one advantage of living in Australia. I didn't even realize LLM usage limits were still a thing. Last time I encountered one was during the rollout of GPT4.
globular-toast•9m ago
This goes along with my current theory about how people are getting 10x results using LLMs: they're putting in 10x the time.
6thbit•7m ago
Careful, you might end up dreaming of electric sheep.