agentleFS
Ericcccccc777Ericcccccc777/CCC-MAGI/skills/offload/SKILL.md

offload

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Spawn a fresh-context subagent to complete a discrete sub-task and return a 1-2K summary. Use when budget pressure (~75%) makes finishing the current sub-task in the main thread risky, but you don't need full session handoff yet.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before invoking, you (the AI) write a tight sub-task prompt:

    line 41
  2. Distinctive:

    Ask the user to confirm the scope before invoking (in CEO's locale):

    line 60
  3. Distinctive:

    Use the Task tool with:

    line 86
  4. Very specific:

    Auto-invoke: if the user explicitly said /offload <task> (clear intent)

    line 127
  5. Distinctive:

    Ask first: if budget-monitor 75% menu fired and you're proposing offload — show the Step 1 scope plan

    line 128

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/offload

Subagent isolation as a budget-pressure release valve. Instead of forcing a full session handoff at 75%, you spawn an isolated-context subagent that does a discrete sub-task and returns just its summary. The main thread context grows by ~1-2K tokens instead of by the sub-task's full execution trace.

When this is the right answer

  • Context is ~70-85% and a clean sub-task is next (refactor a file, write a set of tests, search for a pattern across the codebase, generate a script)
  • The sub-task has clear inputs and clear outputs — easily described in ≤300 chars
  • You don't need ongoing dialogue with the user inside the sub-task

When this is NOT the right answer

  • Context >95% → use /handoff instead (offload only delays the inevitable)
  • Sub-task requires user judgment partway through → can't be isolated
  • Sub-task is "improve the whole codebase" → too vague; subagent will burn budget without a clear stop condition
  • The work would only cost ~1K tokens anyway → just do it inline

How it works

You invoke the Task tool with a carefully-scoped prompt. The subagent runs in its own 200K context window, returns a single message back. From the main thread's perspective, the cost is:

  • ~500 tokens of subagent prompt
  • ~500-2000 tokens of subagent return summary

Total main-thread overhead: typically 1-3K tokens vs. the 10-30K the task would have cost inline.

Step 1 — Scope the sub-task

Before invoking, you (the AI) write a tight sub-task prompt:

Task: <one-sentence description>

Inputs:
- <relevant file paths>
- <constraints>

Outputs:
- <what the subagent should return>
- <format expectations>

Constraints:
- Stay focused on this sub-task only
- Don't open Explore agents recursively
- Report in ≤500 words

Ask the user to confirm the scope before invoking (in CEO's locale):

─── Offload Plan ─────────────────────────────────

  Sub-task: <description>
  
  Inputs:
    - <list>
  
  Subagent will return:
    - <list>
  
  Expected main-thread overhead: ~1-3K tokens
  Subagent type: general-purpose

Confirm?
  [1] Spawn subagent
  [2] Edit scope
  [3] Cancel (do task inline instead)

Step 2 — Invoke

On [1]:

Use the Task tool with:

  • subagent_type: "general-purpose" (default) OR a specific type if the project has one matching the sub-task (e.g., test-fixer for test work, backend-reviewer for backend audits)
  • A self-contained prompt that gives the subagent enough context — it CANNOT see your conversation history
  • description short summary (3-5 words)

CRITICAL: the prompt must be self-contained. The subagent has no access to:

  • Conversation history
  • TodoWrite state
  • Open files in your main session

So bake in: file paths to read, the specific objective, the success criteria, and any project conventions the subagent needs to know.

Step 3 — Report back to CEO

Once the subagent returns, summarize in CEO's locale:

✓ Offload complete

  Sub-task: <description>
  Subagent verdict: <PASS / CONCERNS / FAIL>
  
  Summary:
    <subagent's return summary, paraphrased to ≤200 chars>
  
  Files modified by subagent:
    <list, or "none">
  
  Main thread overhead: ~<N>K tokens
  
  Next: continue with <next planned action>

Trust contract

  • This skill spawns ONE subagent. Multiple offloads in a single turn defeat the purpose.
  • The subagent runs without user oversight — only invoke when the scope is clear-cut and the risk is bounded.
  • Subagent failures (subagent returns "couldn't do X") are surfaced to CEO; you don't silently retry.

When you should auto-invoke vs. ask the CEO

  • Auto-invoke if the user explicitly said /offload <task> (clear intent)
  • Ask first if budget-monitor 75% menu fired and you're proposing offload — show the Step 1 scope plan
  • Don't auto-invoke mid-task without budget pressure — that's just using a subagent for no reason

Completion criteria

  • Subagent invoked, returned a result, user has seen the Step 3 summary, OR
  • Subagent failed or was cancelled at Step 1; control returned to main thread; alternative plan stated

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.