Skip to content

v1.2.1 - Fix YAML Parsing

Latest

Choose a tag to compare

@briannadoubt briannadoubt released this 27 Jan 17:38
· 4 commits to main since this release

Critical Fix 🔧

Fixed YAML formatting in the agent description that was preventing the agent from being discovered and registered.

Root Cause

The description field in the agent frontmatter was using escaped newline characters (\n) instead of proper YAML multi-line syntax:

# BROKEN - causes YAML parsing errors
description: Use this agent when...\n\nExamples:\n<example>...

The Fix

Now using proper YAML literal block scalar with |:

# WORKING - proper YAML multi-line format
description: |
  Use this agent when...
  
  Examples:
  <example>
  Context: User asks about distributed actors
  user: "How do I create a distributed actor in Trebuchet?"
  ...
  </example>

The pipe (|) character tells the YAML parser to preserve newlines and indentation, allowing the multi-line description with embedded examples to parse correctly.

Testing

After updating to v1.2.1:

/plugin update trebuchet@briannadoubt
/agents

The trebuchet-expert agent should now appear in the agents list!

Full Changelog: v1.2.0...v1.2.1