Workspace & Agents

Master Agent (AI Tech Lead)

Turn on Auto delegate to let a lead agent write a contract, split work across parallel teammate agents, review quality gates, and run for hours unattended.

Instead of juggling multiple sessions by hand for a large goal, flip on Auto delegate in the composer. Your session becomes a Master Agent—an AI tech lead that plans the project, delegates slices to parallel teammate agents, verifies every output, and reports back only when work passes.

How the Master Agent workflow runs#

Your goal → Master drafts Contract (Scope · Test plan · Budget · Roles)
         → You approve once
         → Parallel teammates work in isolated copies
         → Quality gates (Audit · UI/UX · Code quality · Tests)
         → Failed checks loop back with evidence
         → Final verified report (never deploys without your approval)

1. Describe the goal once and approve the contract#

  1. Turn on Auto delegate in the session composer.
  2. Describe the outcome you want in plain language (for example, "Redesign the checkout flow, add validation tests, and verify mobile layout").
  3. The Master Agent drafts a structured Goal contract containing:
    • Scope & criteria: Measurable acceptance items that track live status (Pending, In progress, Passed, Failed, Blocked).
    • Test plan: Commands and real-browser checks required before completion.
    • Budget: Round and time limits so work stays bounded.
    • Roles: Which agent specialties are needed for each part.
  4. Click Approve once in the Goal panel above the thread to launch execution.

2. Parallel execution in isolated workspaces#

Once approved, the Master Agent spawns dedicated teammate sessions (using the best-suited providers such as Claude, Codex, Gemini, Antigravity, or OpenCode) and assigns non-overlapping slices of work:

  • Teammates can work in isolated workspace copies and coordinate via shared tasks and path claims so they do not overwrite one another.
  • You can inspect progress right inside the Goal panel, pause or resume the run anytime, or undo / review individual task merges if needed.

3. Built-in quality gates before you ever see the result#

Before marking any criterion Passed, the Master Agent verifies teammate deliverables across four checks:

  • Audit: Confirms requirements match the contract scope and no edge cases were skipped.
  • UI / UX review: Uses LightCode's built-in Browser to capture desktop and mobile views and runs multi-model visual reviews so layout issues are caught automatically.
  • Code quality: Checks for duplication, dead code, and adherence to your project's shared rules.
  • Tests: Executes your test suite and build checks inside managed terminals.

If any check fails, the Master Agent sends the failing evidence back to the responsible agent for rework rather than handing broken code to you.

Long-running reliability#

  • Works while you step away: Master runs can continue for hours—automatically switching backup accounts when quotas fill up, pausing cleanly if all accounts exhaust quota, and resuming as soon as quota resets or after a computer restart.
  • Only real decisions land on you: If an architectural choice or product tradeoff requires human judgment, the Goal panel switches to Needs your decision. And the Master Agent never deploys to production without your explicit approval.