Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(desktop): add a concurrent-workflow-agents setting

2 months ago

08132b3
Authored
mweinbach7/26/2026, 5:38:53 PM
Exposes `workflowMaxConcurrentAgents` as a workspace default under a new
"Multi-agent limits" section on the Subagents settings page, completing the
harness-side plumbing from the previous commit.

Follows the `defaultToolOutputOverflowChars` chain end to end: WorkspaceRecord,
the renderer and bootstrap schemas, electron persistence normalization, the
record merge helpers, the session-defaults config patch, and the config_updated
round-trip that reflects the effective value back.

Clamped to [1, 16] at every layer that can receive an untrusted value — the
input, the persistence normalizer, the RPC schema and the harness resolver — so
a hand-edited state file cannot widen fan-out past AgentControl's per-parent cap.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk98XjGKJrKp5ynbiNFMFu

Parent8864b91

10 files changed
  • apps/desktop/electron/services/persistence.ts+12−0
  • apps/desktop/src/app/store.actions/bootstrap.ts+9−0
  • apps/desktop/src/app/store.actions/workspace.ts+1−0
  • apps/desktop/src/app/store.actions/workspaceDefaultRecords.ts+1−0
  • apps/desktop/src/app/store.actions/workspaceDefaults.ts+10−0
  • apps/desktop/src/app/store.helpers/controlSocket.ts+5−0
  • apps/desktop/src/app/store.helpers/oneOffWorkspaceRecord.ts+1−0
  • apps/desktop/src/app/types.ts+2−0
  • apps/desktop/src/lib/desktopSchemas.ts+7−0
  • apps/desktop/src/ui/settings/pages/SubagentsPage.tsx+72−0