Skip to content

[Bug]: Token usage not reduced when using context-mode with VS Code Copilot #567

@Rajan-p-simform

Description

@Rajan-p-simform

Platform

VS Code Copilot (GitHub Copilot)

context-mode version

1.0.131

Debug script output (REQUIRED)

{
  "version": "2.0.0",
  "summary": { "pass": 24, "fail": 5, "total": 29 },
  "key_failures": {
    "better-sqlite3": "✗ .node binary missing, require() fails",
    "build": "✗ build/ directory missing",
    "sqlite": "✗ FTS5 in-memory test failed",
    "hooks": "✗ PreToolUse denies WebFetch failed"
  },
  "system": {
    "OS": "macOS 26.0.1, Apple M2 (ARM64)",
    "Node": "v24.11.1, ABI 137",
    "Install": "npm global, version 1.0.131"
  }
}

Exact prompt that triggered the bug (REQUIRED)

I have tried by multiple prompts, first was : 
get all the date from this repo about the open and closed issues and explain me the issue 
use github mcp for fetching the github issues 

second was : Provide offline support for pickup module in a project

Full error output (REQUIRED)

Token usage stays the same or increases vs. without context-mode, visible in VS Code Output → GitHub Copilot Agent logs.

No explicit errors shown. Debug script reveals:

better-sqlite3 .node binary missing
SQLite FTS5 test fails
Token usage unchanged (2000+ tokens with/without context-mode)

Steps to reproduce (REQUIRED)

macOS 26.0.1, Apple M2, Node v24.11.1
setup context mode with hooks as mentioned in readme
Use VS Code + GitHub Copilot with any prompt
Check the token usage from Agent debug logs

here the token usage with the context mode is more

What have you tried to fix it?

Ran /context-mode:ctx-upgrade, restarted
Confirmed version 1.0.131 (latest)
Searched for similar issues

Tried a lot with using AI but could not find any solution

Pre-submission checklist

  • I have run the debug script and pasted the output above
  • I am using the latest version of context-mode
  • I have searched existing issues for duplicates
  • I have included steps to reproduce the issue

Operating System

macOS (Apple Silicon)

JS Runtime

Node.js v24.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions