@chanto/cli 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -52
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -14,22 +14,17 @@
|
|
|
14
14
|
<img alt="Status: alpha" src="https://img.shields.io/badge/status-alpha-f59e0b">
|
|
15
15
|
<a href="https://scorecard.dev/viewer/?uri=github.com/chanto-sh/chanto"><img alt="OpenSSF Scorecard" src="https://api.scorecard.dev/projects/github.com/chanto-sh/chanto/badge"></a>
|
|
16
16
|
<a href="https://www.bestpractices.dev/projects/15833"><img alt="OpenSSF Best Practices" src="https://www.bestpractices.dev/projects/15833/badge"></a>
|
|
17
|
-
<img alt="Rust" src="https://img.shields.io/badge/Rust-1.95%2B-000000?logo=rust&logoColor=white">
|
|
18
17
|
<img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue">
|
|
19
|
-
<img alt="Local models" src="https://img.shields.io/badge/local-Ollama%20·%20llama.cpp%20·%20vLLM-10b981">
|
|
20
|
-
<img alt="MCP" src="https://img.shields.io/badge/MCP-client%20%2B%20server-6C47FF">
|
|
21
|
-
<img alt="Setup" src="https://img.shields.io/badge/setup-imports%20your%20existing%20config-6C47FF">
|
|
22
18
|
<img alt="Platforms" src="https://img.shields.io/badge/platforms-macOS%20·%20Linux%20·%20Windows-0078D6">
|
|
23
19
|
</p>
|
|
24
20
|
|
|
25
21
|
> [!NOTE]
|
|
26
|
-
> **Chanto is in alpha
|
|
27
|
-
>
|
|
28
|
-
>
|
|
29
|
-
>
|
|
30
|
-
>
|
|
31
|
-
|
|
32
|
-
> Switching from another agent? Chanto reads the config you already have, so you don't start over.
|
|
22
|
+
> **Chanto is in alpha:** expect rough edges and breaking changes before 1.0.
|
|
23
|
+
> It's built by one developer with a lot of help from AI coding agents; CI runs
|
|
24
|
+
> the tests on Linux, macOS and Windows, and the [security model](docs/security-model.md)
|
|
25
|
+
> explains how it protects you. [Issues](https://github.com/chanto-sh/chanto/issues)
|
|
26
|
+
> and feedback are welcome. Switching from another agent? Chanto reads the config
|
|
27
|
+
> you already have.
|
|
33
28
|
|
|
34
29
|
<p align="center">
|
|
35
30
|
<a href="docs/reference.md"><b>Docs</b></a> ·
|
|
@@ -42,32 +37,14 @@
|
|
|
42
37
|
|
|
43
38
|
## Install
|
|
44
39
|
|
|
45
|
-
macOS and Linux:
|
|
46
|
-
|
|
47
40
|
```sh
|
|
48
|
-
curl -fsSL https://chanto.sh/install.sh | sh
|
|
41
|
+
curl -fsSL https://chanto.sh/install.sh | sh # macOS and Linux
|
|
42
|
+
brew install chanto-sh/tap/chanto # Homebrew
|
|
43
|
+
npm i -g @chanto/cli # npm
|
|
44
|
+
cargo install chanto --locked # from source (Rust 1.95+)
|
|
49
45
|
```
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```sh
|
|
54
|
-
brew install chanto-sh/tap/chanto
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
npm, or Cargo (builds from source, needs Rust 1.95+):
|
|
58
|
-
|
|
59
|
-
```sh
|
|
60
|
-
npm i -g @chanto/cli
|
|
61
|
-
cargo install chanto --locked
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Windows (PowerShell):
|
|
65
|
-
|
|
66
|
-
```powershell
|
|
67
|
-
irm https://chanto.sh/install.ps1 | iex
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
The installer checks the download's checksum and puts `chanto` in `~/.local/bin` (it tells you if that isn't on your `PATH`). Update later with `chanto upgrade`. To build from a checkout instead: `./install.sh --from-source` (needs Rust 1.95+).
|
|
47
|
+
On Windows (PowerShell): `irm https://chanto.sh/install.ps1 | iex`. The installers check the release signature and the download's checksum and put `chanto` in `~/.local/bin`; `chanto upgrade` updates it.
|
|
71
48
|
|
|
72
49
|
## First run
|
|
73
50
|
|
|
@@ -114,7 +91,7 @@ In a session:
|
|
|
114
91
|
|
|
115
92
|
| | |
|
|
116
93
|
|---|---|
|
|
117
|
-
| **Fast and lean** | One native binary that starts instantly and stays light on CPU and memory while it works
|
|
94
|
+
| **Fast and lean** | One native binary that starts instantly and stays light on CPU and memory while it works ([benchmarks](#benchmarks)) |
|
|
118
95
|
| **Any model** | Free to start (OpenRouter's free models, Gemini's free tier, or a local model); Ollama, llama.cpp, vLLM and other OpenAI-compatible servers; OpenAI, Anthropic, OpenRouter, DeepSeek and more; your ChatGPT login; Amazon Bedrock, Google Vertex AI and Azure with your cloud credentials |
|
|
119
96
|
| **Safe by default** | Shell commands run in a sandbox on macOS and Linux (on Windows it confines writes only: reads and network aren't restricted), with optional network domain allowlists on macOS and Linux; risky actions need your OK, and auto mode screens commands for you |
|
|
120
97
|
| **Undo** | `/rewind` restores files (including what shell commands changed) and the conversation to any earlier prompt |
|
|
@@ -197,38 +174,33 @@ Every action goes through a permission check first, and secrets are masked befor
|
|
|
197
174
|
|
|
198
175
|
## Benchmarks
|
|
199
176
|
|
|
200
|
-
|
|
177
|
+
Two things are measured, each with the same rules for every agent:
|
|
201
178
|
|
|
202
|
-
|
|
203
|
-
|
|
179
|
+
- **Overhead:** the CPU time and memory an agent spends per turn on its own work, with the model taken out (a local mock answers instantly), every agent at a pinned version.
|
|
180
|
+
- **Task results:** pass rates on coding tasks from public sets (SWE-bench, HumanEval, DS-1000 and others) with the same model for every agent.
|
|
204
181
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
## Repository
|
|
182
|
+
Results, versions and caveats are in [RESULTS.md](https://github.com/chanto-sh/benchmarks/blob/main/RESULTS.md), with every raw result behind them. To check the overhead numbers on your own machine:
|
|
208
183
|
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
classifier/ auto mode's command classifier
|
|
213
|
-
docs/ full reference
|
|
184
|
+
```sh
|
|
185
|
+
git clone https://github.com/chanto-sh/benchmarks.git && cd benchmarks
|
|
186
|
+
python3 reproduce.py --quick # 6 native agents in a few minutes; drop --quick for all 18
|
|
214
187
|
```
|
|
215
188
|
|
|
216
189
|
---
|
|
217
190
|
|
|
218
191
|
## Development
|
|
219
192
|
|
|
220
|
-
|
|
193
|
+
`src/` is the agent, `proto/` the wire types shared with the hosted service, `classifier/` auto mode's command classifier, and `docs/` the reference. It needs Rust 1.95 or newer:
|
|
221
194
|
|
|
222
195
|
```sh
|
|
223
196
|
cargo build # add --release for target/release/chanto
|
|
224
197
|
cargo test
|
|
225
198
|
```
|
|
226
199
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
[
|
|
230
|
-
project is run and where it's going
|
|
231
|
-
[ROADMAP.md](ROADMAP.md); how Chanto defends you: [docs/security-model.md](docs/security-model.md).
|
|
200
|
+
[AGENTS.md](AGENTS.md) has the day-to-day commands and architecture; [CONTRIBUTING.md](CONTRIBUTING.md),
|
|
201
|
+
[SECURITY.md](SECURITY.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) cover contributing, reporting a
|
|
202
|
+
vulnerability and behaviour; [GOVERNANCE.md](GOVERNANCE.md) and [ROADMAP.md](ROADMAP.md) cover how the
|
|
203
|
+
project is run and where it's going.
|
|
232
204
|
|
|
233
205
|
---
|
|
234
206
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chanto/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "A fast, lean coding agent for your terminal",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://chanto.sh",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"node": ">=18"
|
|
20
20
|
},
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"@chanto/cli-darwin-arm64": "0.1.
|
|
23
|
-
"@chanto/cli-darwin-x64": "0.1.
|
|
24
|
-
"@chanto/cli-linux-arm64": "0.1.
|
|
25
|
-
"@chanto/cli-linux-x64": "0.1.
|
|
26
|
-
"@chanto/cli-win32-x64": "0.1.
|
|
22
|
+
"@chanto/cli-darwin-arm64": "0.1.5",
|
|
23
|
+
"@chanto/cli-darwin-x64": "0.1.5",
|
|
24
|
+
"@chanto/cli-linux-arm64": "0.1.5",
|
|
25
|
+
"@chanto/cli-linux-x64": "0.1.5",
|
|
26
|
+
"@chanto/cli-win32-x64": "0.1.5"
|
|
27
27
|
}
|
|
28
28
|
}
|