inject

Inject prior knowledge from .agents artifacts into session context at SessionStart.

418|40|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/boshu2/agentops --skill inject
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inject
Source: https://github.com/boshu2/agentops/tree/main/skills/inject
Command: npx skills add https://github.com/boshu2/agentops --skill inject

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inject prior knowledge into the current session context from .agents artifacts.

Core Features & Use Cases

  • Automatically inject relevant learnings, patterns, and research into the active session to improve recall and decision quality.
  • Works with the SessionStart hook to enrich context without manual prompts.
  • Supports manual invocation via the ao CLI to fetch topic-relevant knowledge for a given session.

Quick Start

The Skill runs automatically on SessionStart to inject relevant knowledge from the .agents/ artifacts into the session context. To invoke manually, run ao inject --apply-decay --format markdown --max-tokens 1000. You can also query with /inject <topic> to fetch relevant knowledge.

Frequently Asked Questions about inject

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically inject prior knowledge into my agent session context?

You can inject prior knowledge into session context automatically by using the SessionStart hook, which loads relevant artifacts from .agents directories to enrich recall, planning, and decision-making without manual prompts.

How does decay-aware injection work for agent memory patterns?

Decay-aware injection works by applying the ao inject command with the --apply-decay flag, fetching topic-relevant knowledge from .agents artifacts while respecting a maximum token limit to manage context window size.

Can I manually fetch topic-relevant research for a specific session?

Yes, you can manually fetch topic-relevant research by running the ao inject command or by querying with /inject followed by your topic to retrieve specific knowledge artifacts into the active session.

What is the best way to load session context from .agents artifacts without manual prompts?

The best way to load session context automatically is configuring the SessionStart hook to load .agents artifacts, which enriches the active session with prior learnings and patterns for context-aware decisions.

Are there token limits when injecting prior knowledge into the session context?

Yes, when injecting prior knowledge via the ao CLI, you can specify a token limit using the --max-tokens flag, such as 1000, to control the volume of injected markdown context and prevent overflow.