Skip to content

0.1.2 HW1: Kilo Code CLI as a local harness row #2434

Done

Description

@jparker2006

Parent

Ticket HW1 of spec #2424 (0.1.2), the Kilo Code CLI harness row. Size: S.

What to build

kilo as a harness row on the local driver, in the shape the harness-row contract (HR1) fixes, built in its own folder and stacked as a draft on HR1's branch until it merges.

  • Start: kilo run --format json "<p>".
  • Wake (same run): kilo run -s <sessionID> "<msg>".
  • Stop: end the process tree; kilo daemon stop exists.
  • Login: kilo auth login, stored under ~/.local/share/kilo. The row never reads, sets or stores a key.
  • Effort: settle from primary sources which flag, setting or environment value sets the CLI's reasoning effort, and map each effort value to it in the row (an {effort} placeholder or a fixed environment setting), or declare effort none with its reason and source, in the row, its README and the driver's version answer, as the contract requires. The effort start field is driver v1's change, 0.1.2 spec: Effort everywhere: every driver passes the user's effort, or says plainly it can't #2471.
  • Permission mode: map the owner's approved mode to the CLI's own option, as the contract says, or refuse with a clear next if the CLI has no safe equivalent.

Settle this fact first, from primary sources (kilo run --help v7.8.32 and the Kilo CLI docs; read only, no sign-up, no paid call): Does kilo run use the background daemon by default, and does a stop leave it running? If it does, the row must start the run without the daemon or stop it with the run, never another user's session. Record the answer with its sources in the row's README. If it comes back against the row (no same-run wake, or a stop that cannot leave nothing running), stop and report with the evidence instead of building.

Owned paths

  • adapters/local/harnesses/kilo/ (new: the row file, its fake CLI, its README with the login line and the fact's resolution, an optional row test, and its evidence folder)

Relies on: nothing

Links

Acceptance criteria

  • The row's fact is settled from cited primary sources in its README.
  • HR1's harness check discovers the row and it passes the contract checks and the driver kit's five checks with its fake CLI, red first.
  • Effort: a claimed effort reaches the fake CLI's arguments or environment in HR1's runner; or the row declares none with its reason and source, and a start carrying an effort refuses with a D3 error and starts nothing, never falling back to a default.
  • Not installed and not signed in each give a JSON error whose next says what to do; a stop leaves no process of the run, including any background service the CLI started.

Proof

P1 and P2: HR1's harness check on this row, red first, and the cited fact.

Activity

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started (the 0.1.2 lead's direct start; Opus 5.5 Medium builder), stacked as a draft on wave 1's HR1 (#2431, branch room/2431-harness-rows) for the 30-agent push. Hand checks: open, only ready-for-agent, no claim, builder or pull request yet; #2431 open, so this stays a draft until it merges; owns only its own harness folder, which no open pull request touches.

  4. added
    held
    and removed
    ready-for-agent
    on Nov 22, 2026
  5. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Plan change coming (hold-first): wave 1's harness-row contract (#2431) now requires every row to take effort, as a mapping or as an explicit none with its source, with the effort start field from #2471. This ticket's body gains that acceptance line; it is held until the new approval. Its builder has been told and keeps working.

  6. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder question on the effort rule (J318), for the lead.

    Fact (Kilo CLI v7.8.32, read only): reasoning effort is kilo run --variant <name> (--help: "model variant (provider-specific reasoning effort, e.g., high, max, minimal)"). The values every reasoning provider shares are low, medium, high (WIDELY_SUPPORTED_EFFORTS in packages/opencode/src/provider/transform.ts).

    Gap: if the chosen model doesn't define the variant, Kilo silently adds nothing: model.variants[variant], else {} (packages/opencode/src/session/llm/request.ts, lines 98-101). So the row can pass the flag, and HR1's runner can prove it reaches argv, but the CLI itself may drop it for a model with no such variant.

    Options:

    1. Form (a): map low/medium/high to --variant {effort}, refuse any other effort with D3, and state Kilo's own per-model drop plainly in the README.
    2. Form (b) none: claim no effort, because Kilo can't promise it is honoured.
    3. Before each turn, check the variant against kilo models <provider> --verbose. This adds a CLI call and a parse the contract doesn't define.

    My pick: 1. The row never falls back itself; the drop is the CLI's, documented with its source. I'm building option 1 unless you rule otherwise.

  7. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: Claude Code
    model: Opus 5.5
    skills: build-ticket@0.2.2
    step: The kilo row is built red first and passes HR1's runner on fixtures; draft pull request open, stacked on HR1.
    time: 2026-11-22T23:53:15Z
    pr: #2640

  8. added
    ready-for-agent
    and removed
    held
    on Nov 22, 2026
  9. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Lead ruling on the effort options above: the contract forbids a silent fallback, so option 1 alone is not enough. If Kilo has a documented, read-only way to list the chosen model's variants without a paid call (for example its own models command), the row checks the effort against it before the start and refuses with a D3 error when the model lacks it (your option 3, inside the row's own start). If there is no such way, declare effort none with that reason and source (option 2). Either way, state Kilo's per-model behaviour in the README.

  10. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder: per the ruling, option 3 is possible. kilo models <provider> --verbose (v7.8.32, cli/cmd/models.ts) is read-only, needs no sign-in and makes no model call. It prints each model as <provider>/<model> and then its JSON, including the variants object that --variant looks up. A signed-out run on an empty home listed every model with its variants. The row checks the effort against it before the turn and refuses with D3 when the model lacks it. Open point for HR1's contract: a row needs somewhere to run that check before the turn (a pre-start check, or a shim in the row folder as program). If the contract has no such place when it lands, I'll ask here rather than edit HR1's files.

  11. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Lead ruling, updated: the harness-row contract keeps rows as data only, so a pre-start check has no place yet. Kilo declares effort none now, with its reason and sources; the README notes that Kilo's read-only model list could check it once a later declarative check field exists.

  12. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Lead ruling, final (planner's final word, superseding every earlier ruling here): HR1 itself carries the optional signed_out patterns and login_command (its revision 4); #2538 does not. When HR1's head moves, this row merges HR1's branch in (never rebase), fills both fields for its CLI's signed-out output, and its not-signed-in check passes. Until then that check stays red.

  13. added 8 commits that reference this issue on Nov 22, 2026
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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions