Repository navigation
Closed
Labels
Description
Problem
Sub-agents provide faster execution through parallelization but consume more tokens. Not all users are on unlimited plans (Claude Max, Enterprise). Currently, skills like /qa may spawn parallel agents without user control.
Example from session:
/qa 7 50spawned 2 parallel agents- Each agent independently fetched issues, read files, ran checks
- ~2x token usage vs sequential execution
- ~50% faster wall-clock time
Proposed Solution
1. Global Configuration
Add to .sequant/settings.json:
{
"agents": {
"parallel": false, // Default: sequential (cost-optimized)
"model": "haiku" // Default model for sub-agents (cheapest)
}
}2. Per-Invocation Override
/qa 7 50 # Uses global setting
/qa 7 50 --parallel # Force parallel (faster)
/qa 7 50 --sequential # Force sequential (cheaper)3. Model Tier Selection
| Task Type | Recommended Model | Rationale |
|---|---|---|
| Quality checks (lint, type) | haiku | Mechanical, low complexity |
| Code review | sonnet | Needs judgment |
| Complex analysis | opus | Requires deep reasoning |
Acceptance Criteria
- Add
agents.parallelsetting to.sequant/settings.jsonschema - Default to
false(sequential) for cost optimization - Add
--parallel/--sequentialflags to multi-issue skills (/qa,/merger) - Document token usage trade-offs in README or docs
- Skills respect global setting unless overridden
Affected Skills
/qa- Can review multiple issues/merger- Can merge multiple issues/fullsolve- Orchestrates multiple phases- Any skill using
Tasktool with multiple agents
Trade-off Documentation
Add to docs:
## Cost vs Speed Trade-offs
| Mode | Token Usage | Speed | Best For |
|------|-------------|-------|----------|
| Sequential | 1x (baseline) | Slower | Limited API plans, single issues |
| Parallel | ~2x per agent | ~50% faster | Unlimited plans, batch operations |
**Default:** Sequential (cost-optimized)
**Override:** `--parallel` flag or `agents.parallel: true` in settingsPriority
Medium - important for accessibility and cost management
Activity
admarble commentedon Jan 11, 2026
Planning Complete -
/specAnalysisAcceptance Criteria (Verified)
agents.parallelto settings schemafalse(sequential)--parallel/--sequentialflagsImplementation Plan
Phase 1: Settings Schema (~15 lines)
AgentsSettingsinterface tosrc/lib/settings.tsDEFAULT_AGENTS_SETTINGS = { parallel: false }getSettings()Phase 2: Environment Bridge (~20 lines)
--parallel/--sequentialflags tosrc/commands/run.tsSEQUANT_AGENTS_PARALLELenv var for skillsPhase 3: Skill Updates (documentation changes)
/qa,/spec,/execSKILL.md filesSEQUANT_AGENTS_PARALLELbefore parallel spawnPhase 4: Documentation
Key Decisions
haikudefault is already optimalAssumptions Validated ✓
getSettings())Recommended Workflow
Quality loop disabled - straightforward configuration change.
🤖 Generated by
/spec| Ready for/exec 68feat(#68): add configurable parallel agent mode for cost-conscious users
admarble commentedon Jan 11, 2026
/fullsolve Complete
Issue: #68
Status: READY_FOR_MERGE
Summary
AC Coverage
agents.parallelsetting to schemafalse(sequential)--parallel/--sequentialflags to skillsKey Changes
AgentSettingsinterface withparallelandmodeloptions/qa,/merger,/fullsolveskills with execution mode logicQuality Metrics
Iterations
PR: #73
Ready for human review and merge.