diff --git a/.changeset/restore-kilo-env-var.md b/.changeset/restore-kilo-env-var.md new file mode 100644 index 00000000000..9c49549c0b4 --- /dev/null +++ b/.changeset/restore-kilo-env-var.md @@ -0,0 +1,5 @@ +--- +"@kilocode/cli": patch +--- + +Restore the `KILO=1` environment variable so plugins and tooling can distinguish the Kilo CLI from upstream OpenCode. diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index 75194f13cf1..29245244b0f 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -135,7 +135,7 @@ let cli = yargs(args) // kilocode_change Heap.start() process.env.AGENT = "1" - process.env.OPENCODE = "1" + process.env.KILO = "1" process.env.KILO_PID = String(process.pid) Log.Default.info("opencode", {