lazy-agent-loader

Load agent summaries first and fetch full definitions on demand.

24|3|Updated Nov 25, 2025
One-click install
npx skills add https://github.com/nguyenthienthanh/aura-frog --skill lazy-agent-loader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lazy-agent-loader
Source: https://github.com/nguyenthienthanh/aura-frog/tree/main/aura-frog/skills/lazy-agent-loader
Command: npx skills add https://github.com/nguyenthienthanh/aura-frog --skill lazy-agent-loader

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduce context usage by loading agent summaries first and full definitions only when needed.

Core Features & Use Cases

  • Summary-first agent index
  • On-demand loading for primary agents
  • Session-level caching of loaded agents

Quick Start

Detect an on-demand agent request and load only its summary, then fetch full details if selected.

Frequently Asked Questions about lazy-agent-loader

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

FAQPage Schema
How do I reduce token usage when selecting from multiple agents?

Load agent summaries first and fetch full definitions only for selected agents. This lazy-loading approach keeps context lean during agent selection, loading complete agent data on-demand to minimize token consumption in agent workflows.

What's the best way to manage agent definitions in large agent selection workflows?

Use a summary-first index paired with on-demand loading of full definitions. Load agent metadata initially, then retrieve complete definitions only when an agent is chosen as primary, reducing unnecessary context overhead.

Can I cache loaded agents during a session to avoid reloading?

Yes. Session-level caching stores loaded agent definitions in memory, eliminating duplicate fetches within a single session. A force-reload capability lets you refresh cached agents when needed.

How do I structure agent files for on-demand loading?

Store full agent definitions in separate files using the pattern agents/[agent-id].md. A metadata index points to these files, enabling the loader to fetch definitions only when a specific agent is selected.

When should I use on-demand agent loading instead of loading all agents upfront?

Use on-demand loading when you have many agents but only evaluate a subset during each workflow run. This threshold-based approach saves tokens by deferring full-definition retrieval until an agent becomes a candidate.