Skip to content

feat: proactive workspace analysis + Kimi K2.5 file-tree injection (v1.2.0)#5

Merged
codomium merged 2 commits intomainfrom
copilot/analyze-feedback-system
Apr 17, 2026
Merged

feat: proactive workspace analysis + Kimi K2.5 file-tree injection (v1.2.0)#5
codomium merged 2 commits intomainfrom
copilot/analyze-feedback-system

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 17, 2026

NVIDIA NIM rejects chat_template_kwargs.thinking + tools in the same request, leaving Kimi K2.5 and DeepSeek R1 with zero tool access and a one-liner system prompt — so they ask users to paste code instead of reading the workspace. All models also lacked any instruction to explore proactively.

v2/src/core/system-prompt.mjs

  • buildWorkspaceSnapshot(cwd, maxFiles=200) (new export) — recursive readdirSync walk skipping node_modules, .git, dist, .next, __pycache__, etc. and hidden files (except a whitelist of common config dotfiles); returns a capped indented tree or '' on error
  • Agentic base preamble replaces "You are an AI coding assistant." — declares cwd, adds a ## Workspace exploration rules block instructing all models to use LS/Glob/Read/Grep/Bash before answering, hard-forbids asking the user to paste code; staticPrefix/dynamicSuffix cache split unchanged

v2/src/core/agent-loop.mjs

  • In callNvidia when supportsThinking=true, appends buildWorkspaceSnapshot(process.cwd()) as a fenced ## Workspace file structure (read-only reference) block to the static system prompt, giving Kimi K2.5 / DeepSeek R1 structural project awareness without tool calls:
const snapshot = buildWorkspaceSnapshot(process.cwd());
systemPrompt = snapshot
    ? base + '\n\n## Workspace file structure (read-only reference)\n\n```\n' + snapshot + '\n```'
    : base;

vscode-extension/

  • package.json: bumped to v1.2.0; thinking-model enumDescriptions note workspace injection; install-vsix script updated
  • README.md: new Proactive workspace analysis feature section; NVIDIA thinking-model explanation; install commands updated to 1.2.0

Root README.md

  • v1.2.0 entry in What's New; NVIDIA note updated; test badge corrected to 913; install commands updated

Copilot AI and others added 2 commits April 17, 2026 20:25
…for Kimi K2.5 / DeepSeek R1

Agent-Logs-Url: https://github.com/codomium/CODE/sessions/d3b22076-f9a7-4793-871a-db2c50c8a74f

Co-authored-by: codomium <255525663+codomium@users.noreply.github.com>
@codomium codomium marked this pull request as ready for review April 17, 2026 20:32
@codomium codomium merged commit e4cbd10 into main Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants