Skip to content

fix(agents): skip non-agent markdown files instead of aborting#956

Merged
acreeger merged 1 commit intomainfrom
fix/agent-loader-skip-non-agent-md
Mar 21, 2026
Merged

fix(agents): skip non-agent markdown files instead of aborting#956
acreeger merged 1 commit intomainfrom
fix/agent-loader-skip-non-agent-md

Conversation

@acreeger
Copy link
Copy Markdown
Collaborator

Summary

  • AgentManager.loadAgents() globs *.md which picks up CLAUDE.md and other documentation files, causing il spin to fail with "Missing opening frontmatter delimiter"
  • Always exclude CLAUDE.md and agents.md from the glob with case-insensitive matching
  • Warn and skip unparseable files instead of throwing, so one bad file doesn't prevent all agents from loading

Test plan

  • Run il spin — agents should load without the CLAUDE.md error
  • All 47 AgentManager tests pass

AgentManager.loadAgents() globs *.md which picks up CLAUDE.md and
other documentation files. Two fixes:

1. Always exclude CLAUDE.md and agents.md from the glob with
   case-insensitive matching
2. Warn and skip unparseable files instead of throwing, so one bad
   file doesn't prevent all agents from loading
@acreeger acreeger merged commit 6944bbf into main Mar 21, 2026
4 checks passed
@acreeger acreeger deleted the fix/agent-loader-skip-non-agent-md branch March 21, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant