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

Get My Context

skill-sdi2200262-cc-get-my-context-get-my-context · by sdi2200262

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.

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

Install

$ agentstack add skill-sdi2200262-cc-get-my-context-get-my-context

✓ 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-sdi2200262-cc-get-my-context-get-my-context)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo 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 Get My Context? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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" ``

  1. 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.

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.