Skip to content

[Design] Agent config UX: building blocks + agent profiles (per-profile behavior, no global defaults) #15563

Open

Description

@simonrosenberg

Current status (2026-10-13): Per-profile tools, MCP selection, secrets selection, and persona editing have shipped (#17516, #17289, #17237, #17843). The historical "tools absent/deferred" statements below are no longer current. Keep this design issue open for the remaining editor/hub organization and per-profile behavior controls. Default-path unification, catalog parity and migration of existing global behavior settings are owned by #17991; removing the old behavior pages is #15565.

Rewritten 2026-06-23. This supersedes the original draft of this issue (which proposed a global-defaults + per-profile inherit/override model). That model was over-engineered — it created two surfaces for every knob (a global "default condenser" page and a per-profile override). The design below replaces it with a simpler two-layer model. Earlier decision log preserved at the bottom.

Summary

Agent configuration in canvas is mid-migration from flat, global pages to per-profile config, and the build is underway (library + kind-aware editor in OpenHands/agent-canvas#1440; OpenHands/agent-canvas#1446 folds Condenser/Verification into the profile and reworks MCP refs). But the editor is a single flat scroll that won't scale as agent settings grow, and config is split across five different composition models with no shared mental model. This issue is the design-of-record for the canvas agent-config UX.

It does not touch the SDK substrate (epic OpenHands/software-agent-sdk#3713, design OpenHands/software-agent-sdk#3710) — that's settled and released (SDK v1.29.0 / ts-client v1.26.0). This is purely the canvas IA/UX layer.

The problem

Opening the profile editor today means holding five different "what does setting this here mean" models at once: LLM is a reference, MCP is a filter over global servers, condenser/verifier/suffix/concurrency are per-profile values, skills are round-tripped invisibly (edited only as a separate global disabled_skills list), and tools are absent (no tools field on the profile anywhere in the SDK). On top of that the editor is a flat scroll that gets worse with every new knob, and behavior knobs exist in two places (a global page and the profile).

The model (final)

Collapse those five models into two layers, each with one interaction verb:

Layer Verb Contents Home
Building blocks Define (once, beforehand) LLM profiles · MCP servers · Skills/plugins · Secrets Catalog pages in the Agents hub
Agent profiles Compose + tune select blocks + set behavior (condenser, verification, suffix, concurrency / provider, model, session, command) The profile editor

Every behavior knob has exactly one home: the profile. There is no global "default condenser/verification" page. The "default behavior" is simply the default profile; you reuse settings by duplicating a profile. This removes the dual surface and the inherit/override-badge machinery entirely. The only global surfaces are the catalogs — and they're "what's available," not "defaults."

(MCP already works this way: a global mcp_config catalog + a per-profile mcp_server_refs subset. Skills need to catch up to the same select-from-catalog model.)

Decisions

  1. Behavior knobs are per-profile only — no global default pages, no inherit/override badges. Reuse = Duplicate. (default behavior = the default profile.)
  2. Catalogs live inside the Agents hub as "Building blocks," configured beforehand and referenced by profiles.
  3. agent_kind is chosen up front via a simple OpenHands/ACP modal on create, then the editor opens with built-in defaults. Kind is fixed for the profile's life (switch = Duplicate-as / New).
  4. Tools: deferred. The AgentProfile has no tools field — per-tool override needs an SDK change. No tool control in the editor until then; SDK follow-up tracks it.
  5. Model Router ([WSL] Local mistral model not sent to litellm #1395 / Intelligent model router: classify_and_switch_llm tool + meta-profiles software-agent-sdk#3744) stays a separate surface for now. IA unification revisited later.

IA & routing

Today the left rail is [ + New chat ] [ Customize ] [ Automations ] [ ⚙ Settings ], where Customize (/customize) is the extensions hub (Skills/Plugins/MCP catalogs) and Settings holds LLM / agent / agents(profiles) / condenser / verification / app / secrets as flat pages.

Target rail: [ + New chat ] [ ◆ Agents ] [ ⚡ Automations ] [ ⚙ Settings ] — "Customize" is absorbed into Agents.

┌──────┬────────────────────────────────────────────────┐
│  +   │  Agents                                         │
│ chat │ ┌───────────────┬────────────────────────────┐ │
│      │ │ PROFILES      │  ▸ Coding agent   ★default │ │
│ ◆    │ │  • Coding ★   │    OpenHands · claude-opus │ │
│Agents│ │  • Reviewer   │  ▸ Reviewer                │ │
│      │ │  • Claude CLI │  ▸ Claude CLI    (ACP)     │ │
│  ⚡  │ │  + New agent  │                            │ │
│ Auto │ ├───────────────┤   [ Edit ]  [ Duplicate ]  │ │
│      │ │ BUILDING      │                            │ │
│  ⚙   │ │ BLOCKS        │                            │ │
│ Set  │ │  • LLM profiles                            │ │
│      │ │  • MCP servers                             │ │
│      │ │  • Skills / plugins                        │ │
│      │ │  • Secrets                                 │ │
│      │ └───────────────┴────────────────────────────┘ │
└──────┴────────────────────────────────────────────────┘

Routes that change:

  • /settings/condenser, /settings/verification, /settings/agent → removed (folded into the profile editor; feat(chat): unified AgentProfile chat-input picker (start-new-with-profile) (#3727) agent-canvas#1446 already did this on local — make it universal, including cloud, as a later milestone).
  • /settings/llm, /mcp, /skills, /plugins, /customize, /settings/secrets → rehomed as Building-blocks catalogs under the Agents hub (kept as "what's available," not deleted).
  • /settings/agents (profile library) → moves up to the Agents hub's Profiles view.

The profile editor — master-detail, kind-aware

Section nav on the left, detail pane on the right — so no flat scroll, and it scales as knobs are added. The section list is kind-aware: only sections that apply to the kind render, so the OpenHands/ACP asymmetry shows up as a shorter list, never greyed pages.

  Coding agent  (OpenHands)                       ★ Set default
┌──────────────┬───────────────────────────────────────────┐
│ General      │  Memory / Condenser                        │
│ Model        │   [x] Summarize old context                │
│ Tools & MCP  │       Trigger at  [ 240 ] events           │
│ Skills       │                                            │
│▶ Condenser   │   ┌─ What this agent will do ───────────┐  │
│ Verification │   │ claude-opus · 3 MCP servers · critic │  │
│ Personality  │   │ on · 4 skills            (resolved) │  │
│ Advanced     │   └──────────────────────────────────────┘ │
└──────────────┴───────────────────────────────────────────┘
OpenHands sections ACP sections
General — name, set-default General — name, set-default
Model — select LLM profile Provider & Model — acp_server, acp_model
Tools & MCP — select MCP servers (tools deferred) Launch — command, args, session mode, timeout
Skills — select skills MCP — select MCP servers
Condenser — on/off + trigger size Authentication — provider creds (writer over Secrets)
Verification — critic, mode, threshold, refinement
Personality — system-prompt suffix
Advanced — sub-agents, tool concurrency

In Tools & MCP / Skills, you select from the catalog ("All available" by default), with a "Manage ↗" link to the building block — you never define a server inline.

The materialize overview ("What this agent will do")

The backend already exposes POST /api/agent-profiles/{name}/materialize (resolve_agent_profile_dry_run) → the fully-resolved, redacted settings + dangling-ref diagnostics. Because a profile is now a composition of references + knobs, render this as the editor's overview panel. It's both the legibility feature and a QA oracle ("does the resolved config match intent"). Nothing renders it today.

Create flow

+ New agent → minimal OpenHands / ACP modal → the editor opens with that kind's sections, pre-filled from built-in defaults (provider chosen inside the editor for ACP). Duplicate covers the fork-a-preset need separately.

Relationship to existing issues

Sequencing

  1. Editor: flat scroll → master-detail section nav (kind-aware) + wire the materialize overview. (builds on feat(chat): unified AgentProfile chat-input picker (start-new-with-profile) (#3727) agent-canvas#1446)
  2. Skills → per-profile select-from-catalog section; reconcile disabled_skills.
  3. The Agents hub: new rail item; move the profile library + LLM/MCP/Skills/Secrets catalogs under it; shrink the Settings gear; retire "Customize" as a standalone item.
  4. Create modal + built-in-defaults seeding.
  5. Cloud parity (remove cloud behavior pages, same hub) — separate milestone.

Definition of done (for this design)

  • Decisions above accepted (or amended) by the team.
  • Remove the superseded global agent-setting pages (Agent / Condenser / Verification) once cloud has AgentProfiles #15565 reframed to "remove behavior pages (condenser/verification/agent); keep + rehome catalogs."
  • [AgentProfile][canvas] AgentProfile library + kind-aware editor (dissolve ACP nav lockout) software-agent-sdk#3726 rescoped to the master-detail editor + Agents hub.
  • Per-profile tools and the server tool catalog are implemented (software-agent-sdk#5151; feat(agent-profiles): pick every tool from the server's catalog; pin SDK 1.53.0 #17516).
  • Once everything land, the default-profile special case in useCreateConversation (
    if (
    !isCloud &&
    resolvedAgentProfile?.name === WELL_KNOWN_DEFAULT_AGENT_PROFILE_NAME &&
    resolvedAgentProfile?.agent_kind === "openhands"
    ) {
    // The seeded OpenHands `default` profile is the enriched baseline, not a
    // deliberate profile pick — it mirrors global agent_settings. Launch it
    // via agent_settings so the canvas-only enrichments the profile-resolution
    // path drops survive for the common home-launch: the <RUNTIME_SERVICES>
    // system-message suffix and project-skill loading (buildAgentContext).
    // Named profiles are deliberate custom configs and still use the profile
    // path (accepting that enrichment boundary).
    // Trade-off: per-profile fields set on `default` itself don't apply on
    // home-launch — custom per-profile config belongs in a named profile.
    //
    // Scoped to OpenHands: an ACP `default` must keep the profile path.
    // Activation is pointer-only, so global agent_settings is stale (often
    // still OpenHands) when an ACP profile is active — launching it via
    // agent_settings would start the wrong agent. ACP carries no
    // <RUNTIME_SERVICES> enrichment, so there's nothing to preserve.
    //
    // Scoped to local: cloud never writes agent_settings, so it always
    // resolves `default` server-side via agent_profile_id (validated below).
    effectiveAgentProfileId = undefined;
    ) (routing default through agent_settings instead of agent_profile_id) can be deleted

Prior-art anchors

Master-detail library, not a modal/wizard (NN/g). Closest prior art: Zed agent profiles (named, fork-from-preset, MCP/tool gating defined-once-referenced) and Claude Code subagents (kind/role config, reference resources by name). The two-layer "central building blocks + apps that select them" split mirrors Continue.dev (typed blocks + assistants), Dify (central model/tool registry + apps), and Zed (MCP servers defined once, profiles gate them).


Earlier decision log (pre-2026-06-23 rewrite)

The first draft proposed: keep global pages as editable defaults; profiles as inherit-by-default deltas with override badges; fold Model Router into one Agents surface. Superseded because the global-default-plus-override model created two surfaces per knob (the "huh, one page for default condenser + one place to override" problem). Carried forward from that draft: defer tools (now Decision 4); keep Model Router separate (now Decision 5); the materialize preview; the SDK follow-ups remain deferred/unfiled.

Drafted with Claude Code from a cross-repo investigation of the AgentProfile epic, the as-built canvas editor, the SDK parameter matrix, and best-in-class per-agent-config UX patterns; refined through design review with the maintainer.

Activity

  1. changed the title [-][Design] Agent config UX: one composition model for per-agent profiles (inherit-default + deltas)[/-] [+][Design] Agent config UX: building blocks + agent profiles (per-profile behavior, no global defaults)[/+] on Jun 23, 2026
  2. simonrosenberg commented on Jul 10, 2026

    @simonrosenberg
    MemberAuthor

    Implementation baseline update (2026-07-10): OpenHands/agent-canvas#1571 shipped the profile library, flat kind-aware editor, local+cloud launch picker, and live-switch gating. The SDK now also exposes profile tools and uses disabled_skills rather than skill_refs.

    The design work still missing on current Canvas main is concrete:

    • master-detail section navigation;
    • /materialize diagnostics/overview (the client service does not call it);
    • per-profile MCP selection UI (refs are only preserved opaquely on edit);
    • per-profile disabled_skills and tools controls;
    • Agents hub / building-block re-homing;
    • create-kind modal and clearer duplicate flow.

    Keep this as the post-v1 UX tracker. Coordinate tools with SDK#3978; do not revive positive skill_refs - the shipped model is the drift-tolerant disabled_skills deny-list.

  3. enyst commented on Jul 31, 2026

    @enyst
    Member

    This makes a lot of sense and it definitely looks to me like the way to go!

    It does raise a question though: when the user switches LLM profile during conversation or at the start of a new conversation, do we change the profile’s active LLM profile?

    It seems to me that the answer has to be Yes. Otherwise we’d still end up with some two sources of truth… and unexpected behavior at the start of a new conversation (I think we figured in the past that expected = the newest switch is the active LLM so it will be used next time). OTOH, that has consequences, right, we’d have to write the profile on the fly. WDYT?

  4. added
    ready-for-dev
    on Aug 23, 2026
  5. removed
    ready-for-dev
    on Aug 23, 2026
  6. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

    ⚠️ Not yet ready-for-dev

    This issue does not yet meet the readiness criteria, so the
    ready-for-dev label has not been applied (or has been removed).
    The criteria are type-specific:

    Bug reports (bug label):

    • The ### Steps to Reproduce section must reference a supported run method
      (agent-canvas, npm run, or app.all-hands.dev/canvas).
    • The ### Actual Behavior section must include a screenshot or video of the bug.
    • An ### Acceptance Criteria section with at least one checklist item (- [ ] …).

    Enhancements (enhancement label):

    • A ### Desired Behavior section.
    • An ### Acceptance Criteria section with at least one checklist item.

    What is missing:

    • The issue has neither the bug nor enhancement label, so its readiness criteria cannot be evaluated. Add the appropriate label.

    Edit the issue to address the gaps and the ready-for-dev label will be
    applied automatically.

    This is an automated check — no AI was used to generate this comment.

  7. added
    ready-for-dev
    on Aug 23, 2026
  8. removed
    ready-for-dev
    on Aug 23, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions