Skip to content

Expose all agent templates in the web interface#777

Open
ANierbeck wants to merge 3 commits intoRightNow-AI:mainfrom
ANierbeck:main
Open

Expose all agent templates in the web interface#777
ANierbeck wants to merge 3 commits intoRightNow-AI:mainfrom
ANierbeck:main

Conversation

@ANierbeck
Copy link

Summary

Expose all agent templates in the web interface, replacing the hardcoded list of 6 templates with all 30+ available templates. Static templates are displayed above dynamic ones for better UX.

Changes

  • Modified agents.js to fetch templates dynamically from /api/templates
  • Updated routes.rs to include category information for templates
  • Added loading/error states in index_body.html
  • Fixed showDetail method for agent configuration
  • Combined static and dynamic templates with static templates prioritized

Testing

  • cargo clippy --workspace --all-targets -- -D warnings passes
  • cargo test --workspace passes
  • Live integration tested (if applicable)

Security

  • No new unsafe code
  • No secrets or API keys in diff
  • User input validated at boundaries

anierbeck added 3 commits March 21, 2026 12:14
- Modified agents.js to fetch templates dynamically from /api/templates endpoint
- Updated API endpoint to include category information for templates
- Added category mapping logic for proper template categorization
- Updated HTML template to handle loading and error states
- Implemented fallback to hardcoded templates if API fails

This change replaces the hardcoded list of 6 templates with all 32 available
agent templates from the agents/ directory, making the web interface more
dynamic and maintainable.
- Replace hardcoded list of 6 templates with all 30+ available templates
- Add category information to templates
- Combine static and dynamic templates with static templates displayed first
- Add loading and error states for template list
- Fix showDetail method for agent configuration
- Ensure all templates have manifest_toml field
- Use spawnFromTemplate for templates with manifest_toml
- Fix spawnBuiltin to handle missing fields gracefully
- Update HTML template to call correct spawn method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant