Skip to content

feat: Agent definition — AgentProfile struct and registry #1

Closed

Description

@EngineerProjects

Summary

Define the AgentProfile type that represents a named agent persona (CEO, CTO, Researcher, …).
This is the foundational contract that the mailbox and communication systems will build on top of.

Scope

  • internal/agent/profile.go — AgentProfile struct
  • internal/agent/registry.go — in-memory + SQLite-backed registry (RegisterAgent, GetAgent, ListAgents)
  • No TUI in this issue — core layer only

AgentProfile fields (proposed)

```go
type AgentProfile struct {
ID string // unique slug, e.g. "cto"
Name string // display name, e.g. "CTO"
Role string // short role label
SystemPrompt string // full system prompt injected at session start
Model string // preferred model identifier (overrides global default)
Skills []string // skill file names to load
Metadata map[string]string // arbitrary key/value for extensions
}
```

Acceptance criteria

  • AgentProfile struct defined and exported from internal/agent
  • Registry supports CRUD operations backed by SQLite
  • At least 3 built-in profiles shipped (orchestrator, researcher, coder)
  • Unit tests for registry CRUD
  • No breaking changes to existing ClientConfig / session interfaces

Notes

  • Keep profiles as plain data — no behaviour attached yet
  • Model field should accept the same provider:model format as ClientConfig.Model
  • Skills field references skill file names resolved by the existing skills loader

Activity

  1. added
    enhancement
    core
    multi-agent
    architecture
    on Jun 4, 2026
  2. added 2 commits that reference this issue on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    architecturecoreenhancementmulti-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions