使 CoPilot 成为交互式程序员 logo

使 CoPilot 成为交互式程序员

Organization
BetterThanTomorrow

VS Code AI Agent Interactive Programming. Tools for CoPIlot and other assistants. Can also be used as an MCP server.

PublisherBetterThanTomorrow
Repositorycalva-backseat-driver
LanguageClojure
Forks
5
Stars
64
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    使 CoPilot 成为交互式程序员 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    64 stars and 5 forks from the linked repository.

Enabling Native AI Interactive Programming in VS Code

Clojure Tools for VS Code Agent harnesses. (Such as Copilot and Cursor.)

VS Code Extension Issues License

Backseat Driver gives VS Code AI harnesses access to Calva's Clojure tools these ways:

  1. Copilot: Zero config. (Using VS Code LM Tools.).
  2. Cursor, Zero config. (Using Cursor add-MCP-server API).
  3. Other AI harnesses: MCP (Requiring some configuration per project).

Features

  • Tool: Evaluate Code Access to the Clojure REPL to evaluate code at will. All active REPL sessions in Calva are available for targeting (and with shadow-cljs, also builds and runtime).
  • Tool: Edit Clojure Files Structural create and edit files, supporting batches. Includes:
    • Create Clojure File Creates Clojure files with automatic bracket balancing
    • Append Code Appends code to Clojure files with automatic bracket balancing
    • Replace Top Level Form Structural editing, including formatting, bracket balancing and linting
    • Insert Top Level Form Structural editing, including formatting, bracket balancing and linting
  • Tool: Bracket Balancer Helps the model get the bracket balance right (powered by Parinfer)
  • Tool: Load File Load/evaluate an entire Clojure file through Calva's connected REPL
  • Tool: Symbol info lookup, the AI can look up symbols it is interested in, and will get doc strings, argument info etcetera
  • Tool: clojuredocs.org lookup, docs, examples, and see also information on Clojure core-ish symbols
  • Resource: Symbol info lookup, (a bit experimental) same as the tool
  • Resource: clojuredocs.org lookup, (a bit experimental) same as the tool
  • Resource: Skills, specialized instructions discoverable via resources/list and readable via resources/read

Please note that for the editing tools there is no UI for reviewing the edits. I suggest using the source control tools, and VS Codes's Timeline view, for this.

Agent Instructions: Leveraging Backseat Driver

Backseat Driver gives the AI agent the tools for Clojure Interactive Programming and the skills for using the tools. To allow you to keep the control of how your agents hold Clojure and the REPL, the extension does not provide much in the way of Clojure knowledge, philosophy, nor for REPL methodology.

For truly effective agent Clojure work to happen, it needs to know how you prefer Clojure to be written and how to use the REPL effectively.

To avoid starting with a blank slate, where bad training data and hallucinations about Clojure ruin the day, consider installing the clojure, and other plugins from the Awesome Backseat Driver repository.

[!NOTE] Awesome Backseat Driver has plugins for Copilot and Cursor (so far). But if you are using some other haress, you can still copy the skills, custom agents, etc from there. (Or ask your agent to do it for you.)

Configuring Backseat Driver

Evaluation result size limiting

To prevent large REPL evaluation results from overwhelming the agent's context window, Backseat Driver automatically limits the size of returned results:

  • calva-backseat-driver.evaluation.maxLength (default 25) — maximum number of items to display in collections. Use 0 to disable length limiting.
  • calva-backseat-driver.evaluation.maxDepth (default 7) — maximum nesting depth; deeper structures are replaced with ##. Use 0 to disable depth limiting.

Skills

Backseat Driver provides two skills to AI agents:

  • calva-backseat-driver.provideBdSkill (default true) — provide the Backseat Driver skill to agents
  • calva-backseat-driver.provideEditSkill (default true) — provide the Clojure structural editing skill to agents

Editor configuration

The structural editing tools for inserting and replacing top level forms respect two Backseat Driver editor settings:

  • calva-backseat-driver.editor.fuzzyLineTargetingPadding (default 2) — number of lines on each side of the requested line that the AI is allowed to scan when matching target text. Increase this if forms move around during larger refactorings; set to 0 for exact line targeting. Trade-off: higher values tolerate line shifts but raise the risk of matching a nearby, similar form when the agent's copy of the buffer is stale.
  • calva-backseat-driver.editor.lineContextResponsePadding (default 10) — number of lines on each side of the requested line included in the troubleshooting snippet returned when targeting fails. Reduce this to keep responses shorter, or increase it for more surrounding context. Trade-off: larger values give the agent more cues for a retry, but can cost extra tokens (or time) compared with sending a focused snippet.

MCP

See: Configure Backseat Driver as an MCP server

Getting Started

Prerequisites

Using

  1. Teach the AI Clojure and REPL discipline, e.g. See: Agent Instructions
  2. Connect Calva to your Clojure/ClojureScript project
  3. Ask Copilot to help you with things. It will know what you mean when you say: "Please use the REPL to investigate ...".
  • It will know how to find the right REPL session and how to use it.
  • Configure Calva to use the terminal for REPL output and monitor the output terminal to see what it tries at the REPL

It works very well will subagents, also parallel subagents. Try something like:

  1. "Please task three parallel subagents to use the REPL to investigate how to implement ...”
  • The REPL output will show you, and the agents, who is trying what at the REPL.
  • You can participate in the REPL party.

WIP

As we all are, I am learning to use AI and figuring out one thing at a time. All while the whole space is moving faster than I can learn. Backseat Driver is my very best effort to provide Clojure developers with powerful AI tools that can be used with zero configuration.

The basic design of Backseat Driver has proven to work and be useful over time. But I have also been improving it incrementally as I have learnt new things. A lot of these things I have learnt from users.

Please, please let me know how you fare with Backseat Driver, and what features you would like to see. 🙏

Contributing

Contributions are welcome! Issues, PRs, whatever. Before a PR, I appreciate an issue stating the problem being solved. You may also want to reach out discussing the issue before starting to work on it.

License 🍻🗽

MIT

Please sponsor my open source work ♥️

You are welcome to encourage my work, using this link:

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "betterthantomorrow-calva-backseat-driver": {
      "command": "npx",
      "args": [
        "-y",
        "calva-backseat-driver"
      ]
    }
  }
}

Use 使 CoPilot 成为交互式程序员 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 使 CoPilot 成为交互式程序员 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 使 CoPilot 成为交互式程序员 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 使 CoPilot 成为交互式程序员 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "betterthantomorrow-calva-backseat-driver": {
      "command": "npx",
      "args": [
        "-y",
        "calva-backseat-driver"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 使 CoPilot 成为交互式程序员 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 使 CoPilot 成为交互式程序员 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 使 CoPilot 成为交互式程序员 to help me with this task?
使 CoPilot 成为交互式程序员
Sure. I read it.
Here is what I found using 使 CoPilot 成为交互式程序员.

Frequently asked questions

What is the 使 CoPilot 成为交互式程序员 MCP server used for?

使 CoPilot 成为交互式程序员 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 使 CoPilot 成为交互式程序员 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 使 CoPilot 成为交互式程序员 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 使 CoPilot 成为交互式程序员 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 使 CoPilot 成为交互式程序员 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 使 CoPilot 成为交互式程序员 MCP to TypingMind?

使 CoPilot 成为交互式程序员 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does 使 CoPilot 成为交互式程序员 MCP provide in TypingMind?

使 CoPilot 成为交互式程序员 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 使 CoPilot 成为交互式程序员 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 使 CoPilot 成为交互式程序员 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇