[Feature Request] Custom metrics and hooks support for insights command

Resolved 💬 2 comments Opened Mar 6, 2026 by iamseanmillare Closed Apr 3, 2026

Bug Description
Love the insights command. Having the chance to personally customized it or even add additional metrics and hooks capability can make it even more powerful

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.69
  • Feedback ID: 149571ed-536b-4750-882e-395c4e71654e

Errors

[{"error":"MaxFileReadTokenExceededError: File content (117680 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at mef (B:/~BUN/root/src/entrypoints/cli.js:1468:8099)\n    at async def (B:/~BUN/root/src/entrypoints/cli.js:1472:2489)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:1477:5681)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:07:00.411Z"},{"error":"MaxFileReadTokenExceededError: File content (114958 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at mef (B:/~BUN/root/src/entrypoints/cli.js:1468:8099)\n    at async def (B:/~BUN/root/src/entrypoints/cli.js:1472:2489)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:1477:5681)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:07:05.874Z"},{"error":"MaxFileReadTokenExceededError: File content (113391 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at mef (B:/~BUN/root/src/entrypoints/cli.js:1468:8099)\n    at async def (B:/~BUN/root/src/entrypoints/cli.js:1472:2489)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:1477:5681)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:07:33.996Z"},{"error":"o78: Diagnostics file path mismatch: expected C:\\Users\\dazem\\projects\\mich-kopikart\\index.html, got file://c:\\users\\dazem\\projects\\mich-kopikart\\index.html/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:5894:46603)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:2717:3367)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:09:21.112Z"},{"error":"MaxFileReadTokenExceededError: File content (113322 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at mef (B:/~BUN/root/src/entrypoints/cli.js:1468:8099)\n    at async def (B:/~BUN/root/src/entrypoints/cli.js:1472:2489)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:1477:5681)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:13:22.769Z"},{"error":"o78: Diagnostics file path mismatch: expected C:\\Users\\dazem\\projects\\mich-kopikart\\README.md, got file://c:\\users\\dazem\\projects\\mich-kopikart\\readme.md/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:5894:46603)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:2717:3367)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:16:21.486Z"},{"error":"o78: Diagnostics file path mismatch: expected C:\\Users\\dazem\\projects\\mich-kopikart\\index.html, got file://c:\\users\\dazem\\projects\\mich-kopikart\\index.html/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:5894:46603)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:5910:880)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:19:10.790Z"},{"error":"o78: Diagnostics file path mismatch: expected C:\\Users\\dazem\\projects\\mich-kopikart\\index.html, got file://c:\\users\\dazem\\projects\\mich-kopikart\\index.html/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:5894:46603)\n    at async call (B:/~BUN/root/src/entrypoints/cli.js:5910:880)\n    at async fa9 (B:/~BUN/root/src/entrypoints/cli.js:3517:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T18:24:08.509Z"},{"error":"o78: Diagnostics file path mismatch: expected C:\\Users\\dazem\\projects\\mich-kopikart\\index.html, got file://c:\\users\\dazem\\projects\\mich-kopikart\\index.html/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:5894:46603)\n    at async call (B:/~BUN/root…

Note: Content was truncated.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗