stay-within-limits
Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming…
Skill by tensology
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/tensology-stay-within-limits
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/stay-within-limits
What's inside
- Skill name
stay-within-limits- Description
- Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming only when the window is clear.
- License
- MIT
- Instructions
- 80 lines in SKILL.md · view on GitHub
Files (2)
- README.md
- SKILL.md
SKILL.md (first lines)
# Stay Within Limits Keep long-running agent work inside the current 5-hour and weekly usage windows. Check usage before launching substantial work and between waves of parallel subagents. If an active 5-hour or weekly limit is at or above 95%, pause new work until the window is clear enough to continue safely. ## Core Loop 1. Run a bounded wave of work. Default to at most 3 parallel subagents unless the user or host gives a different throttle. 2. Wait for the wave to finish. Do not interrupt in-flight subagents just to save budget; that usually loses work. 3. Check current 5-hour and weekly usage with the host's usage/budget tool. 4. If either window is at or above 95%, stop launching work and schedule a self-contained resume when the relevant window should clear. 5. On resume, re-check the real window or block before continuing. Do not trust elapsed wall-clock time alone. ## Usage Signals Prefer a first-party host usage tool when available. In Claude Code, use: ```sh npx -y ccusage@latest blocks --active --json ``` Use the JSON to identify the active block start, current cost or percentage, and time remaining. On wake, compare the active block start timestamp with the previous one; a new timestamp is stronger evidence than "enough time passed." If the tool reports cost instead of a direct percentage, convert through the current account limit when known. For Claude Max-style 5-hour blocks, some users prefer an earlier caution threshold around $500-550; treat that as a user-configured guardrail, not a universal rule. The default stop rule is still 95% of the active 5-hour or weekly limit. ## Pausing And Resuming When a wake/resume tool is available, schedule a wakeup for: ```txt min(3600, secondsUntilWindowClears) ``` If the runtime clamps wake delays to 60-3600 seconds, chain wakeups for longer waits. Each wakeup should re-check usage, reschedule if still over budget, and continue only when the window is safely below the threshold. Make wake prompts self-contained. Include: - The remaining plan. - The check-then-reschedule rule. - The 95% threshold and wave throttle. - The exact usage command or host usage tool to run. - The previous block/window identifier when available. - The next verification steps. - The next wave's handoff packets, including scope, verification commands, and stop conditions, if delegation will resume. ## Choosing The Wait Mechanism - Use a wake/resume tool when the agent needs instructions attached to the future resume. - Use a background sleep or watcher for fixed timers and things a process can observe directly. - Use cron or recurring schedules only for recurring fresh-session work. Avoid short-interval polling for things the host will notify you about, such as background task or subagent completion. For budget pauses, a prompt-cache miss after a long sleep is acceptable; preserving the limit matters more. ## Reporting If you pause, tell the user which window is over threshold, the observed usage, when you scheduled or expect the next check, and what work remains. Keep enough state in the wake prompt that the next turn can resume without relying on conversation momentum.
From tensology/decisionsai, MIT.
More from tensology/decisionsai
- 0.646score
domain-modeling
tensology
Use when a project needs shared terminology, glossary updates, ADRs, clearer domain language, or when user language conflicts with existing code, ticket…
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
architecture-deepening-review
tensology
Use when reviewing a codebase for architectural friction, shallow modules, poor test seams, scattered behavior, duplicated orchestration, or opportunities to…
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
impeccable
tensology
Explicit-command design reviewer.
SkillAFreshness: A★ 17Claude Code +9 - 0.643score
visual-plan
tensology
Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
plow-ahead
tensology
Use when the user explicitly wants autonomous progress without routine clarification stops: "plow ahead", "do not stop", "use your best judgment", "keep going…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
quick-recap
tensology
Use when adding or following the red/yellow/green final status block convention for agent responses, especially by installing managed AGENTS.md or CLAUDE.md…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
plan-arbiter
tensology
Use when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
read-the-damn-docs
tensology
Use when implementing, integrating, upgrading, debugging, or answering anything involving third-party APIs, libraries, frameworks, CLIs, cloud services…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
codebase-design
tensology
Use when designing or improving a module interface, choosing a seam, reducing shallow modules, making code easier to test, or reviewing architecture for…
SkillAFreshness: A★ 17Claude Code +9 - 0.640score
ln-721-frontend-restructure
tensology
Frontend structure worker: SCAFFOLD new React project or RESTRUCTURE existing monolith to component-based architecture
SkillAFreshness: A★ 17Claude Code +9 - 0.638score
decisions-ui-ideation
tensology
Run before implementing UI — research real product patterns (Refero/Mobbin MCP), pick a design direction, and output tokens or a short DESIGN.md before…
SkillAFreshness: A★ 17Claude Code +9 - 0.638score
decisions-design-aesthetics
tensology
Pick a design aesthetic from awesome-design-skills — bundled minimal/professional/enterprise/shadcn/bento; full catalog in reference for on-demand load.
SkillAFreshness: A★ 17Claude Code +9
Signals
- Stars
- 17
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Oct 2, 2026 (26 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/tensology/decisionsai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from tensology
- 0.646score
impeccable
tensology
Explicit-command design reviewer.
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
domain-modeling
tensology
Use when a project needs shared terminology, glossary updates, ADRs, clearer domain language, or when user language conflicts with existing code, ticket…
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
architecture-deepening-review
tensology
Use when reviewing a codebase for architectural friction, shallow modules, poor test seams, scattered behavior, duplicated orchestration, or opportunities to…
SkillAFreshness: A★ 17Claude Code +9 - 0.643score
visual-plan
tensology
Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
quick-recap
tensology
Use when adding or following the red/yellow/green final status block convention for agent responses, especially by installing managed AGENTS.md or CLAUDE.md…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
read-the-damn-docs
tensology
Use when implementing, integrating, upgrading, debugging, or answering anything involving third-party APIs, libraries, frameworks, CLIs, cloud services…
SkillAFreshness: A★ 17Claude Code +9
Cite this page
stay-within-limits skill. Agent Mart. https://agentmart.dev/skills/tensology-stay-within-limits (last updated 2026-10-24)