@neocode-ai/web 1.1.1
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 +54 -0
- package/astro.config.mjs +145 -0
- package/config.mjs +14 -0
- package/package.json +41 -0
- package/public/robots.txt +6 -0
- package/public/theme.json +183 -0
- package/src/assets/lander/check.svg +2 -0
- package/src/assets/lander/copy.svg +2 -0
- package/src/assets/lander/screenshot-github.png +0 -0
- package/src/assets/lander/screenshot-splash.png +0 -0
- package/src/assets/lander/screenshot-vscode.png +0 -0
- package/src/assets/lander/screenshot.png +0 -0
- package/src/assets/logo-dark.svg +20 -0
- package/src/assets/logo-light.svg +20 -0
- package/src/assets/logo-ornate-dark.svg +18 -0
- package/src/assets/logo-ornate-light.svg +18 -0
- package/src/assets/web/web-homepage-active-session.png +0 -0
- package/src/assets/web/web-homepage-new-session.png +0 -0
- package/src/assets/web/web-homepage-see-servers.png +0 -0
- package/src/components/Head.astro +50 -0
- package/src/components/Header.astro +128 -0
- package/src/components/Hero.astro +11 -0
- package/src/components/Lander.astro +713 -0
- package/src/components/Share.tsx +634 -0
- package/src/components/SiteTitle.astro +59 -0
- package/src/components/icons/custom.tsx +87 -0
- package/src/components/icons/index.tsx +4454 -0
- package/src/components/share/common.tsx +77 -0
- package/src/components/share/content-bash.module.css +85 -0
- package/src/components/share/content-bash.tsx +67 -0
- package/src/components/share/content-code.module.css +26 -0
- package/src/components/share/content-code.tsx +32 -0
- package/src/components/share/content-diff.module.css +153 -0
- package/src/components/share/content-diff.tsx +231 -0
- package/src/components/share/content-error.module.css +64 -0
- package/src/components/share/content-error.tsx +24 -0
- package/src/components/share/content-markdown.module.css +154 -0
- package/src/components/share/content-markdown.tsx +75 -0
- package/src/components/share/content-text.module.css +63 -0
- package/src/components/share/content-text.tsx +37 -0
- package/src/components/share/copy-button.module.css +30 -0
- package/src/components/share/copy-button.tsx +28 -0
- package/src/components/share/part.module.css +428 -0
- package/src/components/share/part.tsx +780 -0
- package/src/components/share.module.css +832 -0
- package/src/content/docs/1-0.mdx +67 -0
- package/src/content/docs/acp.mdx +156 -0
- package/src/content/docs/agents.mdx +720 -0
- package/src/content/docs/cli.mdx +597 -0
- package/src/content/docs/commands.mdx +323 -0
- package/src/content/docs/config.mdx +683 -0
- package/src/content/docs/custom-tools.mdx +170 -0
- package/src/content/docs/ecosystem.mdx +76 -0
- package/src/content/docs/enterprise.mdx +170 -0
- package/src/content/docs/formatters.mdx +130 -0
- package/src/content/docs/github.mdx +321 -0
- package/src/content/docs/gitlab.mdx +195 -0
- package/src/content/docs/ide.mdx +48 -0
- package/src/content/docs/index.mdx +359 -0
- package/src/content/docs/keybinds.mdx +191 -0
- package/src/content/docs/lsp.mdx +188 -0
- package/src/content/docs/mcp-servers.mdx +511 -0
- package/src/content/docs/models.mdx +223 -0
- package/src/content/docs/modes.mdx +331 -0
- package/src/content/docs/network.mdx +57 -0
- package/src/content/docs/permissions.mdx +237 -0
- package/src/content/docs/plugins.mdx +362 -0
- package/src/content/docs/providers.mdx +1889 -0
- package/src/content/docs/rules.mdx +180 -0
- package/src/content/docs/sdk.mdx +391 -0
- package/src/content/docs/server.mdx +286 -0
- package/src/content/docs/share.mdx +128 -0
- package/src/content/docs/skills.mdx +220 -0
- package/src/content/docs/themes.mdx +369 -0
- package/src/content/docs/tools.mdx +345 -0
- package/src/content/docs/troubleshooting.mdx +300 -0
- package/src/content/docs/tui.mdx +390 -0
- package/src/content/docs/web.mdx +136 -0
- package/src/content/docs/windows-wsl.mdx +113 -0
- package/src/content/docs/zen.mdx +251 -0
- package/src/content.config.ts +7 -0
- package/src/pages/[...slug].md.ts +18 -0
- package/src/pages/s/[id].astro +113 -0
- package/src/styles/custom.css +405 -0
- package/src/types/lang-map.d.ts +27 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Config
|
|
3
|
+
description: Using the NeoCode JSON config.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You can configure NeoCode using a JSON config file.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Format
|
|
11
|
+
|
|
12
|
+
NeoCode supports both **JSON** and **JSONC** (JSON with Comments) formats.
|
|
13
|
+
|
|
14
|
+
```jsonc title="neocode.jsonc"
|
|
15
|
+
{
|
|
16
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
17
|
+
// Theme configuration
|
|
18
|
+
"theme": "neocode",
|
|
19
|
+
"model": "anthropic/claude-sonnet-4-5",
|
|
20
|
+
"autoupdate": true,
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Locations
|
|
27
|
+
|
|
28
|
+
You can place your config in a couple of different locations and they have a
|
|
29
|
+
different order of precedence.
|
|
30
|
+
|
|
31
|
+
:::note
|
|
32
|
+
Configuration files are **merged together**, not replaced.
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
Configuration files are merged together, not replaced. Settings from the following config locations are combined. Later configs override earlier ones only for conflicting keys. Non-conflicting settings from all configs are preserved.
|
|
36
|
+
|
|
37
|
+
For example, if your global config sets `theme: "neocode"` and `autoupdate: true`, and your project config sets `model: "anthropic/claude-sonnet-4-5"`, the final configuration will include all three settings.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### Precedence order
|
|
42
|
+
|
|
43
|
+
Config sources are loaded in this order (later sources override earlier ones):
|
|
44
|
+
|
|
45
|
+
1. **Remote config** (from `.well-known/neocode`) - organizational defaults
|
|
46
|
+
2. **Global config** (`~/.config/neocode/neocode.json`) - user preferences
|
|
47
|
+
3. **Custom config** (`NEOCODE_CONFIG` env var) - custom overrides
|
|
48
|
+
4. **Project config** (`neocode.json` in project) - project-specific settings
|
|
49
|
+
5. **`.neocode` directories** - agents, commands, plugins
|
|
50
|
+
6. **Inline config** (`NEOCODE_CONFIG_CONTENT` env var) - runtime overrides
|
|
51
|
+
|
|
52
|
+
This means project configs can override global defaults, and global configs can override remote organizational defaults.
|
|
53
|
+
|
|
54
|
+
:::note
|
|
55
|
+
The `.neocode` and `~/.config/neocode` directories use **plural names** for subdirectories: `agents/`, `commands/`, `modes/`, `plugins/`, `skills/`, `tools/`, and `themes/`. Singular names (e.g., `agent/`) are also supported for backwards compatibility.
|
|
56
|
+
:::
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
### Remote
|
|
61
|
+
|
|
62
|
+
Organizations can provide default configuration via the `.well-known/neocode` endpoint. This is fetched automatically when you authenticate with a provider that supports it.
|
|
63
|
+
|
|
64
|
+
Remote config is loaded first, serving as the base layer. All other config sources (global, project) can override these defaults.
|
|
65
|
+
|
|
66
|
+
For example, if your organization provides MCP servers that are disabled by default:
|
|
67
|
+
|
|
68
|
+
```json title="Remote config from .well-known/neocode"
|
|
69
|
+
{
|
|
70
|
+
"mcp": {
|
|
71
|
+
"jira": {
|
|
72
|
+
"type": "remote",
|
|
73
|
+
"url": "https://jira.example.com/mcp",
|
|
74
|
+
"enabled": false
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
You can enable specific servers in your local config:
|
|
81
|
+
|
|
82
|
+
```json title="neocode.json"
|
|
83
|
+
{
|
|
84
|
+
"mcp": {
|
|
85
|
+
"jira": {
|
|
86
|
+
"type": "remote",
|
|
87
|
+
"url": "https://jira.example.com/mcp",
|
|
88
|
+
"enabled": true
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### Global
|
|
97
|
+
|
|
98
|
+
Place your global NeoCode config in `~/.config/neocode/neocode.json`. Use global config for user-wide preferences like themes, providers, or keybinds.
|
|
99
|
+
|
|
100
|
+
Global config overrides remote organizational defaults.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### Per project
|
|
105
|
+
|
|
106
|
+
Add `neocode.json` in your project root. Project config has the highest precedence among standard config files - it overrides both global and remote configs.
|
|
107
|
+
|
|
108
|
+
:::tip
|
|
109
|
+
Place project specific config in the root of your project.
|
|
110
|
+
:::
|
|
111
|
+
|
|
112
|
+
When NeoCode starts up, it looks for a config file in the current directory or traverse up to the nearest Git directory.
|
|
113
|
+
|
|
114
|
+
This is also safe to be checked into Git and uses the same schema as the global one.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
### Custom path
|
|
119
|
+
|
|
120
|
+
Specify a custom config file path using the `NEOCODE_CONFIG` environment variable.
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
export NEOCODE_CONFIG=/path/to/my/custom-config.json
|
|
124
|
+
neocode run "Hello world"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Custom config is loaded between global and project configs in the precedence order.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### Custom directory
|
|
132
|
+
|
|
133
|
+
Specify a custom config directory using the `NEOCODE_CONFIG_DIR`
|
|
134
|
+
environment variable. This directory will be searched for agents, commands,
|
|
135
|
+
modes, and plugins just like the standard `.neocode` directory, and should
|
|
136
|
+
follow the same structure.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
export NEOCODE_CONFIG_DIR=/path/to/my/config-directory
|
|
140
|
+
neocode run "Hello world"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The custom directory is loaded after the global config and `.neocode` directories, so it **can override** their settings.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Schema
|
|
148
|
+
|
|
149
|
+
The config file has a schema that's defined in [**`neo.khulnasoft.com/config.json`**](https://neo.khulnasoft.com/config.json).
|
|
150
|
+
|
|
151
|
+
Your editor should be able to validate and autocomplete based on the schema.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### TUI
|
|
156
|
+
|
|
157
|
+
You can configure TUI-specific settings through the `tui` option.
|
|
158
|
+
|
|
159
|
+
```json title="neocode.json"
|
|
160
|
+
{
|
|
161
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
162
|
+
"tui": {
|
|
163
|
+
"scroll_speed": 3,
|
|
164
|
+
"scroll_acceleration": {
|
|
165
|
+
"enabled": true
|
|
166
|
+
},
|
|
167
|
+
"diff_style": "auto"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Available options:
|
|
173
|
+
|
|
174
|
+
- `scroll_acceleration.enabled` - Enable macOS-style scroll acceleration. **Takes precedence over `scroll_speed`.**
|
|
175
|
+
- `scroll_speed` - Custom scroll speed multiplier (default: `3`, minimum: `1`). Ignored if `scroll_acceleration.enabled` is `true`.
|
|
176
|
+
- `diff_style` - Control diff rendering. `"auto"` adapts to terminal width, `"stacked"` always shows single column.
|
|
177
|
+
|
|
178
|
+
[Learn more about using the TUI here](/docs/tui).
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
### Server
|
|
183
|
+
|
|
184
|
+
You can configure server settings for the `neocode serve` and `neocode web` commands through the `server` option.
|
|
185
|
+
|
|
186
|
+
```json title="neocode.json"
|
|
187
|
+
{
|
|
188
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
189
|
+
"server": {
|
|
190
|
+
"port": 4096,
|
|
191
|
+
"hostname": "0.0.0.0",
|
|
192
|
+
"mdns": true,
|
|
193
|
+
"cors": ["http://localhost:5173"]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Available options:
|
|
199
|
+
|
|
200
|
+
- `port` - Port to listen on.
|
|
201
|
+
- `hostname` - Hostname to listen on. When `mdns` is enabled and no hostname is set, defaults to `0.0.0.0`.
|
|
202
|
+
- `mdns` - Enable mDNS service discovery. This allows other devices on the network to discover your NeoCode server.
|
|
203
|
+
- `cors` - Additional origins to allow for CORS when using the HTTP server from a browser-based client. Values must be full origins (scheme + host + optional port), eg `https://app.example.com`.
|
|
204
|
+
|
|
205
|
+
[Learn more about the server here](/docs/server).
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
### Tools
|
|
210
|
+
|
|
211
|
+
You can manage the tools an LLM can use through the `tools` option.
|
|
212
|
+
|
|
213
|
+
```json title="neocode.json"
|
|
214
|
+
{
|
|
215
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
216
|
+
"tools": {
|
|
217
|
+
"write": false,
|
|
218
|
+
"bash": false
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
[Learn more about tools here](/docs/tools).
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
### Models
|
|
228
|
+
|
|
229
|
+
You can configure the providers and models you want to use in your NeoCode config through the `provider`, `model` and `small_model` options.
|
|
230
|
+
|
|
231
|
+
```json title="neocode.json"
|
|
232
|
+
{
|
|
233
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
234
|
+
"provider": {},
|
|
235
|
+
"model": "anthropic/claude-sonnet-4-5",
|
|
236
|
+
"small_model": "anthropic/claude-haiku-4-5"
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
The `small_model` option configures a separate model for lightweight tasks like title generation. By default, NeoCode tries to use a cheaper model if one is available from your provider, otherwise it falls back to your main model.
|
|
241
|
+
|
|
242
|
+
Provider options can include `timeout` and `setCacheKey`:
|
|
243
|
+
|
|
244
|
+
```json title="neocode.json"
|
|
245
|
+
{
|
|
246
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
247
|
+
"provider": {
|
|
248
|
+
"anthropic": {
|
|
249
|
+
"options": {
|
|
250
|
+
"timeout": 600000,
|
|
251
|
+
"setCacheKey": true
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
- `timeout` - Request timeout in milliseconds (default: 300000). Set to `false` to disable.
|
|
259
|
+
- `setCacheKey` - Ensure a cache key is always set for designated provider.
|
|
260
|
+
|
|
261
|
+
You can also configure [local models](/docs/models#local). [Learn more](/docs/models).
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
#### Provider-Specific Options
|
|
266
|
+
|
|
267
|
+
Some providers support additional configuration options beyond the generic `timeout` and `apiKey` settings.
|
|
268
|
+
|
|
269
|
+
##### Amazon Bedrock
|
|
270
|
+
|
|
271
|
+
Amazon Bedrock supports AWS-specific configuration:
|
|
272
|
+
|
|
273
|
+
```json title="neocode.json"
|
|
274
|
+
{
|
|
275
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
276
|
+
"provider": {
|
|
277
|
+
"amazon-bedrock": {
|
|
278
|
+
"options": {
|
|
279
|
+
"region": "us-east-1",
|
|
280
|
+
"profile": "my-aws-profile",
|
|
281
|
+
"endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
- `region` - AWS region for Bedrock (defaults to `AWS_REGION` env var or `us-east-1`)
|
|
289
|
+
- `profile` - AWS named profile from `~/.aws/credentials` (defaults to `AWS_PROFILE` env var)
|
|
290
|
+
- `endpoint` - Custom endpoint URL for VPC endpoints. This is an alias for the generic `baseURL` option using AWS-specific terminology. If both are specified, `endpoint` takes precedence.
|
|
291
|
+
|
|
292
|
+
:::note
|
|
293
|
+
Bearer tokens (`AWS_BEARER_TOKEN_BEDROCK` or `/connect`) take precedence over profile-based authentication. See [authentication precedence](/docs/providers#authentication-precedence) for details.
|
|
294
|
+
:::
|
|
295
|
+
|
|
296
|
+
[Learn more about Amazon Bedrock configuration](/docs/providers#amazon-bedrock).
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
### Themes
|
|
301
|
+
|
|
302
|
+
You can configure the theme you want to use in your NeoCode config through the `theme` option.
|
|
303
|
+
|
|
304
|
+
```json title="neocode.json"
|
|
305
|
+
{
|
|
306
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
307
|
+
"theme": ""
|
|
308
|
+
}
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
[Learn more here](/docs/themes).
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
### Agents
|
|
316
|
+
|
|
317
|
+
You can configure specialized agents for specific tasks through the `agent` option.
|
|
318
|
+
|
|
319
|
+
```jsonc title="neocode.jsonc"
|
|
320
|
+
{
|
|
321
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
322
|
+
"agent": {
|
|
323
|
+
"code-reviewer": {
|
|
324
|
+
"description": "Reviews code for best practices and potential issues",
|
|
325
|
+
"model": "anthropic/claude-sonnet-4-5",
|
|
326
|
+
"prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
|
|
327
|
+
"tools": {
|
|
328
|
+
// Disable file modification tools for review-only agent
|
|
329
|
+
"write": false,
|
|
330
|
+
"edit": false,
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
}
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
You can also define agents using markdown files in `~/.config/neocode/agents/` or `.neocode/agents/`. [Learn more here](/docs/agents).
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
### Default agent
|
|
342
|
+
|
|
343
|
+
You can set the default agent using the `default_agent` option. This determines which agent is used when none is explicitly specified.
|
|
344
|
+
|
|
345
|
+
```json title="neocode.json"
|
|
346
|
+
{
|
|
347
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
348
|
+
"default_agent": "plan"
|
|
349
|
+
}
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
The default agent must be a primary agent (not a subagent). This can be a built-in agent like `"build"` or `"plan"`, or a [custom agent](/docs/agents) you've defined. If the specified agent doesn't exist or is a subagent, NeoCode will fall back to `"build"` with a warning.
|
|
353
|
+
|
|
354
|
+
This setting applies across all interfaces: TUI, CLI (`neocode run`), desktop app, and GitHub Action.
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
### Sharing
|
|
359
|
+
|
|
360
|
+
You can configure the [share](/docs/share) feature through the `share` option.
|
|
361
|
+
|
|
362
|
+
```json title="neocode.json"
|
|
363
|
+
{
|
|
364
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
365
|
+
"share": "manual"
|
|
366
|
+
}
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
This takes:
|
|
370
|
+
|
|
371
|
+
- `"manual"` - Allow manual sharing via commands (default)
|
|
372
|
+
- `"auto"` - Automatically share new conversations
|
|
373
|
+
- `"disabled"` - Disable sharing entirely
|
|
374
|
+
|
|
375
|
+
By default, sharing is set to manual mode where you need to explicitly share conversations using the `/share` command.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
### Commands
|
|
380
|
+
|
|
381
|
+
You can configure custom commands for repetitive tasks through the `command` option.
|
|
382
|
+
|
|
383
|
+
```jsonc title="neocode.jsonc"
|
|
384
|
+
{
|
|
385
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
386
|
+
"command": {
|
|
387
|
+
"test": {
|
|
388
|
+
"template": "Run the full test suite with coverage report and show any failures.\nFocus on the failing tests and suggest fixes.",
|
|
389
|
+
"description": "Run tests with coverage",
|
|
390
|
+
"agent": "build",
|
|
391
|
+
"model": "anthropic/claude-haiku-4-5",
|
|
392
|
+
},
|
|
393
|
+
"component": {
|
|
394
|
+
"template": "Create a new React component named $ARGUMENTS with TypeScript support.\nInclude proper typing and basic structure.",
|
|
395
|
+
"description": "Create a new component",
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
}
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
You can also define commands using markdown files in `~/.config/neocode/commands/` or `.neocode/commands/`. [Learn more here](/docs/commands).
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
### Keybinds
|
|
406
|
+
|
|
407
|
+
You can customize your keybinds through the `keybinds` option.
|
|
408
|
+
|
|
409
|
+
```json title="neocode.json"
|
|
410
|
+
{
|
|
411
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
412
|
+
"keybinds": {}
|
|
413
|
+
}
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
[Learn more here](/docs/keybinds).
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
### Autoupdate
|
|
421
|
+
|
|
422
|
+
NeoCode will automatically download any new updates when it starts up. You can disable this with the `autoupdate` option.
|
|
423
|
+
|
|
424
|
+
```json title="neocode.json"
|
|
425
|
+
{
|
|
426
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
427
|
+
"autoupdate": false
|
|
428
|
+
}
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
If you don't want updates but want to be notified when a new version is available, set `autoupdate` to `"notify"`.
|
|
432
|
+
Notice that this only works if it was not installed using a package manager such as Homebrew.
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
### Formatters
|
|
437
|
+
|
|
438
|
+
You can configure code formatters through the `formatter` option.
|
|
439
|
+
|
|
440
|
+
```json title="neocode.json"
|
|
441
|
+
{
|
|
442
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
443
|
+
"formatter": {
|
|
444
|
+
"prettier": {
|
|
445
|
+
"disabled": true
|
|
446
|
+
},
|
|
447
|
+
"custom-prettier": {
|
|
448
|
+
"command": ["npx", "prettier", "--write", "$FILE"],
|
|
449
|
+
"environment": {
|
|
450
|
+
"NODE_ENV": "development"
|
|
451
|
+
},
|
|
452
|
+
"extensions": [".js", ".ts", ".jsx", ".tsx"]
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
[Learn more about formatters here](/docs/formatters).
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
### Permissions
|
|
463
|
+
|
|
464
|
+
By default, neocode **allows all operations** without requiring explicit approval. You can change this using the `permission` option.
|
|
465
|
+
|
|
466
|
+
For example, to ensure that the `edit` and `bash` tools require user approval:
|
|
467
|
+
|
|
468
|
+
```json title="neocode.json"
|
|
469
|
+
{
|
|
470
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
471
|
+
"permission": {
|
|
472
|
+
"edit": "ask",
|
|
473
|
+
"bash": "ask"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
[Learn more about permissions here](/docs/permissions).
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
### Compaction
|
|
483
|
+
|
|
484
|
+
You can control context compaction behavior through the `compaction` option.
|
|
485
|
+
|
|
486
|
+
```json title="neocode.json"
|
|
487
|
+
{
|
|
488
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
489
|
+
"compaction": {
|
|
490
|
+
"auto": true,
|
|
491
|
+
"prune": true
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
- `auto` - Automatically compact the session when context is full (default: `true`).
|
|
497
|
+
- `prune` - Remove old tool outputs to save tokens (default: `true`).
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
### Watcher
|
|
502
|
+
|
|
503
|
+
You can configure file watcher ignore patterns through the `watcher` option.
|
|
504
|
+
|
|
505
|
+
```json title="neocode.json"
|
|
506
|
+
{
|
|
507
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
508
|
+
"watcher": {
|
|
509
|
+
"ignore": ["node_modules/**", "dist/**", ".git/**"]
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
Patterns follow glob syntax. Use this to exclude noisy directories from file watching.
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
### MCP servers
|
|
519
|
+
|
|
520
|
+
You can configure MCP servers you want to use through the `mcp` option.
|
|
521
|
+
|
|
522
|
+
```json title="neocode.json"
|
|
523
|
+
{
|
|
524
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
525
|
+
"mcp": {}
|
|
526
|
+
}
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
[Learn more here](/docs/mcp-servers).
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
### Plugins
|
|
534
|
+
|
|
535
|
+
[Plugins](/docs/plugins) extend NeoCode with custom tools, hooks, and integrations.
|
|
536
|
+
|
|
537
|
+
Place plugin files in `.neocode/plugins/` or `~/.config/neocode/plugins/`. You can also load plugins from npm through the `plugin` option.
|
|
538
|
+
|
|
539
|
+
```json title="neocode.json"
|
|
540
|
+
{
|
|
541
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
542
|
+
"plugin": ["neocode-helicone-session", "@my-org/custom-plugin"]
|
|
543
|
+
}
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
[Learn more here](/docs/plugins).
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
### Instructions
|
|
551
|
+
|
|
552
|
+
You can configure the instructions for the model you're using through the `instructions` option.
|
|
553
|
+
|
|
554
|
+
```json title="neocode.json"
|
|
555
|
+
{
|
|
556
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
557
|
+
"instructions": ["CONTRIBUTING.md", "docs/guidelines.md", ".cursor/rules/*.md"]
|
|
558
|
+
}
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
This takes an array of paths and glob patterns to instruction files. [Learn more
|
|
562
|
+
about rules here](/docs/rules).
|
|
563
|
+
|
|
564
|
+
---
|
|
565
|
+
|
|
566
|
+
### Disabled providers
|
|
567
|
+
|
|
568
|
+
You can disable providers that are loaded automatically through the `disabled_providers` option. This is useful when you want to prevent certain providers from being loaded even if their credentials are available.
|
|
569
|
+
|
|
570
|
+
```json title="neocode.json"
|
|
571
|
+
{
|
|
572
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
573
|
+
"disabled_providers": ["openai", "gemini"]
|
|
574
|
+
}
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
:::note
|
|
578
|
+
The `disabled_providers` takes priority over `enabled_providers`.
|
|
579
|
+
:::
|
|
580
|
+
|
|
581
|
+
The `disabled_providers` option accepts an array of provider IDs. When a provider is disabled:
|
|
582
|
+
|
|
583
|
+
- It won't be loaded even if environment variables are set.
|
|
584
|
+
- It won't be loaded even if API keys are configured through the `/connect` command.
|
|
585
|
+
- The provider's models won't appear in the model selection list.
|
|
586
|
+
|
|
587
|
+
---
|
|
588
|
+
|
|
589
|
+
### Enabled providers
|
|
590
|
+
|
|
591
|
+
You can specify an allowlist of providers through the `enabled_providers` option. When set, only the specified providers will be enabled and all others will be ignored.
|
|
592
|
+
|
|
593
|
+
```json title="neocode.json"
|
|
594
|
+
{
|
|
595
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
596
|
+
"enabled_providers": ["anthropic", "openai"]
|
|
597
|
+
}
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
This is useful when you want to restrict NeoCode to only use specific providers rather than disabling them one by one.
|
|
601
|
+
|
|
602
|
+
:::note
|
|
603
|
+
The `disabled_providers` takes priority over `enabled_providers`.
|
|
604
|
+
:::
|
|
605
|
+
|
|
606
|
+
If a provider appears in both `enabled_providers` and `disabled_providers`, the `disabled_providers` takes priority for backwards compatibility.
|
|
607
|
+
|
|
608
|
+
---
|
|
609
|
+
|
|
610
|
+
### Experimental
|
|
611
|
+
|
|
612
|
+
The `experimental` key contains options that are under active development.
|
|
613
|
+
|
|
614
|
+
```json title="neocode.json"
|
|
615
|
+
{
|
|
616
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
617
|
+
"experimental": {}
|
|
618
|
+
}
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
:::caution
|
|
622
|
+
Experimental options are not stable. They may change or be removed without notice.
|
|
623
|
+
:::
|
|
624
|
+
|
|
625
|
+
---
|
|
626
|
+
|
|
627
|
+
## Variables
|
|
628
|
+
|
|
629
|
+
You can use variable substitution in your config files to reference environment variables and file contents.
|
|
630
|
+
|
|
631
|
+
---
|
|
632
|
+
|
|
633
|
+
### Env vars
|
|
634
|
+
|
|
635
|
+
Use `{env:VARIABLE_NAME}` to substitute environment variables:
|
|
636
|
+
|
|
637
|
+
```json title="neocode.json"
|
|
638
|
+
{
|
|
639
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
640
|
+
"model": "{env:NEOCODE_MODEL}",
|
|
641
|
+
"provider": {
|
|
642
|
+
"anthropic": {
|
|
643
|
+
"models": {},
|
|
644
|
+
"options": {
|
|
645
|
+
"apiKey": "{env:ANTHROPIC_API_KEY}"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
If the environment variable is not set, it will be replaced with an empty string.
|
|
653
|
+
|
|
654
|
+
---
|
|
655
|
+
|
|
656
|
+
### Files
|
|
657
|
+
|
|
658
|
+
Use `{file:path/to/file}` to substitute the contents of a file:
|
|
659
|
+
|
|
660
|
+
```json title="neocode.json"
|
|
661
|
+
{
|
|
662
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
663
|
+
"instructions": ["./custom-instructions.md"],
|
|
664
|
+
"provider": {
|
|
665
|
+
"openai": {
|
|
666
|
+
"options": {
|
|
667
|
+
"apiKey": "{file:~/.secrets/openai-key}"
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
File paths can be:
|
|
675
|
+
|
|
676
|
+
- Relative to the config file directory
|
|
677
|
+
- Or absolute paths starting with `/` or `~`
|
|
678
|
+
|
|
679
|
+
These are useful for:
|
|
680
|
+
|
|
681
|
+
- Keeping sensitive data like API keys in separate files.
|
|
682
|
+
- Including large instruction files without cluttering your config.
|
|
683
|
+
- Sharing common configuration snippets across multiple config files.
|