inject

Solid

Inject relevant knowledge into session context from .agents/ artifacts. Triggers: "inject knowledge", "recall context", SessionStart hook.

AI & Automation 458 stars 44 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 91/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> **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. Treat `$inject` as passive context loading, not as a task-planning or task-execution entrypoint. ## How It Works In the default `manual` startup mode, MEMORY.md is auto-loaded by Codex 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: ```bash # lean mode (MEMORY.md fresh): 400 tokens ao inject --apply-decay --format markdown --max-tokens 400 \ [--bead <bead-id>] [--predecessor <handoff-path>] # legacy mode: 800 tokens ao inject --apply-decay --format markdown --max-tokens 800 \ [--bead <bead-id>] [--predecessor <handoff-path>] ``` This searches for relevant knowledge and injects it into context. ### Work-Scoped Injection When `--bead` is provided (via `HOOK_BEAD` env var from Gas Town): - Learnings tagged with the same bead ID get a 1.5x score boost - Learnings matching bead labels get a 1.2x boost - Untagged learnings still appear but ranked lower ### Predecessor Context...

Details

Author
boshu2
Repository
boshu2/agentops
Created
1 years ago
Last Updated
5 days ago
Language
Go
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

context-injection

Place trusted contextual information into prompts or agent state using explicit boundaries, provenance, and templates. Use when relevant context has already been selected and must be inserted safely; use context-retrieval to find it or context-optimization to choose and order it.

261 Updated 3 months ago
seb1n
AI & Automation Solid

reflection-injection

Inject relevant past reflections into agent context at iteration start so agents learn from prior mistakes without repeating them

233 Updated yesterday
jmagly
AI & Automation Listed

context-injector

Persistent context management skill that ends the 'let me explain again' tax. Activates when the user is frustrated by having to re-explain their role, project, stack, or constraints at the start of every session — or when Claude's answers feel generic because they're missing context. Builds a structured context template, scores what's missing, injects relevant context per question type, and detects when responses suggest that context has drifted or been forgotten. Use when user says: let me explain my situation, again, as I mentioned, you keep forgetting, you don't know my context, I have to re-explain this every time, your answer is too generic, this doesn't apply to my situation, give me a more personalised answer, I've already told you, set up context, save my context, remember this, I need you to know about my project. Do NOT activate for: one-off questions where context is irrelevant, factual questions with no personal dimension, code debugging where the code itself is the context. First response: "Cont

3 Updated 3 months ago
Sandeeprdy1729