---
title: "Open-source autocomplete in VS Code, Neovim and Zed | Coline"
description: "What an editor needs to run Hence 1: a prompt builder, stop token 248046, thinking off, optional gate.json and guard, and built-in options that skip wiring."
url: https://coline.app/hence/open-source-autocomplete-for-editors
---

[Sign in](https://coline.app/auth/signin)

[Sign up](https://coline.app/auth/signup)

[Sign in](https://coline.app/auth/signin)

[Sign up](https://coline.app/auth/signup)

[Hence 1](https://coline.app/hence)

Updated December 4, 2026

# Using open-source autocomplete models in VS Code, Neovim and Zed

What an editor needs to run Hence 1: a prompt builder, stop token 248046, thinking off, optional gate.json and guard, and built-in options that skip wiring.

To run an open-source autocomplete model in an editor, you need a client that builds the prompt, calls a server, reads the reply and shows it as ghost text. For [Hence 1](https://coline.app/hence), that client must match the model's prompt formats, stop on token 248046, and turn thinking off. Several editors already include an open option, so check those before you write a client.

Coline builds Hence 1 and writes this page.

The [Hence 1 release post](https://coline.app/blog/introducing-hence-1) has the model overview, and the [Hugging Face repo](https://huggingface.co/ColineApp/hence-1) has the files your client depends on.

| Option | Model | Your wiring work | Notes |
| --- | --- | --- | --- |
| Coline Tab | Hence 1 | None. Coline serves it for all workspaces | The Coline path is the only zero-setup route to Hence 1 |
| Zed | Zeta 2.1 (8B), built in | None | On Zed's 32-case eval: Zeta 2.1 27, Hence 1 20 |
| Continue | Instinct, built in | Choose the provider in settings | On the Instinct test set: Instinct 20.9% exact, Hence 1 27.1% |
| Custom client | Hence 1, self-hosted | Prompt builder, parser, gate, repeat guard, ghost text | You own every piece, and every upgrade |

The built-in options save real work. The trade-off is that you cannot pick Hence 1 in them, except through Coline Tab.

## What a client has to do

A working integration does six things in order.

1. **Capture context.** Collect the text before the cursor, the text after it, and the file's language and surface: code, docs, messages, tasks and so on. The surface picks the gate threshold, and notes and calendar get no suggestions.
2. **Build the prompt** in Hence 1's documented format for that surface. Copy the format from `reference.py` and the model card, and do not reconstruct it.
3. **Call the server** with the required parameters: `temperature` 0, `stop_token_ids` [248046], `ignore_eos` true, and `chat_template_kwargs` with `enable_thinking` false. With the OpenAI Python client, pass the nonstandard fields through `extra_body`. Also request the token log-probabilities the gate needs.
4. **Parse the reply.** For code, the reply is completion text. For next-edit, it is `SEARCH`/`REPLACE` blocks that your editor applies to the file.
5. **Gate and guard.** Score the suggestion with `gate.json`, hide it below the surface's threshold, and drop any suggestion that nearly repeats the text before the cursor.
6. **Render.** Show ghost text only after the full suggestion arrives. The gate needs the complete reply, so first-token latency will not be what users see.

Prompt ordering matters for speed. Put stable content first, such as the file header and instructions, then the code before the cursor. Anything that changes on every request goes last. A changed early token forces vLLM's prefix cache to miss from that point on.

## Editor by editor

**VS Code.** There is no built-in path to Hence 1. The hook for ghost text is VS Code's inline completion API. Your options are an extension that accepts a custom OpenAI-compatible endpoint, or a small extension of your own that implements an inline completion provider. For an open model with no custom code, Continue with Instinct is the faster route.

**Neovim.** There is no built-in option. A plugin needs to call an HTTP endpoint and render virtual text, and the six steps above are the work. Neovim is the editor where you will write the most code yourself.

**Zed.** Zed has Zeta 2.1 built in, and Zeta 2.1 is strong on Zed's own eval. We have not verified a Hence 1 provider path for Zed. Check Zed's current docs before you plan one.

**Coline.** Coline Tab runs Hence 1 for all workspaces. There is nothing to wire.

## Testing the client without an editor

Build a small harness that replays recorded cursor positions through your prompt builder and the server. Save real contexts from each surface, with the text before and after the cursor. Run them through the client and check three things: the prompt matches the documented format byte for byte, the reply stops at token 248046, and the gate and guard make the decisions you expect. This catches most integration bugs before anyone sees ghost text.

## What to do before you ship

- Pin the Hugging Face revision, so `gate.json`, `reference.py` and the weights stay in step.
- Test each surface separately. Notes and calendar should produce no ghost text.
- Measure the show rate and accept rate on your own traffic. Coline's numbers come from Coline's endpoint.
- Keep the repeat guard. It catches 0.28% of suggestions in Coline's runs, and prose loops without it.

## Trade-offs

A custom client gives you Hence 1's writing quality and its quiet behavior, but you own the gate, the guard, the prompt format and every upgrade. A built-in option gives you less to maintain and less choice. Pick by what you would rather maintain.

Latency is the other cost. On Coline's endpoint, a code suggestion with a new prompt takes a p50 of 1.11 seconds for the whole suggestion, and a next-edit takes 1.13 seconds. 7B and 8B models on the same GPU run 3 to 5 times faster. If your editor integration needs the fastest code response, a smaller built-in option like Zeta 2.1 or Instinct is the better fit, and Hence 1 is the better fit for writing and a quieter editor.

Related: [Open-source GitHub Copilot alternatives](https://coline.app/hence/open-source-github-copilot-alternatives), [Run Hence 1 with vLLM](https://coline.app/hence/run-hence-1-with-vllm), [Confidence gate](https://coline.app/hence/autocomplete-confidence-gate), [Self-hosted AI autocomplete](https://coline.app/hence/self-hosted-ai-autocomplete), [Hence 1 vs Zeta 2.1](https://coline.app/hence/hence-1-vs-zeta-2-1), [Hence 1 vs Continue Instinct](https://coline.app/hence/hence-1-vs-continue-instinct)

## Frequently asked questions

Can I use Hence 1 in VS Code?

Not out of the box. You can point an OpenAI-compatible client at a vLLM server running Hence 1, but you must build the prompt in Hence 1's formats and send the stop token and thinking settings. If you only want an open model with no custom work, Continue with Instinct is the simpler option.

Which editors include an open-source autocomplete option?

Zed has Zeta built in, so you can use it without wiring anything. Continue offers Instinct. In Coline, Coline Tab runs Hence 1 for all workspaces, with nothing to wire. We have not verified a Hence 1 provider path for Zed, so check Zed's current docs before you plan around one.

Do I need the confidence gate in an editor integration?

It is optional at the protocol level, but Hence 1's quiet behavior comes from gate.json. The 99.2% quiet rate is measured with the gate on, so if you skip it, measure the quiet rate in your own editor before you rely on it.

[Explore Hence 1](https://coline.app/hence) [All Hence 1 guides](https://coline.app/hence/guides)
