# Get My Context

> Reports the current Claude Code context window usage. Use when the user asks how full your context is, how much room is left, or whether to compact — and use proactively before starting a long-horizon task (multi-file refactor, extended debugging, multi-step plan) to decide pacing. Returns used percentage, remaining percentage, token counts, and active model.

- **Type:** Skill
- **Install:** `agentstack add skill-sdi2200262-cc-get-my-context-get-my-context`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sdi2200262](https://agentstack.voostack.com/s/sdi2200262)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sdi2200262](https://github.com/sdi2200262)
- **Source:** https://github.com/sdi2200262/cc-get-my-context/tree/main/plugins/get-my-context/skills/get-my-context

## Install

```sh
agentstack add skill-sdi2200262-cc-get-my-context-get-my-context
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Current context window status

!`bash "${CLAUDE_SKILL_DIR}/get-context.sh" "${CLAUDE_SESSION_ID}"`

Treat the line above as ground truth for this session. Report it directly when asked, or use it to decide whether to start new work, wrap up, or suggest `/compact`. Do not estimate or hedge.

## If the reading looks miscalibrated, fix it for the user

The script defaults to a 200,000-token window because plan info isn't exposed to skills. If the active model is a 1M-context variant (model id ends in `[1m]`, or the user has stated they're on Max/Team/Enterprise with Opus, or any other 1M-eligible setup), the reading will be ~5× too high.

**Your job is to detect this and fix it for the user, not to make them do it.**

When you detect a mismatch:

1. Recompute the percentage against 1M and report the corrected number for this turn (e.g. "the script reads 50% on a 200k denominator, but you're on a 1M model — actual usage is ~10%").
2. Tell the user you can save the calibration so future invocations are correct without recomputing, and ask for confirmation.
3. On confirmation, run:
   ```bash
   echo 1000000 > "${CLAUDE_SKILL_DIR}/window.conf"
   ```
4. Future invocations will read this file and report against 1M directly.

Detection signals (any one is enough; the first is usually the strongest):
- **Your own system prompt** tells you which model variant you are running. If it identifies you as Opus 4.7/4.6 1M context or Sonnet 4.6 1M context, the script's 200k default is wrong — you are on 1M. (The transcript only records the bare model id like `claude-opus-4-7`, no `[1m]` suffix, even when 1M is active via Max/Team/Enterprise auto-upgrade — so the script can't see this, but you can.)
- The model id in the script output literally ends in `[1m]` (Pro/API explicit-suffix case).
- The user has stated their plan in this conversation (e.g. "I'm on Max", "Opus 1M").
- A previous turn established the plan and you remember it from context.

**Do not write `window.conf` preemptively.** Only after the user confirms. The 200k default is correct for API users, Pro without `[1m]`, and any model with no 1M variant — so don't assume 1M without a positive signal.

## Source & license

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

- **Author:** [sdi2200262](https://github.com/sdi2200262)
- **Source:** [sdi2200262/cc-get-my-context](https://github.com/sdi2200262/cc-get-my-context)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sdi2200262-cc-get-my-context-get-my-context
- Seller: https://agentstack.voostack.com/s/sdi2200262
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
