feat: Add skills_dirs config for self-hosted worker skill discovery#51
Open
feat: Add skills_dirs config for self-hosted worker skill discovery#51
Conversation
Add support for self-hosted workers to report locally available skills to the server, so they appear in the webapp's agent selector dropdown. Changes: - Add skills_dirs field to FileConfig (list of directories to scan) - Add WorkerSkill struct with name, description, path, and base_prompt - Add worker_skills WebSocket message type - New skills.go: scans directories for SKILL.md files, parses YAML frontmatter and body content - Worker sends worker_skills message on each WebSocket connect - Wire skills_dirs through main.go mergeConfig - Add skillsDirs to Helm chart values and ConfigMap template - Tests for config parsing, frontmatter extraction, directory scanning Co-Authored-By: Oz <oz-agent@warp.dev>
Member
Author
|
Regardless of some nuance with how these skills are applied on warp-server, I'm pretty confident in this flexible approach on the worker. |
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
Add support for self-hosted workers to discover and report locally available skills to the server via a new
worker_skillsWebSocket message, so they appear in the Oz webapp's agent selector dropdown for users with access to the worker.Problem
Self-hosted workers don't use Warp environments, so the webapp can't auto-populate the skills dropdown. The only workaround was pasting skill paths into the prompt, which is unsustainable for enterprises.
Solution
Config
Add a top-level
skills_dirsfield to the worker YAML config — a list of filesystem directories containing skill folders:Each directory should contain subdirectories with a
SKILL.mdfile following the standard skill folder convention (<dir>/skill-name/SKILL.md).Protocol
On each WebSocket connect, the worker:
SKILL.mdfilesworker_skillsmessage to the server with the full skill metadata{ "type": "worker_skills", "data": { "skills": [ { "name": "code-review", "description": "Review code changes for bugs and style issues", "path": "/opt/skills/code-review/SKILL.md", "base_prompt": "You are a code reviewer. Review the diff for..." } ] } }Helm Chart
worker.skillsDirsadded tovalues.yamland rendered in the ConfigMap template.Files Changed
internal/config/config.go— AddSkillsDirstoFileConfiginternal/types/messages.go— AddWorkerSkill,WorkerSkillsMessage,MessageTypeWorkerSkillsinternal/worker/skills.go(new) — Directory scanning and SKILL.md parsinginternal/worker/worker.go— Sendworker_skillson connectmain.go— Wireskills_dirsthroughmergeConfigcharts/oz-agent-worker/— Helm chart supportTesting
skills_dirsCompanion PR
Server-side changes: warpdotdev/warp-server#10385
Oz conversation | Plan
Co-Authored-By: Oz oz-agent@warp.dev