CodeClick VS Code Extension
CodeClick is your intelligent developer assistant for Visual Studio Code, designed to streamline code analysis, refactoring, and test automation. With simple, high-level commands, CodeClick helps you understand your codebase, implement changes, and ensure robust test coverage—without leaving your editor.
🚀 Features
codescan
Deeply analyzes your repository, detects architecture, endpoints, dependencies, and provides concise, actionable summaries and diagrams.
codechange
Guides you through bug fixes, enhancements, and new features using a phased, approval-driven workflow. Clarifies requirements, plans changes, implements, verifies, builds, and summarizes—all interactively.
codetest
Automates unit test generation. Lets you target specific methods, classes, or cases, or improves overall code coverage (up to 80%). Organizes tests by class/method, runs and reports results, and iterates until your coverage goal is met.
🛠️ Commands & Usage
1. codescan
- Purpose: Analyze and summarize your codebase.
- Usage:
Open the command palette (Ctrl+Shift+P ) and type codescan .
- Output:
- High-level overview
- Architecture diagrams (like Mermaid)
- Major modules, endpoints, dependencies
2. codechange
- Purpose: Make code changes the right way.
- Usage:
Open the command palette and type codechange .
- Workflow:
- Requirement Gathering: Agent asks what you want to change (bug, enhancement, new feature) and for details.
- Phase 0: Analyzes your requirement, creates a plan, and waits for your approval.
- Phase 1: Implements code changes.
- Phase 2: Verifies the change.
- Phase 3: Builds the project.
- Phase 4: Summarizes what was done and prompts you to review/run.
- Approval Required: At each phase, you approve before proceeding.
3. codetest
- Purpose: Automate and organize unit testing.
- Usage:
Open the command palette and type codetest .
- Workflow:
- Agent asks if you want to:
- Test a specific method/class
- Cover a specific case
- Achieve 80%+ code coverage overall
- Test Organization:
- Creates a folder for each class and a file for each method.
- Adds all test cases for a method in its file.
- Build & Run: Runs tests, checks coverage, and iterates until your goal is met.
- Reports: Summarizes coverage, successes, and failures.
📂 Test File Organization
/tests/ClassName/ — Folder for each class
test_methodName.spec.[js|ts|py|...] — File for each method, with all its test cases
🧑💻 Example Usage
codescan
"Summarize my project structure, dependencies, and endpoints."
codechange
"Guide me through fixing a bug or implementing a new feature. Plan, code, verify, and build interactively."
codetest
"Write unit tests for calculateTotal in OrderService , or help reach 80% overall test coverage."
🙌 Why CodeClick?
- Conversational: Asks only what it needs, one question at a time.
- Safe: Never hallucinates or assumes—uses only facts and your input.
- Phased & Interactive: You approve every step.
- Organized: Keeps tests and changes clear and maintainable.
- Fast: Automates repetitive tasks so you can focus on logic and design.
📝 License
MIT
💬 Feedback & Contributions
Have suggestions or want to contribute?
Open an issue or pull request at github.com/cubeclick/codeclick!
| |