Skip to content
Back to skills

Context

ASecurity

Read-only breakdown of what fills the current conversation's context window: fixed overhead (system prompt, tool definitions, rules, skills list), SessionStart context, compaction summary, user messages, model text and thinking, tool arguments and outputs per tool, agent/task messages, live hook hints, top 10 biggest items, and tips to save space. Use when the user asks (/context, «что занимает контекст», «почему контекст переполнен»), and on your own when speed/context hints warn (~200k / ~4...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongobash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add stxrmik/antigravity-plus --skill context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stxrmik-context/badge)](https://www.skillsdirectory.com/skills/stxrmik-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context
description: >-
  Read-only breakdown of what fills the current conversation's context window: fixed overhead (system prompt, tool
  definitions, rules, skills list), SessionStart context, compaction summary, user messages, model text and thinking,
  tool arguments and outputs per tool, agent/task messages, live hook hints, top 10 biggest items, and tips to save
  space. Use when the user asks (/context, «что занимает контекст», «почему контекст переполнен»), and on your own
  when speed/context hints warn (~200k / ~440k on Gemini 4, ~150k / ~220k on 3.x) to find what is bloating the context.
---

# /context — what fills the context window

> **On your own:** read-only — run it when `<context_budget>` warns (~200k / ~440k tokens on Gemini 4, ~150k / ~220k on 3.x) so you act on what actually fills the context instead of guessing.

The script [context.py](scripts/context.py) reads the conversation's transcript since the last compaction (`CHECKPOINT`), counts hook hints the way Antigravity keeps them (since 2.32 every injected systemMessage stays until the next compaction; old ephemeral messages lasted one step), calibrates estimates against the last `PLANNER_RESPONSE` token count (`input_tokens + cache_read_tokens`), and breaks everything down by category.

## Steps

1. **Pick the target:**
   - Default → the current conversation (`--conversation <conversation-id>` from your system context, also the `<id>` segment of your artifact directory path).
   - Another project's latest session → `--workspace "<workspace-root>"` (or an explicit `--transcript <path>`).

2. **Run it** (read-only; sandboxed first):
   ```bash
   python3 "<skill_dir>/scripts/context.py" --conversation <conversation-id>
   ```
   Optional flags: `--workspace "<ws>"`, `--model <id>`, `--json`.
   If the sandbox blocks reading `~/.gemini/`, re-run the **same** command with `BypassSandbox: true`.

3. **Present or act on the result:**
   - When the user asked `/context`: paste the category table, top 10 items, and tips (or summarize them faithfully in the user's language without altering numbers).
   - When running on your own: target the biggest drivers shown in the report — switch whole-file reads to `read_file` with `StartLine`/`EndLine`, trim long command output (`| tail`, `| grep`), delegate broad searches to `explorer`, or suggest `/handoff` if near the compaction threshold.

Files in this skill

  • SKILL.md2.4 KB
  • scripts/context.py33.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.