inject

Installation
SKILL.md

DEPRECATED (removal target: v3.0.0) — Use ao lookup --query "topic" for on-demand learnings retrieval, or see .agents/AGENTS.md for knowledge navigation. This skill and the ao inject CLI command still work but are no longer called from hooks or other skills.

Inject Skill

On-demand knowledge retrieval. Not run automatically at startup (since ag-8km).

Inject relevant prior knowledge into the current session.

How It Works

In the default manual startup mode, MEMORY.md is auto-loaded by Claude Code and no startup injection occurs. Use /inject or ao inject for on-demand retrieval when you need deeper context.

In lean or legacy startup modes (set via AGENTOPS_STARTUP_CONTEXT_MODE), the SessionStart hook runs:

# lean mode (MEMORY.md fresh): 400 tokens
ao inject --apply-decay --format markdown --max-tokens 400 \
  [--bead <bead-id>] [--predecessor <handoff-path>]
Installs
1
First Seen
Mar 23, 2026
inject from smithery.ai