TWCline – AI Coding Assistant
Meet TWCline, an AI assistant that can use your CLI aNd Editor. Based on the powerful Cline extension. Thanks to Claude 3.7 Sonnet's agentic coding capabilities, TWCline can handle complex software development tasks step-by-step. With tools that let it create & edit files, explore large projects, use the browser, and execute terminal commands (after you grant permission), it can assist you in ways that go beyond code completion or tech support. TWCline can even use the Model Context Protocol (MCP) to create new tools and extend its own capabilities. While autonomous AI scripts traditionally run in sandboxed environments, this extension provides a human-in-the-loop GUI to approve every file change and terminal command, providing a safe and accessible way to explore the potential of agentic AI.
Use any API and ModelTWCline supports API providers like OpenRouter, Anthropic, OpenAI, Google Gemini, AWS Bedrock, Azure, GCP Vertex, and Cerebras. You can also configure any OpenAI compatible API, or use a local model through LM Studio/Ollama. If you're using OpenRouter, the extension fetches their latest model list, allowing you to use the newest models as soon as they're available. The extension also keeps track of total tokens and API usage cost for the entire task loop and individual requests, keeping you informed of spend every step of the way. Run Commands in TerminalThanks to the new shell integration updates in VSCode v1.93, TWCline can execute commands directly in your terminal and receive the output. This allows it to perform a wide range of tasks, from installing packages and running build scripts to deploying applications, managing databases, and executing tests, all while adapting to your dev environment & toolchain to get the job done right. For long running processes like dev servers, use the "Proceed While Running" button to let TWCline continue in the task while the command runs in the background. As TWCline works it'll be notified of any new terminal output along the way, letting it react to issues that may come up, such as compile-time errors when editing files. Create and Edit FilesTWCline can create and edit files directly in your editor, presenting you a diff view of the changes. You can edit or revert TWCline's changes directly in the diff view editor, or provide feedback in chat until you're satisfied with the result. TWCline also monitors linter/compiler errors (missing imports, syntax errors, etc.) so it can fix issues that come up along the way on its own. All changes made by TWCline are recorded in your file's Timeline, providing an easy way to track and revert modifications if needed. Use the BrowserWith Claude 3.5 Sonnet's new Computer Use capability, TWCline can launch a browser, click elements, type text, and scroll, capturing screenshots and console logs at each step. This allows for interactive debugging, end-to-end testing, and even general web use! This gives it autonomy to fixing visual bugs and runtime issues without you needing to handhold and copy-pasting error logs yourself. Try asking TWCline to "test the app", and watch as it runs a command like "add a tool that..."Thanks to the Model Context Protocol, TWCline can extend its capabilities through custom tools. While you can use community-made servers, TWCline can instead create and install tools tailored to your specific workflow. Just ask TWCline to "add a tool" and it will handle everything, from creating a new MCP server to installing it into the extension. These custom tools then become part of TWCline's toolkit, ready to use in future tasks.
Add Context
Checkpoints: Compare and RestoreAs TWCline works through a task, the extension takes a snapshot of your workspace at each step. You can use the 'Compare' button to see a diff between the snapshot and your current workspace, and the 'Restore' button to roll back to that point. For example, when working with a local web server, you can use 'Restore Workspace Only' to quickly test different versions of your app, then use 'Restore Task and Workspace' when you find the version you want to continue building from. This lets you safely explore different approaches without losing progress. About TWClineTWCline is based on the excellent Cline extension and maintains all of its powerful features while providing a separate, independently maintained version. ContributingTo contribute to TWCline, please visit our GitHub repository and check out the issues and discussions. Local Development Instructions
License |