Expose all agent templates in the web interface#777
Open
ANierbeck wants to merge 3 commits intoRightNow-AI:mainfrom
Open
Expose all agent templates in the web interface#777ANierbeck wants to merge 3 commits intoRightNow-AI:mainfrom
ANierbeck wants to merge 3 commits intoRightNow-AI:mainfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
agents.jsto fetch templates dynamically from/api/templatesroutes.rsto include category information for templatesindex_body.htmlshowDetailmethod for agent configuration▄
Testing
cargo clippy --workspace --all-targets -- -D warningspassescargo test --workspacepassesSecurity