Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By sdi2200262v2.3.2MITIn 1 marketplace
Shows how much of the context window your agent has used and injects reminders at thresholds you set. A hook runs before every tool call and needs jq and Bash 3.2 or later.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
context-window, token-usage, context-management, reminders, hooks, thresholds, claude-code
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Context awareness informs your agent how much of the context window it has used and injects reminders into the conversation when usage crosses thresholds you choose. It supports Claude Code and Codex, and requires Bash 3.2 or later and jq.
Install the plugin in each assistant you use. Each install adds the
get-my-context skill and a reminder hook from the same marketplace.
Run in Claude Code and choose user-wide or project scope when installing:
/plugin marketplace add sdi2200262/context-awareness-for-agents
/plugin install context-awareness@context-awareness-for-agents
Run in a terminal:
codex plugin marketplace add sdi2200262/context-awareness-for-agents
codex plugin add context-awareness@context-awareness-for-agents
Start a new Codex session after installation and trust the plugin's hook in
/hooks to enable reminders.
Codex also needs permission to run the skill's shell command.
Ask your agent “Pace your work according to how much context you have used” or
“Check your context usage periodically.” You can also invoke get-my-context
directly.
Reminders can be useful for triggering workflow steps depending on context usage. For example, have your agent save progress in memory at one threshold and prepare a handoff for a new conversation at another.
Readings come from the latest usage your assistant has recorded; they may lag behind the conversation's latest API calls. Skills and hook reminders include percentages, token counts, the capacity model preset, the recorded model and the config path for correcting a mismatch.
By default the plugin injects a reminder into the conversation at 70% of these capacities.
| Assistant | Default model | Usable context window |
|---|---|---|
| Claude Code | Opus 5.5 | About 967,000 tokens from a 1M window |
| Codex | GPT-6.2 Sol | 475,000 tokens from a 500k window |
To keep the skill and turn reminders off, use a config.json containing:
{"hooks": false}
An empty "thresholds": [] has the same effect. Hooks then skip session
reads and keep their reminder state.
Changes apply on the next tool call. Each assistant keeps separate settings and reminder state.
Claude's capacity follows its compaction threshold; Codex's follows its usable window, with compaction occurring earlier.
Choose a capacity matching your setup for the plugin's percentages and reminders.
Codex keeps its selected capacity when you switch models; for a configured 272k
window, select assistant_limit = codex-272k in capacity.conf.
The installed plugin loads configuration files directly for capacity, with model presets, assistant limits and comments:
The shared src/config.default.json handles the context threshold reminders,
messages and repeat behavior. config.json takes these fields:
| Field | Values |
|---|---|
hooks | false turns reminders off. Omitted means on. |
thresholds | A list of percent, a unique level and a message. Messages can use {percentage}, {remaining} and {session_id}. |
repeat_mode | once_per_tier sends each level once per session. once_per_tier_reset_on_compaction, the default, sends it again after compaction or after usage drops below it. every_turn sends it on every tool call at or above it. |
flag_dir | Absolute directory for reminder state. The default is /tmp. |
Edit the bundled files in the installed plugin to change its defaults. A plugin update can replace your edits.
To keep settings across updates, save your own capacity.conf or
config.json in the user directory. For one project, save it in the project
directory instead:
| Scope | Claude Code | Codex |
|---|---|---|
| All projects | ${CLAUDE_CONFIG_DIR:-~/.claude}/context-awareness/ | ${CODEX_HOME:-~/.codex}/context-awareness/ |
| One project | .claude/context-awareness/ | .codex/context-awareness/ |
Claude resolves project settings from CLAUDE_PROJECT_DIR, the session's
starting project root. Codex searches from the working directory up to the
nearest Git root for .codex/context-awareness/.
Each file is selected on its own: a path in CONTEXT_CAPACITY_CONFIG or
CONTEXT_THRESHOLDS_CONFIG, then the project file, then the user file, then
the bundled file. The selected file replaces the others whole, so you should
include every setting you need.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub sdi2200262/context-awareness-for-agents --plugin context-awarenessPlugins from other owners that cover similar ground