Skip to content
agent-registry logo

Agent Registry Management

agent-registry

Guide for managing the Agent Registry - database-backed agent configuration system. Use when asked to "configure agents", "manage skills", "set tool permissions", "create context rules", or when working with agent assignments per platform/chat. Covers dashboard UI, API endpoints, CLI commands, an...

SKILL.md

Full skill instructions

Agent Registry Management

Overview

The Agent Registry is a database-backed system for managing AI agent configurations. It replaces file-based configuration with a centralized, dynamic approach that supports:

  • Agent definitions - Name, model, base prompt, enabled status
  • Skill assignments - Which skills each agent has access to
  • Tool permissions - Allow/​deny patterns for MCP tools
  • Context rules - Agent selection based on platform, chat, environment

Quick Reference

Dashboard UI

Access the Agents tab in the dashboard at http://localhost/ → Management → Agents

Features:

  • View all agents with stats (total, enabled, skills, context rules)
  • Edit agent details (name, description, model, prompt)
  • Manage skills (checkbox list of available skills)
  • Configure tool patterns (allow/​deny lists)
  • View agent details with all configurations

CLI Commands

# Sync database config to filesystem (for OpenCode)
npm run agents:sync

# Sync with verbose output
npm run agents:sync -- --verbose

# Dry run (show what would change)
npm run agents:sync -- --dry-run

# Sync for specific environment
npm run agents:sync -- --env prod

# Seed default agents
npm run agents:seed

# Force re-seed (overwrites existing)
npm run agents:seed:force

# Run database migration
npm run db:migrate

MCP Tools

Two MCP tools are available for agents to self-discover their capabilities:

ai_first_get_agent_context

{
  "platform": "whatsapp",
  "chatId": "123456789",
  "environment": "local"
}

Returns: Agent role, enabled skills, allowed tools, base prompt

ai_first_list_agents

{
  "includeDetails": true
}

Returns: All registered agents with optional skill/​tool details

Database Schema

Tables

TablePurpose
agentsCore agent definitions (id, name, model, prompt, enabled)
agent_skillsSkills assigned to each agent
agent_toolsTool allow/​deny patterns per agent
context_rulesRules for agent selection by context

Context Types

TypeContext IDPurpose
defaultnullFallback agent when no other rules match
platformwhatsapp/​slack/​opencode/​cursorPlatform-specific agent
chatChat/​Channel IDChat-specific agent assignment
channelSlack channel nameChannel-specific agent
environmentlocal/​prodEnvironment-specific skill overrides

Default Agents

AgentModeSkillsDescription
pm-assistantprimaryjira-management, workflow-management, presentation-updates, message-scheduling, tool-discoveryJIRA, meetings, workflows, project management
communicatorspecializedslack-formatting, whatsapp-messagesSlack/​WhatsApp messaging with proper formatting
schedulerspecializedmessage-scheduling, tool-discoveryCalendar management, reminders
explorerspecializedproject-architecture, tool-discoveryFast codebase exploration

API Endpoints

All endpoints require authentication via JWT token.

Agent CRUD

MethodEndpointDescription
GET/​api/​agentsList all agents
GET/​api/​agents/​statsGet registry statistics
GET/​api/​agents/:idGet agent with details
POST/​api/​agentsCreate new agent
PATCH/​api/​agents/:idUpdate agent
DELETE/​api/​agents/:idDelete agent
POST/​api/​agents/:id/​toggleToggle enabled status

Skills

MethodEndpointDescription
GET/​api/​agents/:id/​skillsGet agent's skills
PUT/​api/​agents/:id/​skillsReplace agent's skills
GET/​api/​agents/​available-skillsList all available skills

Tools

MethodEndpointDescription
GET/​api/​agents/:id/​toolsGet agent's tool patterns
PUT/​api/​agents/:id/​toolsSet tool allow/​deny patterns

Context Rules

MethodEndpointDescription
GET/​api/​agents/​context-rulesList all context rules
POST/​api/​agents/​context-rulesCreate context rule
DELETE/​api/​agents/​context-rules/:idDelete context rule

Operations

MethodEndpointDescription
POST/​api/​agents/​syncTrigger filesystem sync
POST/​api/​agents/​resolve-contextResolve agent for context

Context Resolution

When resolving an agent for a request:

  1. Get all context rules sorted by priority (highest first)
  2. Match rules against context (platform, chat, environment)
  3. Apply skill overrides from matching rules
  4. Return agent with effective skills and tools

Priority order: chat-specific > channel-specific > platform-specific > environment > default

Filesystem Sync

For OpenCode/​Cursor compatibility, agent configurations are synced to:

  • .claude/​skills/ - Skill directories for enabled skills
  • opencode.json - Model configuration (future)

The sync runs:

  • On demand via npm run agents:sync
  • Before OpenCode starts (in Docker entrypoint)
  • Via dashboard "Sync" button

Extending

Adding a New Agent

  1. Via Dashboard: Agents tab → Add New Agent
  2. Via API: POST /​api/​agents with agent definition
  3. Via Seed: Update data/​seeds/​agents.ts

Adding Skills to an Agent

  1. Via Dashboard: Click agent → Edit Skills → Select skills
  2. Via API: PUT /​api/​agents/:id/​skills with skill names array

Creating Context Rules

For chat-specific agent:

{
  "contextType": "chat",
  "contextId": "120363406740668957",
  "agentId": "specialized-agent",
  "priority": 100
}

For platform-wide agent:

{
  "contextType": "platform",
  "contextId": "whatsapp",
  "agentId": "communicator",
  "priority": 50
}

Troubleshooting

Agent not appearing

  1. Check if agent is enabled: GET /​api/​agents/:id
  2. Verify database connection
  3. Check logs for errors

Skills not syncing

  1. Run npm run agents:sync -- --verbose --dry-run
  2. Check skill source directory exists
  3. Verify skill is assigned to agent

Context not resolving

  1. Check context rules: GET /​api/​agents/​context-rules
  2. Verify rule priorities
  3. Test with: POST /​api/​agents/​resolve-context

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View