Skip to content

Ask: an answer through Claude Code can take 10 s to start, twice the design estimate #383

Closed

Description

@GeiserX

An answer through Claude Code can take about 10 s to start, twice the upper end of the 2 to 5 s that DESIGN.md estimates. Most of that time is the harness starting, before the model is asked anything.

Measured (gate G7, docs/gates/M0-results.md, raw lines in docs/gates/g7-real-0.6.5-checks.txt), the packaged 0.6.5 on an Apple silicon Mac with a daily-use harness setup, one question per harness:

Harness First token Answer
claude 2.1.296 10,354 ms 13,177 ms
codex 0.162.0 5,283 ms 5,766 ms

Earlier claude runs on 0.6.4: 2,692 ms on a machine with a near-empty user context, and 4,528 ms on the daily-use Mac with claude 2.1.295.

Where the 10 s goes. Two claude spawns from a shell, with the arguments the app passes and outside the app:

  • 5.1 s and 8.5 s until claude reported ready (its init event)
  • the first text 1.1 s after that, both times

So the model answers in about a second, and start-up takes 5 to 9 s. The claude config folder of that run holds 35 skills, 6 commands, hooks on 3 events (8 commands) and 2 plugins switched on. The script the gate used to choose the signed-in account adds 1.1 to 1.4 s, which a normal install does not pay. Each figure is one sample.

Not known yet.

  • How the start-up splits between hooks, plugins, skills and claude itself. A run with hooks off and one with plugins off would show it.
  • The first token with a large user-level instruction file. No machine we measured had one with content.
  • Whether a newer claude starts faster.

What could help. akou spawns a new harness for every question. Session reuse (--resume) exists to amortise start-up over repeated questions on one call. Options to look at: starting the harness when the ask box opens instead of on Enter, or flags that skip hooks and plugins for akou's spawns if the harness offers them.

Until then this is a known limitation: the excerpts show after about 300 ms, and the answer follows when the harness is up.

Activity

  1. GeiserX commented on Oct 11, 2026

    @GeiserX
    OwnerAuthor

    #393 takes the harness start out of the wait. The ask box now starts claude or codex when it gets focus, and the question takes the waiting harness.

    On a daily-use Mac with other sessions running, from shell spawns with akou's command line, two spawns per row:

    claude First token
    akou 1.0's command, started on the question 6,657 / 4,432 ms
    started 8 s before the question 1,431 / 2,927 ms

    Started early, claude was ready 15 ms after the question, so the rest is the model.

    Through the app on the same Mac, one run each:

    Harness Started on the question --warm 5000
    claude 3,498 ms 5,398 ms
    codex 5,396 ms 2,657 ms

    One pair cannot separate claude's start from its model time, which ranged from 1.2 to 7.6 s across the shell spawns. This issue stays open for more app-level samples. Run them on a machine with a signed-in harness and no other akou running:

    scripts/gates/g7-harness.ts --cli <cli> --real --yes
    scripts/gates/g7-harness.ts --cli <cli> --real --yes --warm 5000
    

    Then put the rows in docs/gates/M0-results.md under "G7: the harness start, 2026-10-11".

  2. GeiserX commented on Oct 23, 2026

    @GeiserX
    OwnerAuthor

    Closing: the wait this issue measured is out of the ask box since 1.1.0.

    • perf(ask): start the harness while the question is typed, so the answer waits only for the model #393 (shipped in 1.1.0 and every release since) starts claude or codex when the ask box gets focus, and the question takes that harness (HarnessSpare, src/main/index.ts; warm() in src/ui/ask.ts). An early-started claude was ready 14 to 18 ms after the question (docs/gates/M0-results.md, G7). What remains is the model's own time, which akou cannot shorten.
    • The "Not known yet" list is answered in the same section. On a Mac mini, the daily-use claude config cost nothing measurable (835 ms with it, 835 ms without), and claude's own start was about 0.45 s; only a slow hook makes it longer. Whether a newer claude starts faster is up to Anthropic.
    • tests/llm-harness.test.ts covers it, including a control that fails when no harness was started early.

    By design, akou ask and agents still start the harness when the question arrives (docs/DESIGN.md, "Ask"). The measuring recipe stays in scripts/gates/g7-harness.ts --warm.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions