Skip to content

Daemon: --agent flag on chat and code commands #45

Description

@ludusrusso

Parent PRD

#34

What to build

Add --agent flag to wildgecu chat and wildgecu code commands. When provided, the daemon creates a session scoped to the named agent's Home, SOUL, model, and memory. Includes memory curation scoped to the agent after session close.

End-to-end: wildgecu chat --agent=researcher connects to the daemon, creates a session using the researcher's SOUL and model, and after the conversation the researcher's MEMORY.md is updated.

Acceptance criteria

  • --agent flag added to chat and code commands
  • ChatRequest IPC protocol gains an Agent field
  • Daemon creates sessions using the named agent's Home (SOUL, MEMORY, model)
  • agent.Prepare() / agent.PrepareCode() work with agent-scoped Home
  • Memory curation (agent.Finalize) writes to the agent's MEMORY.md, not the main agent's
  • When --agent is omitted, existing behavior is preserved (backward compatible)
  • Error when agent name doesn't exist

Blocked by

User stories addressed

  • User story 4 (chat with specific agent)
  • User story 5 (code mode with specific agent)
  • User story 8 (per-agent memory)
  • User story 17 (per-agent memory curation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    prd/issueImplementation issue from a PRD

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions