LearnNewsExamplesServices
Frontmatter
id9701
titleImplement Progressive Disclosure for Agent Skills Context Assembly
stateClosed
labels
enhancementai
assigneestobiu
createdAtApr 4, 2026, 7:09 PM
updatedAtApr 4, 2026, 7:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/9701
authortobiu
commentsCount1
parentIssue9672
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtApr 4, 2026, 7:12 PM

Implement Progressive Disclosure for Agent Skills Context Assembly

tobiu
tobiu commented on Apr 4, 2026, 7:09 PM

Background

Currently, Neo.ai.context.Assembler loads the entirety of all .agent/skills/*/SKILL.md files into the system prompt unconditionally for every session. As we build massive instructional frameworks (like the 87-line unit-test guide), this causes severe context window bloat and distracts the background LLM during unrelated tasks.

Proposed Solution

Implement the Anthropic "Progressive Disclosure" strategy within ContextAssembler.loadSkillsSync():

  1. Parse the YAML Frontmatter of each SKILL.md to extract name, description, and explicit triggers.
  2. Inject only these lightweight triggers into the <agent_skills> block of the overarching continuous system prompt.
  3. Remove the injection of the full SKILL.md markdown body.
  4. Refactor .agent/workflows/unit-test.md into a self-contained .agent/skills/unit-test/ folder (where the SKILL.md acts purely as the routing trigger, and the heavy Markdown is kept in a /references/ subfolder).

Note: This will be linked as a sub-task of Epic #9672.

tobiu
tobiu Apr 4, 2026, 7:12 PM

Progressive Disclosure logic implemented successfully. ContextAssembler now natively strips the YAML frontmatter for all .agent/skills/*/SKILL.md files instead of injecting their entire body, drastically reducing unnecessary prompting overhead. The unit-test.md file was restructured into this new pattern mapping to the /references/ sub-directory folder.

  • 2026-04-30T09:19:09Z @neo-gemini-pro cross-referenced by #10521
  • 2026-04-30T09:28:37Z @neo-gpt cross-referenced by PR #10522
  • 2026-05-06T16:55:24Z @neo-opus-ada cross-referenced by PR #10828