AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Context Budget

skill-besync-labs-antigravity-ai-kit-context-budget · by besync-labs

Context window budget management and selective capability loading for LLM token optimization.

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-besync-labs-antigravity-ai-kit-context-budget

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-besync-labs-antigravity-ai-kit-context-budget)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Context Budget? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Context Budget Skill

> Purpose: Manage LLM context window as a finite resource. Ensure the right agents and skills are loaded for each task while preventing context overflow.


Overview

LLM context windows have hard token limits. Loading all 19 agents and 27 skills simultaneously consumes context that should be reserved for the actual work. This skill implements intelligent selective loading to maximize usable context for code and reasoning.


How It Works

1. Domain Detection

At the start of each task, analyze the user request to identify which domains are involved:

User: "Add JWT authentication to the API"
→ Detected domains: security, backend, testing
→ Load: security-reviewer, backend-specialist, tdd-guide
→ Load: security-practices, api-patterns, testing-patterns

2. Selective Loading

Consult engine/loading-rules.json to determine which agents and skills to load:

  • Always loaded (core): rules.md, manifest.json, workflow-state.json
  • Session context: session-context.md, session-state.json
  • Domain-specific: Only agents/skills matching detected domains

3. Budget Limits

| Resource | Default Limit | Rationale | |:---------|:-------------|:----------| | Agents per session | 4 | Each agent ~200-500 tokens of context | | Skills per session | 6 | Each skill ~200-800 tokens of context | | Maximum loaded context | ~30% of window | Reserve 70% for code and reasoning |

4. Overflow Prevention

When approaching context limits:

  1. Warn: Alert that context is nearing capacity
  2. Compact: Apply strategic-compact skill to summarize completed work
  3. Unload: Release agents/skills no longer needed for current phase
  4. Persist: Save important context to session-state.json before compaction

Task-Based Loading Profiles

| Task Type | Agents Loaded | Skills Loaded | |:----------|:-------------|:-------------| | Security audit | security-reviewer, architect | security-practices, architecture | | Feature build | planner, architect, tdd-guide | plan-writing, testing-patterns, clean-code | | Bug fix | build-error-resolver | debugging-strategies | | Sprint planning | sprint-orchestrator, planner | plan-writing, brainstorming | | Code review | code-reviewer, security-reviewer | clean-code, security-practices | | Deployment | devops-engineer, reliability-engineer | deployment-procedures, docker-patterns |


Integration

  • Triggered at session start by reading engine/loading-rules.json
  • Enforced by reliability-engineer agent
  • Monitored throughout session lifecycle
  • Compaction delegated to strategic-compact skill

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.