Skip to content

Epic: Optimise headless run execution #153

Open

Description

@byapparov

Goal

Make a one-shot aictrl run do only what a headless run needs. That means:

  • no per-step worktree snapshots
  • no hidden extra LLM calls
  • no startup network calls
  • no interactive-only subsystems on the run path
  • the same prompt contract whichever build is used

Baseline (dev mode, 2026-10-17)

  • aictrl --version: about 0.55 s. It still connects to models.dev, because provider/models.ts refreshes at import.
  • Importing provider/provider.ts: about 470 ms.

Children

P1:

P2:

Measurement

Record cliInitMs (#44), time to the first model request, per-step overhead and requests per run, before and after each child.

Activity

  1. added
    P1
    performance
    epic
    on Oct 17, 2026
  2. byapparov commented on Oct 20, 2026

    @byapparov
    MemberAuthor

    Token follow-ups from the headless CLI benchmark (aictrl 0.5.4 vs pi, Goose, Codex, OpenCode 2, Hermes):

    Already tracked: #160, #158 (remaining 812-token gap on the same four tools), #244 (prompt mentions removed tools; tools map ignored), #214, #149.

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

    P1epicperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions