context-hooks

context-hooks is a command for Claude Code from aws/agent-toolkit-for-aws. It costs 17 tokens per session (167 once invoked), scanned A, original, Apache-2.0.

Commands for viewing or changing AWS Context hook settings, including prompt guidance and session feedback traces. AWS Context is the source toolkit named by the add-on.

In plain words
What is it for?
It is for checking settings, turning prompt steering modes on or off, and enabling or disabling session feedback.
Why use it?
It provides one place to inspect or change these settings instead of editing configuration by hand.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aws-context plugin — 1 skill, 2 commands, 2 hooks shipped together

Good fit It is for checking settings, turning prompt steering modes on or off, and enabling or disabling session feedback.

Compare 6 commands from other repositories ↓
About the project

Agent Toolkit for AWS is a collection of AWS-supported MCP servers, skills, plugins, commands, and hooks that help AI coding agents build, deploy, and manage applications on AWS. It is used by developers working with AWS services through agents such as Claude Code, Codex, Cursor, and Kiro. The catalogue entries are the toolkit's own agent extensions for AWS development and operations.

aws/agent-toolkit-for-aws · 3,609 stars · on GitHub

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add aws/agent-toolkit-for-aws
Claude Code
/plugin install aws-context

Made for: Claude Code.

Or install aws-context, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-hooks

README.md
[![agentmods](https://agentmods.dev/badge/commands/aws/agent-toolkit-for-aws/context-hooks/github.svg)](https://agentmods.dev/commands/aws/agent-toolkit-for-aws/context-hooks)
Your own site
<a href="https://agentmods.dev/commands/aws/agent-toolkit-for-aws/context-hooks"><img src="https://agentmods.dev/badge/commands/aws/agent-toolkit-for-aws/context-hooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-hooks

Your own site · 80×15
<a href="https://agentmods.dev/commands/aws/agent-toolkit-for-aws/context-hooks"><img src="https://agentmods.dev/badge/commands/aws/agent-toolkit-for-aws/context-hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00167
Opus 5.5 $0.00007 $0.00067
Sonnet 5.5 $0.00003 $0.00033
Haiku 4.5 $0.00002 $0.00017

Measured 3d ago against content hash ff1f479045fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-hooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aws-context/commands/context-hooks.md · 17 lines

What it actually says

The user wants to see or change the AWS Context hook settings. They typed this themselves. Do not argue for any setting.

Read ${CLAUDE_PLUGIN_ROOT}/skills/aws-context/references/hooks.md (the hooks.md reference of this plugin's aws-context skill) and act on $ARGUMENTS:

  • Empty or status: show the current settings and what each one does.
  • steering off|hint|search: set the steering mode.
  • feedback on|off: turn session traces on or off.

Follow the steps in its "Changing a setting" section.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 17 lines · 17 tokens per session scan A ff1f479045fc

Subscribe to this mod's changes

context-hooks is a command published in the GitHub repository aws/agent-toolkit-for-aws (3,609 stars, last pushed today), licensed Apache-2.0. It adds 17 tokens to every session and 167 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

context-hooks compared with commands from other repositories

context-hooks next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-hooksaws/agent-toolkit-for-awsCommand3.6ktodayApache-2.0A17Claude Code
cancel-ralphanthropics/claude-plugins-officialCommand49kyesterdayApache-2.0A4Claude Code
wsdanielmiessler/LifeOSCommand20k11d agoMITA0Claude Code
engage.actionshypnguyen1209/offensive-claudeCommand4301mo agoMITA11Claude Code
promote-lessonskumaran-is/claude-code-onboardingCommand37todayMITA25Claude Code
rao92265/claude-code-playbookCommand1313d agoMITA12Claude Code
focusData-Wise/claude-pluginsCommand711d agoMITA0Claude Code