feat: add runtime_type to agents + Hermes multi-agent profile provisioning#550
Merged
feat: add runtime_type to agents + Hermes multi-agent profile provisioning#550
Conversation
Support creating agents with an explicit runtime type (hermes, openclaw, claude, codex, custom). When creating a Hermes agent, automatically provisions a profile directory at ~/.hermes/profiles/<name>/ with config.yaml and SOUL.md — ready for Hermes multi-profile support. - DB migration 049: add runtime_type column to agents table - Validation: add runtime_type enum to createAgentSchema - Agent creation UI: runtime type dropdown (Auto-detect, Hermes, OpenClaw, Claude Code, Codex CLI, Custom) - Agent card: shows runtime type badge - POST /api/agents: provisions ~/.hermes/profiles/<name>/ for hermes type - i18n keys for runtime type labels (10 locales)
📸 Screenshot Drift CheckThis PR modifies UI source files. Please verify whether the README screenshots need refreshing:
Changed UI filesSee This comment is posted automatically and can be dismissed if no visual changes occurred. |
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
Adds runtime type tracking to agents and automatic Hermes profile provisioning for multi-agent support.
What changed
Agent runtime type — agents can now be tagged with their runtime (
hermes,openclaw,claude,codex,custom):runtime_typecolumn in agents table (migration 049)Hermes profile provisioning — when creating a Hermes agent, MC automatically creates a profile directory at
~/.hermes/profiles/<agent-name>/with:config.yaml— model + provider + toolsets from agent configSOUL.md— personality from soul_content fieldThis prepares for Hermes's native
--profileflag (documented at hermes-agent.nousresearch.com/docs/user-guide/profiles/) which uses this exact directory structure. When Hermes ships profile support, MC-created agents will be immediately usable viahermes -p <name>.Current state
Hermes v0.4.0 doesn't yet support
--profile— the profile directories are provisioned ahead of time. The directory structure matches the documented spec:Test plan
pnpm typecheck— passespnpm test— 892/892 pass~/.hermes/profiles/<name>/config.yamlhas correct model