diff --git a/packages/opencode/src/kilocode/components/tips.tsx b/packages/opencode/src/kilocode/components/tips.tsx index e485afb3274..5dd5981eeb3 100644 --- a/packages/opencode/src/kilocode/components/tips.tsx +++ b/packages/opencode/src/kilocode/components/tips.tsx @@ -142,4 +142,5 @@ const TIPS = [ "Run {highlight}/help{/highlight} to show the help dialog", "Use {highlight}/rename{/highlight} to rename the current session", "Press {highlight}Ctrl+Z{/highlight} to suspend the terminal and return to your shell", + "Doing something often? Ask Kilo to save it as a {highlight}/command{/highlight}", ] diff --git a/packages/opencode/src/session/system.ts b/packages/opencode/src/session/system.ts index 348fd881062..1550d03398b 100644 --- a/packages/opencode/src/session/system.ts +++ b/packages/opencode/src/session/system.ts @@ -1,5 +1,6 @@ import { Ripgrep } from "../file/ripgrep" +import { Global } from "../global" // kilocode_change import { Instance } from "../project/instance" import PROMPT_ANTHROPIC from "./prompt/anthropic.txt" @@ -67,6 +68,8 @@ export namespace SystemPrompt { ` Working directory: ${Instance.directory}`, ` Is directory a git repo: ${project.vcs === "git" ? "yes" : "no"}`, ` Platform: ${process.platform}`, + ` Project config: .kilo/command/*.md, .kilo/agent/*.md, kilo.json, AGENTS.md. Put new commands and agents in .kilo/. Do not use .kilocode/ or .opencode/.`, // kilocode_change + ` Global config: ${Global.Path.config}/ (same structure)`, // kilocode_change ...staticEnvLines(editorContext), // kilocode_change ``, ``,