Skip to content

feat: agent registry backend (Phase 1) - #3

Merged
oratis merged 1 commit into
mainfrom
feat/agent-registry-backend
Jun 13, 2026
Merged

feat: agent registry backend (Phase 1)#3
oratis merged 1 commit into
mainfrom
feat/agent-registry-backend

Conversation

@oratis

@oratis oratis commented Jun 13, 2026

Copy link
Copy Markdown
Owner

What

Phase 1 registry backend — data model + APIs for invokable agents (distinct from existing coding-agent skills). Additive; no changes to existing Skill tables.

Changes

  • Schema: Agent / AgentSkillDef / AgentTag + enums; migration 003_agent_registry (Prisma-generated, additive).
  • AgentCard (src/lib/agentcard.ts): fetch/parse/validate A2A AgentCards (.well-known fallback, SSRF guard, timeout, size cap).
  • APIs: POST /api/agents/submit (URL or manual; PENDING unless admin) · admin /api/admin/agents (list) + [id] (approve/reject/delete) · public /api/agents (filter/sort/paginate) + [slug] · /api/registry (agent-readable md + JSON).

Verification

tsc --noEmit clean. Submit (both modes), admin review, public list/detail/filter, and registry verified against a local Postgres.

Migration note

Apply 003 via the project's migrate flow. ⚠️ repo migration dirs (0_init/001/002/003) sort so 0_init lands last — a clean migrate deploy on an empty DB misorders; fix before prod (tracked in docs).

🤖 Generated with Claude Code

- Prisma: Agent / AgentSkillDef / AgentTag models + migration 003_agent_registry
- src/lib/agentcard.ts: A2A AgentCard fetch/parse/validate (well-known
  fallback, SSRF guard, timeout, size cap)
- POST /api/agents/submit (AgentCard URL or manual; PENDING unless admin)
- Admin review API: /api/admin/agents (list) + [id] (approve/reject/delete)
- Public /api/agents (filter/sort/paginate) + /api/agents/[slug] detail
- Agent-readable discovery: /api/registry (markdown + JSON)

Additive only; no changes to existing Skill tables.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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