Loading...
Loading...
The AI limits interview — run by /setup-brad-frost-skills, or directly any time. A short guided interview that establishes your personal limits for AI usage — quiet hours, a sessions-per-day ceiling, how sessions end — then wires them into whatever your tools can actually enforce and tells you plainly where enforcement stops. Use when the user says "set my limits", "set up my AI limits", "limits setup", "help me stop using AI at 2am", when /setup-brad-frost-skills routes here, or when the limits skills are installed but no config exists yet at ~/.config/ai-limits/.
npx skill4agent add bradfrost/skills limits-setup"Answer 6 quick questions to establish healthy limits with AI. For each question, you can choose the suggested default or tweak to your preferences. Let's go!"
"(1 of 6) Why do you want to be intentional about your AI usage? Check all that apply:
- Mental health: I want to establish healthier boundaries with AI
- Sleep: I want to prioritize sleep and not feel pulled into prompting through the night
- Clarity around AI sessions: I want sessions that end cleanly without never-ending, confusing, dangling next steps
- The environment: I want better awareness of how my AI use impacts the environment
- Anything else? Feel free to share anything else around why you want to be intentional about your AI use."
"(2 of 6) When do you want quiet hours when AI tools are off-limits to protect your sleep & balance? During quiet hours, if you prompt Claude Code instructions (like "Build this feature"), it will REFUSE to execute that work. Refusal isn't technically possible in Chat/Cowork, but it will remind you you are in your quiet hours. Default: 10pm to 7am daily."
"(3 of 6) Do you want to set an upper limit on how many AI sessions you can start in a day? If you reach your daily session limit, Claude Code will refuse to run more sessions. Session count resets at 4AM, and raising your limit requires friction & intention. Default: For the first week, AI sessions are counted, but not limited. Then you review your actual session numbers and set a healthy & realistic session number limit."
SESSIONS_TRACKING=offai-limits raise"(4 of 6) How should AI sessions end? Default: definitively. The task that started the session is seen through to completion, with no dangling loose ends. Any new tasks that emerged during the session will be filed and linked, but they won't be dangled in front of you."
limits-endingslimits-endings"(5 of 6) Do you want to see the environmental cost of your AI usage? This is meant to inform you, not shame you. Default: show a rough energy estimate (e.g. 💡💡💡 3+ Wh this session) at the end of your session."
ENERGY_FOOTER=noENERGY_FOOTER=yes"(5a) Do you want to set a weekly energy budget? Note: since almost nobody knows their AI energy usage (or what a watt-hour feels like!), budgets start with a 1-week baseline: your energy usage is measured for a week, then you review your actual numbers and set a realistic budget."
"(5b) Once you have an energy baseline after a week of use, you can then set your energy budget limit. How would you like to enforce your energy limit?
- ⚠️ Warn only: you get a heads-up when you exceed your budget
- 🚫 Restrict: Claude Code will refuse to continue working once your budget is exceeded (you can always deliberately adjust)
- I'm not sure right now; ask me again when I see my actual numbers"
ENERGY_BUDGET_MODE=warnrestrictENERGY_BUDGET_WH_WEEKlimits-energy"(6 of 6) Should scheduled/automated AI tasks keep running inside your quiet hours? Default: scheduled/automated tasks run during your defined quiet hours, but they do not notify you."
run-silent~/.config/ai-limits/configai-limits# ai-limits config — written by limits-setup on <date>
# Tightening a limit needs no ceremony: edit this file and you're done.
# Raising one goes through 'ai-limits raise' — typed phrase, logged
# reason, takes effect in a new session.
SESSIONS_PER_DAY= # empty = measure first (count, never block)
SESSIONS_TRACKING= # off = don't even count (declined in Round 3)
QUIET_START=22:00
QUIET_END=07:00
DAY_BOUNDARY=04:00 # the day rolls over at 4am, not midnight
DEFINITIVE_ENDINGS=yes
ENERGY_FOOTER=yes # end-of-session energy floor estimate (limits-energy)
ENERGY_BUDGET_WH_WEEK= # empty = no budget
ENERGY_BUDGET_MODE= # warn = heads-up only; restrict = opt-in gate
AUTOMATION_IN_QUIET=run-silent~/.config/ai-limits/limits.md# Your AI Limit Preferences
You deliberately set these limits on [date] at [time] using Brad Frost's
[AI limits skill](https://github.com/bradfrost/skills)
## Why I set these limits
- [their checked Round 1 reasons, verbatim, one per line]
- [anything else they shared, in their own words]
## The limits
| Limit | Your setting | Claude Code | Chat & Cowork |
|---|---|---|---|
| Quiet hours | [23:00-07:00 daily] | 🚫 tool calls refused | ⚠️ reminded of limits |
| Sessions per day | [measuring this week / limit of N] | 🚫 new sessions refused [add "(once a number is set)" while measuring] | — (can't count sessions) |
| Session endings | [Definitive] | loaded into every session | loaded once pasted into settings |
| Energy | [footer on, no budget / budget of N Wh/week, warn / budget of N Wh/week, restrict] | [estimate shown at session end / ⚠️ warned when budget exceeded / 🚫 tool calls refused when budget exceeded] | shown via pasted preference |
| Automation in quiet hours | [runs, but can't notify me] | honored by exempted automations | n/a |
## Changing your limits
You can update any of your limits by editing `~/.config/ai-limits/config`.
It's important to know that loosening a limit requires going through some
deliberate friction.
- You need to provide a reason for raising your `SESSIONS_PER_DAY` limit
or shortening your `quiet-hours` window
- You'll need to type `I'M AWARE I'M INCREASING MY AI USAGE`
- The updated settings will take effect in the next new session
- Every raise and override is logged and shows up in your weekly AI
session count.
```
ai-limits raise SESSIONS_PER_DAY <n> --reason "why"
ai-limits override quiet-hours --reason "why"
```
## You control your own limits
- These gates are merely speed bumps to steer you to healthier limits;
the point isn't to make it impossible to venture outside of your
limits, it's just that it should be an intentional and documented act
rather than an impulsive override
- Claude Code can refuse work, but that isn't technically possible in
Chat & Cowork. But by pasting your limit preferences into your
settings, sessions will adhere to your session endings format and
remind you of your limits
- The energy numbers are rough estimates; AI companies don't publish how
much energy each prompt actually burns 🥵. The real cost is almost
certainly higher than the numbers suggest.
## Checking in
In any session, you can say "limits report" to see your:
- weekly session number
- raises & overrides
- energy usage
Again, this is about understanding, not shaming.bin/ai-limits~/.config/ai-limits/bin/ai-limitslimits-sessions/hooks/sessions-gate.sh~/.config/ai-limits/hooks/sessions-gate.shlimits-quiet-hours/hooks/quiet-hours.sh~/.config/ai-limits/hooks/quiet-hours.shlimits-energy/hooks/energy-gate.sh~/.config/ai-limits/hooks/energy-gate.shlimits-endings/hooks/endings-context.sh~/.config/ai-limits/hooks/endings-context.shDEFINITIVE_ENDINGS=yes~/.claude/settings.json{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{ "type": "command", "command": "$HOME/.config/ai-limits/hooks/sessions-gate.sh" },
{ "type": "command", "command": "$HOME/.config/ai-limits/hooks/energy-gate.sh" }
]
}
],
"SessionStart": [
{
"hooks": [
{ "type": "command", "command": "$HOME/.config/ai-limits/hooks/endings-context.sh" }
]
}
],
"PreToolUse": [
{
"matcher": "*",
"hooks": [
{ "type": "command", "command": "$HOME/.config/ai-limits/hooks/quiet-hours.sh" }
]
}
]
}
}~/.config/ai-limits/binAI_LIMITS_AUTOMATION=1"Your limits are now live in Claude Code. Only one step is left to apply them to Chat & Cowork:⚠️ Chat & Cowork can't refuse work the way Claude Code can, but will honor your session ending preferences and remind you of your set limits. 👉 Paste the following into claude.ai → Settings → Profile → personal preferences."
My AI limits, set deliberately on [date] (bradfrost/skills limits kit):
- Quiet hours [23:00-07:00] daily: if I start something in this window,
remind me once, briefly, and keep it short.
- Sessions: [limit of N per day / measuring my count this week].
- End every session definitively: the task that started it is the task
that ends it; no trailing "want me to also...?" offers; file loose ends,
don't dangle them. Close substantive responses with a Signal Flags
block. When you need my decisions, never point me at them ("answer
the questions in the spec"); number each question 1️⃣ 2️⃣ 3️⃣ in the
block, make it make sense on its own, and give me a Default. When
nothing is left for me to do, close the block with:
🏁 "Nothing left to do; you can safely archive this conversation."
- Energy: end working sessions with a one-line energy floor estimate.
Honor these limits; never lecture me about them."Alright, your limits are set! Here's what you can expect:
- All future AI sessions will read your limit preferences, which are saved as a plain-language contract in a config file (
)~/.config/ai-limits/- Any quiet hours and session limits you just set are now actually enforced in Claude Code. When your limit conditions are met, Claude Code will refuse to continue performing work.
- Claude Chat & Cowork can't technically refuse to work, but will alert you when you've exceeded your limits
- None of this is set in stone; you can adjust your limits at any point. Edit the config file (
) or say "set/adjust my limits" to tune your preferences. Note that loosening your limits requires some intentional friction in the form of a typed phrase.~/.config/ai-limits/- You can say "limits report" anytime to see how you're doing.
By setting these limits, I hope you arrive at a healthy, balanced relationship with AI. Wishing you health, happiness, balance, and satisfaction in your work and life. - Brad"
~/.config/ai-limits/bin/ai-limits status~/.config/ai-limits/state/