Skip to content

Add Kilo CLI to OpenClaw tools.md #1351

@St0rmz1

Description

@St0rmz1

Context

Users report OpenClaw says the Kilo CLI is "not available" or
"not found". The kilo binary is baked into the image and
TOOLS.md has a static Kilo CLI section — but TOOLS.md is only
seeded on fresh provision. Existing instances provisioned
before the section was added never got it. There's no dynamic
update like there is for Google Workspace. Fix: add dynamic
injection in bootstrap, gated on KILOCLAW_KILO_CLI.

Changes

  1. kiloclaw/controller/src/bootstrap.ts

Add updateToolsMdKiloCliSection(env, deps) following the
updateToolsMdGoogleSection pattern (lines 391-443):

  • Add marker constants: KILO_CLI_MARKER_BEGIN () and KILO_CLI_MARKER_END ()
  • Add KILO_CLI_TOOLS_SECTION constant with the same content
    currently in container/TOOLS.md lines 9-17, wrapped in markers
  • Function logic: if KILOCLAW_KILO_CLI === 'true', append
    section (skip if marker already present). If flag is
    absent/false, remove stale section if present.
  • Export the function
  • Call it in bootstrap() next to updateToolsMdGoogleSection
    (line 499)
  1. kiloclaw/container/TOOLS.md

Wrap the existing Kilo CLI section (lines 9-17) with the same
markers so the dynamic function recognizes it on fresh installs
and doesn't duplicate it.

  1. kiloclaw/controller/src/bootstrap.test.ts

Add tests for updateToolsMdKiloCliSection:

  • Adds section when KILOCLAW_KILO_CLI === 'true' and marker not
    present
  • Skips if marker already present (idempotent)
  • Removes stale section when flag is absent
  • No-ops when TOOLS.md doesn't exist

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomerskilo-auto-fixAuto-generated label by Kilokilo-triagedAuto-generated label by Kilo

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions