Merge pull request #7444 from Kilo-Org/feat/cli-config-awareness

feat(cli): add config location awareness
This commit is contained in:
Marian Alexandru Alecu
2026-03-23 22:27:44 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
@@ -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}",
]
+3
View File
@@ -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
`</env>`,
`<directories>`,