anixcode 0.8.0__tar.gz → 0.11.0__tar.gz
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.
- {anixcode-0.8.0/anixcode.egg-info → anixcode-0.11.0}/PKG-INFO +284 -241
- anixcode-0.8.0/PKG-INFO → anixcode-0.11.0/README.md +256 -241
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/__init__.py +1 -1
- anixcode-0.11.0/anixcode/agent.py +716 -0
- anixcode-0.11.0/anixcode/browser.py +406 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/cli.py +85 -11
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/commands.py +25 -6
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/compaction.py +48 -9
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/danger.py +39 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/i18n_en.py +119 -1
- anixcode-0.11.0/anixcode/images.py +331 -0
- anixcode-0.11.0/anixcode/llm.py +626 -0
- anixcode-0.11.0/anixcode/mcp.py +598 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/mentions.py +48 -14
- anixcode-0.11.0/anixcode/prompts.py +140 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/providers.py +4 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/settings.py +53 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/storage.py +27 -10
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tools/__init__.py +8 -2
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tools/base.py +5 -1
- anixcode-0.11.0/anixcode/tools/browser.py +110 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tools/files.py +168 -17
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tools/search.py +5 -4
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tools/shell.py +21 -2
- anixcode-0.11.0/anixcode/tools/todo.py +71 -0
- anixcode-0.11.0/anixcode/tools/web.py +180 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tui/anim.py +24 -23
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tui/app.py +543 -35
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tui/app.tcss +85 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tui/screens.py +8 -8
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tui/widgets.py +233 -9
- anixcode-0.8.0/README.md → anixcode-0.11.0/anixcode.egg-info/PKG-INFO +90 -23
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode.egg-info/SOURCES.txt +10 -1
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode.egg-info/requires.txt +4 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/pyproject.toml +10 -4
- {anixcode-0.8.0 → anixcode-0.11.0}/setup.cfg +4 -4
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_i18n.py +4 -4
- anixcode-0.11.0/tests/test_images.py +203 -0
- anixcode-0.11.0/tests/test_mcp.py +233 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_reliability.py +1 -1
- anixcode-0.11.0/tests/test_v011_features.py +332 -0
- anixcode-0.8.0/anixcode/agent.py +0 -358
- anixcode-0.8.0/anixcode/llm.py +0 -258
- anixcode-0.8.0/anixcode/prompts.py +0 -64
- {anixcode-0.8.0 → anixcode-0.11.0}/LICENSE +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/__main__.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/airpc.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/checkpoints.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/i18n.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/projects.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode/tui/__init__.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode.egg-info/dependency_links.txt +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode.egg-info/entry_points.txt +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/anixcode.egg-info/top_level.txt +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_agent.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_commands.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_llm.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_projects.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_providers.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_safety_mentions.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_settings.py +0 -0
- {anixcode-0.8.0 → anixcode-0.11.0}/tests/test_tools.py +0 -0
|
@@ -1,241 +1,284 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: anixcode
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: AI coding agent for the terminal. Bring your own API key.
|
|
5
|
-
Author: an1zy
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/an1zy/anixcode
|
|
8
|
-
Project-URL:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Classifier:
|
|
13
|
-
Classifier:
|
|
14
|
-
Classifier:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Requires-Dist:
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
|
142
|
-
|
|
143
|
-
| `/
|
|
144
|
-
| `/
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
**
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
settings
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: anixcode
|
|
3
|
+
Version: 0.11.0
|
|
4
|
+
Summary: AI coding agent for the terminal. Bring your own API key.
|
|
5
|
+
Author: an1zy
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/an1zy/anixcode
|
|
8
|
+
Project-URL: Repository, https://github.com/an1zy/anixcode
|
|
9
|
+
Project-URL: Issues, https://github.com/an1zy/anixcode/issues
|
|
10
|
+
Project-URL: PyPI, https://pypi.org/project/anixcode/
|
|
11
|
+
Keywords: ai,agent,ai-agent,coding-agent,coding-assistant,terminal,tui,cli,llm,mcp,model-context-protocol,claude-code,opencode,deepseek,openai,anthropic,gemini,ollama,textual,headless-browser,developer-tools
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Software Development
|
|
16
|
+
Requires-Python: >=3.11
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: textual>=1.0
|
|
20
|
+
Requires-Dist: httpx>=0.27
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
23
|
+
Requires-Dist: ruff>=0.5; extra == "dev"
|
|
24
|
+
Provides-Extra: browser
|
|
25
|
+
Requires-Dist: playwright>=1.45; extra == "browser"
|
|
26
|
+
Requires-Dist: pillow>=10; extra == "browser"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
<div align="center">
|
|
30
|
+
|
|
31
|
+
# ● anixcode
|
|
32
|
+
### *Terminal AI Coding Agent with Diffs, Checkpoints & MCP Support*
|
|
33
|
+
|
|
34
|
+
[](https://github.com/an1zy/anixcode/actions/workflows/tests.yml)
|
|
35
|
+
[](https://pypi.org/project/anixcode/)
|
|
36
|
+
[](https://www.python.org/)
|
|
37
|
+
[](LICENSE)
|
|
38
|
+
|
|
39
|
+
**English** · [Русский](README.ru.md)
|
|
40
|
+
|
|
41
|
+
<br/>
|
|
42
|
+
|
|
43
|
+
<img src="assets/demo.svg" alt="anixcode demo" width="880" />
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
Terminal AI coding agent. Paste an API key from any OpenAI-compatible provider, describe a task, and the agent reads the project, edits files, and runs commands. Every change is shown as a diff, and edits or commands require approval unless full access is enabled.
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
◆ ANIX Code ~/projects/my-app BUILD
|
|
53
|
+
▎ add a /health endpoint to api.py with a test
|
|
54
|
+
✓ → read api.py 84 lines
|
|
55
|
+
✓ ⌕ grep def test_ 6 matches
|
|
56
|
+
✓ ✎ edit api.py +7 −0
|
|
57
|
+
✓ $ pytest -q → 0
|
|
58
|
+
Done: added GET /health and a test in tests/test_api.py, all 7 tests pass.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Install
|
|
62
|
+
|
|
63
|
+
Python 3.11+ is required.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip install anixcode # or: pipx install anixcode
|
|
67
|
+
# or for development:
|
|
68
|
+
git clone https://github.com/an1zy/anixcode && cd anixcode
|
|
69
|
+
pip install -e .
|
|
70
|
+
anixcode # open in the current folder
|
|
71
|
+
anixcode ~/proj # or in a specific one
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
On the first start a connection window opens: choose a provider, paste the key and press “Model list”.
|
|
75
|
+
Any OpenAI-compatible server works:
|
|
76
|
+
|
|
77
|
+
| Provider | Key |
|
|
78
|
+
|---|---|
|
|
79
|
+
| DeepSeek | platform.deepseek.com |
|
|
80
|
+
| OpenAI, Anthropic, Google Gemini, Groq | in their consoles |
|
|
81
|
+
| ANIX Router, Ollama, LM Studio | not needed, they run locally |
|
|
82
|
+
| ★ Your own providers | “+ Own” button: name, `/v1` address, key, “Check” |
|
|
83
|
+
|
|
84
|
+
The model has to support tool calling (function calling).
|
|
85
|
+
|
|
86
|
+
If you start ANIX Code from your home folder or `C:\Windows\System32` (a fresh cmd window), it asks which
|
|
87
|
+
project to work in. Switch projects any time with `Ctrl+P` or by clicking the path in the header; you can
|
|
88
|
+
also paste a `https://github.com/...` link there to clone a repository.
|
|
89
|
+
|
|
90
|
+
The interface language follows your system (Russian or English). Switch it with `/language`.
|
|
91
|
+
|
|
92
|
+
## Usage
|
|
93
|
+
|
|
94
|
+
| Keys | |
|
|
95
|
+
|---|---|
|
|
96
|
+
| `Enter` / `Ctrl+J` | send / new line |
|
|
97
|
+
| `Tab` / `Shift+Tab` | **Build** (edits code) ↔ **Plan** (only reads and plans) |
|
|
98
|
+
| `Esc` | stop the agent |
|
|
99
|
+
| `Ctrl+P` | choose a project: recent, found git repositories, browse disks, clone by link |
|
|
100
|
+
| `F2` | full access on/off |
|
|
101
|
+
| `Ctrl+O` | model and key |
|
|
102
|
+
| `Ctrl+N` / `Ctrl+S` | new session / past sessions |
|
|
103
|
+
| `Ctrl+T` | theme picker with preview: ANIX (peach), Noir (black & white), Tokyo Night, Catppuccin, Dracula, Nord… |
|
|
104
|
+
| `Ctrl+B` | toggle the built-in headless browser panel inside the terminal (no external popup windows) |
|
|
105
|
+
| `Alt+V` | paste an image from clipboard (screenshot or copied file) |
|
|
106
|
+
| `F1` | help |
|
|
107
|
+
|
|
108
|
+
Click an action card to expand its diff or command output.
|
|
109
|
+
Logo and progress animations can be turned off in `settings.json`: `"animations": false`.
|
|
110
|
+
|
|
111
|
+
**Approvals.** When the agent wants to change a file or run a command, a line appears above the input
|
|
112
|
+
(the diff or the command is shown in the card in the chat): `Enter` allows, `Esc` denies, typing text and
|
|
113
|
+
pressing `Enter` denies and tells the agent what to do instead. Dangerous commands (`rm -rf`,
|
|
114
|
+
`Remove-Item -Recurse`, `del /s`, `git push --force`, `git reset --hard`…) are highlighted in red.
|
|
115
|
+
**Full access** (`F2` or click “🔒 ask first” at the bottom right): the agent works without asking until
|
|
116
|
+
you turn it off.
|
|
117
|
+
|
|
118
|
+
**@files.** Type `@` in a prompt to get suggestions of project files (↑↓, Enter or Tab). The whole file is
|
|
119
|
+
sent with the prompt and the agent can edit it right away: `fix the bug in @src/api.py`.
|
|
120
|
+
`@folder/` attaches a listing of the folder. Images (`PNG`, `JPG`, `WEBP`, `GIF`) can be attached via `@image.png`,
|
|
121
|
+
`Alt+V` / `Ctrl+V` from clipboard, drag & drop into the terminal, or `/image [path]`.
|
|
122
|
+
|
|
123
|
+
**Project rules.** `/init`: the agent studies the project and writes `AGENTS.md` (what the project is,
|
|
124
|
+
structure, build and test commands, code style). Add your own rules there, for example “tests use vitest,
|
|
125
|
+
don't touch the legacy folder”. The agent reads this file before every task.
|
|
126
|
+
|
|
127
|
+
**Reliability:**
|
|
128
|
+
- `/undo` reverts all file changes from the agent's last answer (several times in a row, also after a
|
|
129
|
+
restart); `/redo` brings them back. Terminal commands (`bash`) are not undone.
|
|
130
|
+
- The bottom right shows how full the model context is. At 80% the history is compressed automatically:
|
|
131
|
+
old command outputs are removed first, then old steps are folded into a summary. Manually: `/compact`.
|
|
132
|
+
- On network failures, timeouts, 429 and 5xx responses the request is retried up to 4 times.
|
|
133
|
+
- The context size is guessed from the model name. For your own model set it in `settings.json`:
|
|
134
|
+
`"context_window": 128000`.
|
|
135
|
+
|
|
136
|
+
## Commands
|
|
137
|
+
|
|
138
|
+
Type `/` to get the list with descriptions (↑↓, `Tab` completes, `Enter` runs).
|
|
139
|
+
The set follows Claude Code and OpenCode.
|
|
140
|
+
|
|
141
|
+
| Command | |
|
|
142
|
+
|---|---|
|
|
143
|
+
| `/init` | study the project and write `AGENTS.md` |
|
|
144
|
+
| `/review [focus]` | review uncommitted changes (or the last commit) |
|
|
145
|
+
| `/commit [details]` | commit with a good message in the project's style |
|
|
146
|
+
| `/test [what]` | find and run the tests, fix failing ones |
|
|
147
|
+
| `/fix <error>` | fix an error from its text or a description |
|
|
148
|
+
| `/explain <@file>` | explain code |
|
|
149
|
+
| `/pr` | pull request description for the current branch |
|
|
150
|
+
| `/undo` / `/redo` | undo the last answer's changes / bring them back |
|
|
151
|
+
| `/compact` | compress the history |
|
|
152
|
+
| `/new`, `/clear`, `/sessions`, `/resume` | sessions |
|
|
153
|
+
| `/model`, `/connect` | model and key |
|
|
154
|
+
| `/project` | choose a project |
|
|
155
|
+
| `/theme`, `/mode`, `/permissions` | theme, Build/Plan, full access |
|
|
156
|
+
| `/status` | summary: project, model, tokens, context |
|
|
157
|
+
| `/export` | save the session as Markdown |
|
|
158
|
+
| `/doctor` | check git, ripgrep, connection to the model, AI-RPC |
|
|
159
|
+
| `/mcp [add|remove|on|off|tools|reload]` | MCP servers: list, add, remove, turn on/off, show tools, restart |
|
|
160
|
+
| `/goal <objective\|stop>` | autonomous mode: keep iterating and verifying until the goal is complete |
|
|
161
|
+
| `/btw <question>` | quick side question using current context without modifying session history (works while the agent runs) |
|
|
162
|
+
| `/browser [url\|close]` | open or toggle the built-in headless browser pane inside ANIX Code |
|
|
163
|
+
| `/skills` | list discovered project and global `SKILL.md` skills |
|
|
164
|
+
| `/reasoning [off\|low\|medium\|high]` | set model reasoning effort |
|
|
165
|
+
| `/image [path\|clear]`, `/img` | attach an image from clipboard or file, or clear attachments |
|
|
166
|
+
| `/language` | interface language: Русский / English (after a restart) |
|
|
167
|
+
|
|
168
|
+
**Quick input:**
|
|
169
|
+
- `!command` runs a command in the terminal yourself, without the model; the agent sees the output:
|
|
170
|
+
`!pytest -q`, then “fix it”.
|
|
171
|
+
- `# text` saves a rule to `AGENTS.md`: `# use pnpm, not npm`.
|
|
172
|
+
|
|
173
|
+
**Own commands.** A Markdown file in `.anixcode/commands/name.md` (this project) or in
|
|
174
|
+
`%APPDATA%\anixcode\commands\name.md` / `~/.config/anixcode/commands/name.md` (all projects) becomes the
|
|
175
|
+
command `/name`. `$ARGUMENTS` is replaced with everything after the command, `$1`, `$2` with single words.
|
|
176
|
+
An example is in `.anixcode/commands/check.md`:
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
---
|
|
180
|
+
description: run the project tests and show the result
|
|
181
|
+
---
|
|
182
|
+
Run `pytest -q`. If tests fail, show the failing test names and the short reason for each. $ARGUMENTS
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Prompt commands also work without the interface: `anixcode run "/review"`.
|
|
186
|
+
|
|
187
|
+
**Without the interface:**
|
|
188
|
+
```bash
|
|
189
|
+
anixcode run "find where the discount is calculated and explain it" --plan
|
|
190
|
+
anixcode run "fix the failing test" -y # -y: allow everything without asking
|
|
191
|
+
anixcode run -i screen.png "fix the layout" # attach one or more images
|
|
192
|
+
anixcode connect # connect a model from the console
|
|
193
|
+
anixcode models # list the provider's models
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Tools
|
|
197
|
+
|
|
198
|
+
| Tool | |
|
|
199
|
+
|---|---|
|
|
200
|
+
| `read` | reads a file with line numbers, big files in parts |
|
|
201
|
+
| `ls`, `glob` | folder tree, find files by pattern |
|
|
202
|
+
| `grep` | search in code (ripgrep if installed) |
|
|
203
|
+
| `edit`, `multi_edit` | precise and atomic multi-hunk text replacement (with whitespace-tolerant fallback) |
|
|
204
|
+
| `write` | new file or full rewrite |
|
|
205
|
+
| `bash` | commands: tests, git, builds with live streaming output (PowerShell on Windows) |
|
|
206
|
+
| `browser`, `web_fetch` | built-in headless browser (Playwright Chromium / HTTP) & page reader inside ANIX Code |
|
|
207
|
+
| `subagent`, `todo` | isolated read-only research subagent and live task checklist |
|
|
208
|
+
|
|
209
|
+
File tools never leave the project folder. Edits and commands need approval unless full access is on.
|
|
210
|
+
Fine-tuning in `settings.json`: `"permissions": {"edit": "ask", "exec": "ask"}` (`ask` / `allow` / `deny`).
|
|
211
|
+
|
|
212
|
+
**AI-RPC.** If [AI-RPC](https://github.com/an1zy/ai-rpc) is running, Discord shows “ANIX Code · Generating”.
|
|
213
|
+
|
|
214
|
+
## Updates and keys
|
|
215
|
+
|
|
216
|
+
Keys and settings are stored **outside the code folder**, so you can unpack a new version over the old one
|
|
217
|
+
or into another folder: keys, own providers and sessions stay. To move to another computer, copy the whole
|
|
218
|
+
folder below.
|
|
219
|
+
|
|
220
|
+
`%APPDATA%\anixcode\` (Windows) or `~/.config/anixcode/`:
|
|
221
|
+
- `settings.json`: provider, model, theme, permissions, language;
|
|
222
|
+
- `auth.json`: API keys (only on your computer, readable only by your user);
|
|
223
|
+
- `sessions.db`: session history.
|
|
224
|
+
|
|
225
|
+
## Development
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
pip install -e ".[dev]" && pytest
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Translations: interface strings are written in Russian in the code as `tr("…")`; English versions live in
|
|
232
|
+
`anixcode/i18n_en.py` (a test checks that every string has one).
|
|
233
|
+
|
|
234
|
+
## MCP servers
|
|
235
|
+
|
|
236
|
+
Add servers via `/mcp add` or directly in `settings.json` (same format as `mcpServers` in Claude Desktop and Cursor):
|
|
237
|
+
|
|
238
|
+
```json
|
|
239
|
+
"mcp_servers": {
|
|
240
|
+
"github": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"],
|
|
241
|
+
"env": {"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"}},
|
|
242
|
+
"context7": {"url": "https://mcp.context7.com/mcp"},
|
|
243
|
+
"big": {"command": "uvx", "args": ["some-server"], "tools": ["search"], "timeout": 300},
|
|
244
|
+
"old": {"command": "...", "disabled": true}
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
- `command` + `args` + `env`: a local server (stdio), started in the project folder.
|
|
249
|
+
- `url` + `headers`: a remote server (Streamable HTTP).
|
|
250
|
+
- `${VAR}` is taken from the environment, so tokens don't have to be in the file.
|
|
251
|
+
- `tools`: keep only these tools (saves context). `timeout`: seconds per call (default 120).
|
|
252
|
+
- The model sees them as `mcp__<server>__<tool>`. They ask for approval like edits and commands; `"permissions": {"mcp": "allow"}` turns that off.
|
|
253
|
+
- `/mcp`, `/status` and `/doctor` show which servers connected.
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
anixcode/
|
|
257
|
+
llm.py OpenAI-compatible API client: streaming, tool calls, readable errors, retries
|
|
258
|
+
agent.py the agent loop, approvals, Build/Plan modes, undo/redo
|
|
259
|
+
tools/ read, ls, glob, grep, edit, write, bash
|
|
260
|
+
mcp.py MCP client (stdio + Streamable HTTP)
|
|
261
|
+
prompts.py system prompt + AGENTS.md
|
|
262
|
+
storage.py sessions and file snapshots in SQLite
|
|
263
|
+
checkpoints.py file snapshots for /undo
|
|
264
|
+
compaction.py history compression to fit the context
|
|
265
|
+
danger.py spotting dangerous commands
|
|
266
|
+
mentions.py @files: suggestions and attaching
|
|
267
|
+
images.py image attachments: files, drag & drop, clipboard
|
|
268
|
+
commands.py /commands: built-in, ready-made prompts, own ones from .md
|
|
269
|
+
i18n.py Russian / English interface
|
|
270
|
+
providers.py provider list
|
|
271
|
+
tui/ the Textual interface
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## Roadmap
|
|
275
|
+
|
|
276
|
+
- [x] Undo (`/undo`, `/redo`)
|
|
277
|
+
- [x] History compression, retries on failures
|
|
278
|
+
- [x] `@file` in prompts, `/init`, dangerous-command highlighting
|
|
279
|
+
- [x] `/review`, `/commit`, `/test`…, own commands from `.md`, `!` and `#`
|
|
280
|
+
- [x] English interface
|
|
281
|
+
- [x] MCP servers
|
|
282
|
+
- [x] Parallel read-only tools & isolated subagents
|
|
283
|
+
- [x] Built-in headless browser (`/browser`), `/goal`, `/btw`
|
|
284
|
+
- [ ] Desktop version
|