File size: 2,819 Bytes
e5beafb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
tags:
  - codesync
  - devshub
  - decision-model
  - developer-tools
pipeline_tag: text-classification
---

# CodeSync Knack

**The free, private judgment model behind CodeSync.**

Every time you send CodeSync a message or it runs a shell command, it makes dozens of quick
calls: Is this command risky? Will it run forever? Are you asking to continue earlier work?
Is this a question or a task? Which mode fits? Knack makes those calls on your own machine,
in about 10 milliseconds.

- **Free.** Ships with every CodeSync install. No API key, no account, no usage limits.
- **Private.** Runs locally. Your prompts and commands never leave your machine to be judged.
- **Fast.** About 10 ms per decision on a GPU, about 250 ms on a plain CPU.
- **Small.** About 1 GB on disk. Installs itself in the background after CodeSync starts.
- **Accurate where it matters.** Trained on real CodeSync sessions, with extra focus on the
  rare cases that cost the most when missed: destructive deletes, commands that never exit,
  resuming interrupted work, refactor / test / documentation requests.

## Results

Measured on CodeSync's own judgments (version v3, November 2026):

| Benchmark | Knack v3 | What it measures |
|---|---:|---|
| Hand-labelled set | **97.9%** | 233 decisions labelled by hand |
| Held-out set | **95.5%** | 3,267 decisions from real sessions, never trained on |
| Rare-case set | **93.7%** | 4,120 decisions on the hardest, rarest cases |
| Latency | **13 ms** | median per request on a laptop GPU |

## How to get it

Install CodeSync. That's it.

```bash
curl -fsSL https://app.devshub.ai/install.sh | bash
```

The installer stays as fast as before. On first start, CodeSync downloads Knack in the
background and keeps working while it does. Once Knack is ready it becomes CodeSync's first
judgment engine, and new versions are picked up automatically.

To turn it off: `CODESYNC_KNACK_DISABLED=1`.

## What it decides

Knack answers CodeSync's fixed set of 29 decisions:

- **Every turn (21):** task intent, routing and reasoning depth, plan / ask / build mode,
  new task vs continuing work, resume requests, screencast start and stop, browser and
  messaging needs, whether the request is chat or a task, and more.
- **Every shell command (8):** risk level, activity type, long-running or not, whether it
  verifies, mutates the repo, deploys, needs a running app, or starts a server.

It only answers the questions it was trained on. Anything else is passed to CodeSync's
cloud judgment service, so a new kind of question never gets a guess.

## Files

| File | Purpose |
|---|---|
| `manifest.json` | current version, archive URL, sha256 (read by CodeSync) |
| `knack-<version>.tar.gz` | the model folder |

Built by [DevsHub](https://app.devshub.ai) for [CodeSync](https://app.devshub.ai).