Skip to content

Select CLI custom agents per thread (claude --agent, opencode --agent) #172

Closed

Description

@currentbits

What the CLIs support

  • claude --agent <name> runs a session as a repo/user-defined main-thread agent with its own tools, model, permissionMode, MCP servers and hooks; print mode honors agent frontmatter (Claude Code changelog v2.1.117+). Teams increasingly ship .claude/agents/ reviewer/security/scout agents in-repo.
  • opencode run --agent <name> selects a primary agent (built-ins build/plan plus Markdown-defined custom agents from .opencode/agent/) (opencode agents docs).

Solenta today

claude argv is fixed (electron/providers.js:117-149), opencode argv is run --format json ... (electron/providers.js:393-407); neither has an agent flag or agent discovery (only skills are listed, via electron/skills.js).

Why it matters

A Solenta user must leave the app to use repo-defined specialist agents, and Solenta's workflow engine (electron/workflow.js) could target specialist agents per phase instead of hand-written prompts. Plan-first vs build is also the core opencode workflow.

Scope suggestion

Discover agents from .claude/agents/*.md / .opencode/agent/ plus user dirs, expose a per-thread picker like the model picker, and pass the flag per provider (capability-gated).

Activity

  1. added
    enhancement
    plan:todo
    on Aug 16, 2026
  2. added
    plan:doing
    and removed
    plan:todo
    on Oct 10, 2026
  3. added a commit that references this issue on Oct 19, 2026
    1f796a2
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

    enhancementplan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions