Skip to main content

Agent Orchestration & Task Management Strategy

Should we implement task management/orchestration now or later?

Date: January 8, 2026


Current State Analysis

Juniro's Current Task Management

ToolPurposeStatus
LinearPrimary task management✅ Active (JUN-XXX references)
product-status.mdHigh-level status tracking✅ Active
product-roadmap-matrix.mdFeature matrix✅ Active
work-log/ (juniro-infra)Basic work tracking✅ Active (minimal)
@roadmap-updaterUpdates roadmap docs✅ Active

Finding: Juniro uses Linear as primary task management, with docs for status tracking.

Empeers' Task Management System

ComponentPurpose
ORCHESTRATION.mdCollaboration protocol
docs/tasks/BACKLOG.mdPrioritized task queue
docs/tasks/ACTIVE.mdActive tasks with status
docs/tasks/active/TASK-XXX.mdDetailed task specs
Product Lead AgentOrchestrator role
Task statesbacklog → assigned → in_progress → review → verified → done

Finding: Empeers uses markdown-based task management with agent orchestration.


Key Differences

AspectJuniroEmpeers
Task ToolLinear (external)Markdown files (internal)
OrchestrationManualAutomated (Product Lead Agent)
Task StatesLinear statesCustom states (backlog → done)
Agent HandoffsAd-hocFormal protocol
VerificationManualAutomated (Verifier agent)
Roadmap SyncManualAutomated (@roadmap-updater)

Recommendation: Phase 2 (After Agent Consolidation)

Why Phase 2?

Arguments FOR doing it now:

  • ✅ Part of complete agent system
  • ✅ Creates full orchestration capability
  • ✅ Better agent collaboration
  • ✅ Reduces manual coordination

Arguments FOR doing it later:

  • ✅ Agent consolidation is already a big task
  • ✅ Juniro uses Linear (different from empeers)
  • ✅ Need to adapt pattern to Linear integration
  • ✅ Can validate agent consolidation first
  • ✅ Less overwhelming to do incrementally

Decision:Do it in Phase 2 - After agent consolidation is complete

Rationale

  1. Agent consolidation is foundational - Need stable agent definitions before orchestration
  2. Different tooling - Juniro uses Linear, needs adaptation
  3. Incremental approach - Better to validate one change at a time
  4. Clear separation - Consolidation vs. Orchestration are distinct concerns

Proposed Approach: Hybrid Model

Adapt Empeers Pattern to Juniro's Context

Key Insight: Don't replace Linear, enhance it with agent orchestration.

Structure

juniro-docs/docs/
├── agents/ (Phase 1 - Agent consolidation)
│ ├── agent-overview.md
│ ├── shared-agents/
│ └── domain-agents/

└── tasks/ (Phase 2 - Task management)
├── ORCHESTRATION.md (collaboration protocol)
├── BACKLOG.md (prioritized queue)
├── ACTIVE.md (active tasks)
├── active/
│ └── TASK-XXX.md (detailed specs)
└── completed/
└── YYYY-MM/

Integration with Linear

Hybrid Approach:

  1. Linear remains source of truth for task tracking
  2. Agent tasks (docs/tasks/) are agent-specific work items
  3. Linear issues can reference agent tasks
  4. Agents can create/update Linear issues via API

Workflow:

Linear Issue (JUN-XXX)

Agent Task (TASK-XXX) - Detailed spec for agent

Agent executes

Updates Linear issue status

Updates roadmap docs

Phase 2 Implementation Plan

Step 1: Document Orchestration Protocol

Create: juniro-docs/docs/agents/ORCHESTRATION.md

Content:

  • Agent roles (Orchestrator/Worker/Verifier)
  • Task lifecycle (backlog → done)
  • Handoff protocols
  • Verification requirements
  • Adapted for Linear integration

Step 2: Create Task Management Structure

Create:

  • docs/tasks/BACKLOG.md - Prioritized agent tasks
  • docs/tasks/ACTIVE.md - Active agent work
  • docs/tasks/active/_TASK_TEMPLATE.md - Task spec template
  • docs/tasks/active/TASK-XXX.md - Individual task specs

Step 3: Create Orchestrator Agent

Create: domain-agents/orchestrator.md (or product-lead.md)

Responsibilities:

  • Manage agent task queue
  • Assign tasks to worker agents
  • Track task status
  • Coordinate with Linear (create/update issues)
  • Update roadmap docs

Step 4: Enhance Existing Agents

Update agents to support orchestration:

  • Add task acceptance/reporting protocols
  • Add Linear integration (optional)
  • Add status update capabilities

Step 5: Linear Integration

Options:

  1. Manual sync - Agents reference Linear issues, update manually
  2. Linear API - Agents create/update Linear issues automatically
  3. Hybrid - Manual for now, API later

Recommendation: Start with manual sync, add API later if needed


What to Document Now (Phase 1)

Even though we're doing orchestration in Phase 2, we should document the plan now:

Add to Agent Consolidation Plan

  1. ORCHESTRATION.md - Mark as "Phase 2"
  2. Task management structure - Document in plan
  3. Orchestrator agent - Add to agent list (Phase 2)
  4. Linear integration strategy - Document approach

Benefits of Documenting Now

  • ✅ Captures the pattern while fresh
  • ✅ Shows complete vision
  • ✅ Makes Phase 2 easier (plan already exists)
  • ✅ Can reference in Phase 1 work

Phase 1: Agent Consolidation (Current)

juniro-docs/docs/agents/
├── agent-overview.md
├── _TEMPLATE.md
├── shared-agents/
└── domain-agents/

Focus: Consolidate agent definitions, reduce duplication

Phase 2: Task Management & Orchestration (Next)

juniro-docs/docs/
├── agents/ (from Phase 1)
│ ├── ORCHESTRATION.md ← NEW (Phase 2)
│ └── domain-agents/
│ └── orchestrator.md ← NEW (Phase 2)

└── tasks/ ← NEW (Phase 2)
├── BACKLOG.md
├── ACTIVE.md
├── active/
└── completed/

Focus: Add task management, orchestration protocol, Linear integration


Decision Matrix

ApproachProsConsRecommendation
Do Now (Phase 1)Complete system, better coordinationOverwhelming, blocks consolidation❌ Not recommended
Do Later (Phase 2)Incremental, validates consolidation firstDelays orchestration benefitsRecommended
Document Now, Implement LaterBest of both worldsNoneBest approach

Action Items

Phase 1 (Now)

  • Complete agent consolidation audit
  • Create agent consolidation plan
  • Document orchestration strategy (this doc)
  • Add ORCHESTRATION.md to plan (marked Phase 2)
  • Add orchestrator agent to agent list (Phase 2)

Phase 2 (After Consolidation)

  • Create docs/tasks/ structure
  • Create ORCHESTRATION.md with protocol
  • Create orchestrator.md agent definition
  • Create task templates
  • Set up Linear integration (manual or API)
  • Test orchestration workflow

Summary

Recommendation:Document now, implement in Phase 2

Rationale:

  1. Agent consolidation is already a significant task
  2. Need stable agent definitions before orchestration
  3. Juniro uses Linear (needs adaptation)
  4. Incremental approach reduces risk
  5. Documenting now captures the pattern

Next Steps:

  1. Add orchestration docs to agent consolidation plan (marked Phase 2)
  2. Complete Phase 1 (agent consolidation)
  3. Then proceed with Phase 2 (task management & orchestration)

This approach gives us:

  • ✅ Complete vision (documented now)
  • ✅ Manageable scope (one phase at a time)
  • ✅ Better foundation (consolidated agents first)
  • ✅ Clear path forward (Phase 2 plan ready)