agent-aware
v1.0.0
Published
One command to make your Claude Code agents self-aware. Installs the meta-principle protocol + two skills.
Maintainers
Readme
agent-aware
One command to make your Claude Code agents self-aware.
npx agent-awareThat's it.
What it does
Installs two skills to ~/.claude/skills/ and injects the self-awareness protocol into your CLAUDE.md.
The Meta-Principle:
An agent that understands its own token budget is an agent that never gets stuck.
Instead of running into context limits unexpectedly, it:
- Estimates before starting
- Checkpoints proactively
- Spawns subagents when the task is too large
- Reports progress in terms humans can understand: "I'm at 60% context, 40% task complete, spawning 2 subagents for the remaining work"
This is what separates agents that can run autonomously for hours from agents that silently degrade and fail.
Skills installed
/agent-self-awareness
The operational implementation of the meta-principle.
- Self-inventory (4 questions before any task)
- Tool capability table
- Token budget routing table
- Delegation rules (when to subagent vs do yourself)
- 3 verification levels (self / independent / adversarial)
- Assumption audit checklist
- Self-check loop (every ~15 tool calls)
- When to stop and ask the human
/agent-orchestration-guide
Complete reference for parallel execution in Claude Code.
- Quick pick table (7 primitives: Subagent, Fork, Workflow, /batch, Agent View, Teams, Routine)
- What subagents inherit vs don't
- All 17 subagent frontmatter fields
- How to steer a running subagent mid-task
- How to read subagent JSONL transcripts
- 5 swarm patterns with full code (fan-out, pipeline, adversarial verify, loop-until-dry, budget-aware)
- Hard limits table
/claude-power
The native capabilities most people never discover.
/fork— full parent context in a worker (most underused command)- Subagent definition files with all 17 frontmatter fields
- Model routing — haiku for search, opus for architecture (stop wasting tokens)
- Effort levels — extended thinking control (low / high / xhigh / max)
- Permission modes — stop clicking "yes" on every edit
- Background agents + fire-and-forget with
initialPrompt - Worktrees — isolated parallel builds,
.worktreeincludefor secrets - Session resume — pick up any session days later
- Hooks — run code on PreToolUse, PostToolUse, SubagentStart, SubagentStop, Stop
- Memory system — user / project / local persistence scopes
- Routines — scheduled agents, no human trigger needed
- /batch — mechanical multi-file refactors
- Agent View — coordinate multiple sessions
- Reading subagent JSONL transcripts live
- MCP servers scoped to specific agents
- ScheduleWakeup — self-pacing loops with cache-aware delays
- SendMessage — steer a running agent mid-task
- Computer use — screen control, mouse, keyboard
- The settings file — full control surface
- The 5-level CLAUDE.md hierarchy
Usage
# Install in the current project
cd your-project
npx agent-awareAfter running:
~/.claude/skills/agent-self-awareness/— available in all Claude Code sessions on this machine~/.claude/skills/agent-orchestration-guide/— sameCLAUDE.md— the self-awareness protocol block injected (or created)
Then in any Claude Code session:
/agent-self-awareness
/agent-orchestration-guideWhat gets added to CLAUDE.md
A self-contained block with the meta-principle, token budget routing table, self-check loop, and assumption audit. Idempotent — running npx agent-aware again won't duplicate it.
License
MIT — Walid Boulanouar / AY Automate
