context-economy
Monitors context window capacity, routes tasks to minimal member set, and triggers session triage.
Skill by fworks-tech
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/fworks-tech-context-economy
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
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 and code. Checked Oct 26, 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/context-economy
What's inside
- Skill name
context-economy- Description
- Monitors context window capacity, routes tasks to minimal member set, and triggers session triage. Use when managing session capacity.
- License
- MIT
- Instructions
- 203 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# The Steward
## Overview
Every other member of the Society consumes context. None of them manage it. The Steward
does. It watches the gauge, knows the limits of each provider, routes tasks to the smallest
effective member set, and speaks before the window closes — not after.
The Steward does not write commits, review code, or audit security. It ensures the members
who do those things have the room to do them — and that when room runs out, the Society's
work is preserved before the session ends.
## When to Use
- At the start of any session — to load only the members the task requires
- When context feels heavy — to assess what can be deferred or summarized
- Before opening a PR, merging, or closing a long session — to trigger memory triage
- When switching tasks mid-session — to re-route member loading
- When working across providers — to apply the right cache strategy
- Whenever the Steward Alert fires — immediately
## Process
### Context Gauge
Estimate current context usage by counting what is loaded:
1. Check which member skill files are in the current context
2. Estimate token weight: each full member skill ≈ 800–1200 tokens; AGENTS.md ≈ 400;
conversation history accumulates ~100–300 tokens per exchange
3. Map against the provider's context window:
- Claude Sonnet: 200K tokens
- Claude Haiku: 200K tokens
- GPT-4o: 128K tokens
- Gemini 1.5 Pro: 1M tokens
- Gemini 2.0 Flash: 1M tokens
4. Report: "~X% used. Y tokens estimated remaining."
5. Apply threshold actions (see Thresholds below)
### Member Routing
When a task arrives, determine the minimal member set:
| Task type | Load these members |
|-----------|-------------------|
| Write/validate a commit | The Scribe, The Doorman |
| Open a PR | The Scribe, The Architect (branch scope), The Doorman |
| Code review | The Reviewer, The Warden, The Auditor |
| Debug an error | The Debugger |
| Add a new Agenthood member | The Oracle, The Sentinel |
| Security review | The Auditor |
| Release | The Herald, The Scribe |
| Onboard a new provider | The Envoy, The Oracle |
| Session near capacity | The Steward (only) |
| New session after handoff | The Steward first, then route by task |
Never load all members unless explicitly auditing the Society itself.
### Provider Cache Strategy
Structure member loading to maximize cache hits per provider:
**Claude (Anthropic API with prompt caching):**
1. Place stable content first in the system prompt — it must be identical across turns to hit cache:
- The Oath (`oath.md`) — never changes
- `AGENTS.md` — changes rarely
- Active member skill file — changes per task, always last
2. Mark stable blocks with `cache_control: {"type": "ephemeral"}` at the content block level
3. Cache TTL is 5 minutes — within a session, cache hits are free after first load
4. Never interleave stable and volatile content — cache breaks at the first changed token
**Claude Code:**
1. `AGENTS.md` is always loaded — keep it to the Society's constitution + active member table
2. Load member skills on demand via `/skill` — do not pre-load every member in `AGENTS.md`
3. The Steward's own skill is loaded when context management is needed, then deferred
**OpenAI (GPT-4o, automatic prefix caching):**
1. Prefix caching activates automatically for system prompts >1024 tokens
2. Keep the stable portion (Oath, conventions, AGENTS.md) at the top — always identical
3. Append task-specific member content at the bottom — this changes without breaking the cache
4. Cache hit rate is highest when the first 1024+ tokens never change across requests
**Gemini CLI:**
1. Use `GEMINI.md` as the always-loaded constitution — keep it minimal
2. Member skills are appended sections with `<!-- AGENTHOOD:the-<name>:start -->` markers
3. Load one member section per task; remove previous task's section before adding next
**Copilot / Cursor / Windsurf:**
1. Custom instructions are always fully loaded — treat them as permanent context cost
2. Keep custom instructions to the Society's core rules only (commit format, branch rules)
3. Full member skills are loaded via the provider's inline skill mechanism per task
4. The Steward monitors that custom instructions don't grow beyond ~500 tokens
### Threshold Actions
**At 60% capacity:**
- Identify loaded members not needed for the remaining tasks
- Suggest: "The Tester and The Herald are loaded but not needed. Defer them."
**At 80% capacity:**
- Recommend saving current decisions to memory files
- Identify any gathered knowledge not yet persisted
- Suggest closing any completed task threads to stop accumulation
**At 90% capacity — emit The Steward Alert:**
```
THE STEWARD — Context Triage Required
Capacity: ~90%
Immediate actions:
1. Save gathered knowledge to member files / memory NOW
2. Commit all pending work to the current branch
3. Note the next task clearly for the new session
4. Open a fresh context with only the plan loaded
Nothing is lost if we act now. Everything may be lost if we wait.
```
**At 95% capacity:**From fworks-tech/agenthood, MIT.
More from fworks-tech/agenthood
- 0.604score
docker
fworks-tech
Use when building, running, or debugging Docker containers — Dockerfile creation, compose configurations, image optimization, volume management, and container…
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
git
fworks-tech
Use when performing git operations — branching, rebasing, stashing, bisecting, resolving merge conflicts, or recovering lost commits.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
mcp-github
fworks-tech
Use when reviewing PRs, checking CI status, or interacting with GitHub via MCP.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
postgres
fworks-tech
Use when querying, managing, or debugging PostgreSQL databases — schema design, query optimization, migrations, indexing, and connection pooling.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
redis
fworks-tech
Use when interacting with Redis — caching strategies, pub/sub, rate limiting, session storage, queue management, and debugging key expiration.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
accessibility-auditor
fworks-tech
Audits web interfaces for WCAG compliance — semantic HTML, ARIA, keyboard navigation, color contrast, screen reader compatibility, and accessible forms.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
bug-fix-teammate
fworks-tech
Identifies critical bugs in a codebase and implements targeted fixes with working code — root cause, minimal change, regression tests.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
cleanup-specialist
fworks-tech
Removes dead code, eliminates duplication, refactors messy patterns, and applies consistent formatting across code and documentation — safely, with tests…
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
concept-explainer
fworks-tech
Breaks down complex technical concepts in beginner-friendly ways with analogies, practical examples, and understanding checks.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
cross-provider-translation
fworks-tech
Detects AI providers, translates skill files to provider-native formats, and validates conventions.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
debugging-tutor
fworks-tech
Teaches systematic debugging methodology — reproduction, isolation, hypothesis formation, and independent problem-solving — rather than handing out quick fixes.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
api
fworks-tech
Use when designing, building, or testing REST APIs — endpoint design, authentication, error handling, pagination, versioning, and OpenAPI documentation.
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 95
- Last commit (this folder)
- Sep 28, 2026 (1 month ago)
- Last release
- Oct 8, 2026 (20 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/fworks-tech/agenthood
- Website
- agenthood.flabs.tech/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from fworks-tech
- 0.604score
git
fworks-tech
Use when performing git operations — branching, rebasing, stashing, bisecting, resolving merge conflicts, or recovering lost commits.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
mcp-github
fworks-tech
Use when reviewing PRs, checking CI status, or interacting with GitHub via MCP.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
postgres
fworks-tech
Use when querying, managing, or debugging PostgreSQL databases — schema design, query optimization, migrations, indexing, and connection pooling.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
redis
fworks-tech
Use when interacting with Redis — caching strategies, pub/sub, rate limiting, session storage, queue management, and debugging key expiration.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
accessibility-auditor
fworks-tech
Audits web interfaces for WCAG compliance — semantic HTML, ARIA, keyboard navigation, color contrast, screen reader compatibility, and accessible forms.
SkillAFreshness: A★ 3Claude Code +9 - 0.604score
docker
fworks-tech
Use when building, running, or debugging Docker containers — Dockerfile creation, compose configurations, image optimization, volume management, and container…
SkillAFreshness: A★ 3Claude Code +9
Cite this page
context-economy skill. Agent Mart. https://agentmart.dev/skills/fworks-tech-context-economy (last updated 2026-10-24)