TokOps for VS CodeTokOps is an AI-powered coding assistant for Visual Studio Code that helps developers generate, explain, refactor, and test code with efficient context handling and cost-aware LLM routing. TokOps supports both tagged-file workflows and untagged workspace requests. Developers can ask questions or request edits without manually attaching every file, while TokOps identifies likely workspace context before sending the request for analysis. FeaturesAI Chat AssistantInteract with an AI coding assistant directly inside Visual Studio Code. Ask questions about your codebase, request implementation changes, troubleshoot issues, and receive actionable code suggestions. Untagged Workspace RequestsAsk questions without manually attaching files. TokOps can use available workspace context such as:
For high-confidence requests, TokOps automatically gathers likely source files before analysis. For low-confidence requests, TokOps asks for clarification instead of guessing or applying changes to the wrong file. Context-Aware AnalysisAttach files manually when you want explicit control over context. For untagged requests, TokOps can identify likely files based on function names, class names, file names, routes, diagnostics, and workspace symbols. Code ExplanationExplain functions, classes, modules, selected code blocks, and implementation flows. Example:
Code RefactoringRequest safe refactoring for selected code or workspace files. TokOps supports refactoring tasks such as:
Safe Code ChangesTokOps validates generated code changes before applying them. For edits and refactors:
Test GenerationGenerate unit tests for existing functions, classes, modules, and workflows. TokOps can help create:
Missing Context RetrievalWhen additional files are required, TokOps can request them through the existing job workflow. The extension retrieves requested files, supplies them to the backend, and continues the same analysis job without requiring the user to restart the request. Multi-File AnalysisTokOps supports analysis and code changes across multiple files. When a request affects dependencies, imports, callers, routes, or related modules, TokOps can retrieve and analyze the required files before producing changes. Cost OptimizationTokOps intelligently routes requests and limits context to relevant files. This helps reduce unnecessary token usage while preserving useful code context for explanations, edits, refactors, and test generation. Installation
You can either attach files manually or ask questions directly from your workspace. Usage ExamplesExplain a Function
Rename a Function
Request a Refactor
Generate Tests
Fix an Error
For vague requests such as:
TokOps may ask for clarification if it cannot safely identify the correct file or error context. Extension SettingsTokOps contributes the following setting:
Requirements
Supported Workflows
Known Issues
Release Notes0.1.0First production release of TokOps. Included features:
0.0.1Initial public release. Included features:
|