@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,369 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Themes
|
|
3
|
+
description: Select a built-in theme or define your own.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
With NeoCode you can select from one of several built-in themes, use a theme that adapts to your terminal theme, or define your own custom theme.
|
|
7
|
+
|
|
8
|
+
By default, NeoCode uses our own `neocode` theme.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Terminal requirements
|
|
13
|
+
|
|
14
|
+
For themes to display correctly with their full color palette, your terminal must support **truecolor** (24-bit color). Most modern terminals support this by default, but you may need to enable it:
|
|
15
|
+
|
|
16
|
+
- **Check support**: Run `echo $COLORTERM` - it should output `truecolor` or `24bit`
|
|
17
|
+
- **Enable truecolor**: Set the environment variable `COLORTERM=truecolor` in your shell profile
|
|
18
|
+
- **Terminal compatibility**: Ensure your terminal emulator supports 24-bit color (most modern terminals like iTerm2, Alacritty, Kitty, Windows Terminal, and recent versions of GNOME Terminal do)
|
|
19
|
+
|
|
20
|
+
Without truecolor support, themes may appear with reduced color accuracy or fall back to the nearest 256-color approximation.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Built-in themes
|
|
25
|
+
|
|
26
|
+
NeoCode comes with several built-in themes.
|
|
27
|
+
|
|
28
|
+
| Name | Description |
|
|
29
|
+
| ---------------------- | ---------------------------------------------------------------------------- |
|
|
30
|
+
| `system` | Adapts to your terminal’s background color |
|
|
31
|
+
| `tokyonight` | Based on the [Tokyonight](https://github.com/folke/tokyonight.nvim) theme |
|
|
32
|
+
| `everforest` | Based on the [Everforest](https://github.com/sainnhe/everforest) theme |
|
|
33
|
+
| `ayu` | Based on the [Ayu](https://github.com/ayu-theme) dark theme |
|
|
34
|
+
| `catppuccin` | Based on the [Catppuccin](https://github.com/catppuccin) theme |
|
|
35
|
+
| `catppuccin-macchiato` | Based on the [Catppuccin](https://github.com/catppuccin) theme |
|
|
36
|
+
| `gruvbox` | Based on the [Gruvbox](https://github.com/morhetz/gruvbox) theme |
|
|
37
|
+
| `kanagawa` | Based on the [Kanagawa](https://github.com/rebelot/kanagawa.nvim) theme |
|
|
38
|
+
| `nord` | Based on the [Nord](https://github.com/nordtheme/nord) theme |
|
|
39
|
+
| `matrix` | Hacker-style green on black theme |
|
|
40
|
+
| `one-dark` | Based on the [Atom One](https://github.com/Th3Whit3Wolf/one-nvim) Dark theme |
|
|
41
|
+
|
|
42
|
+
And more, we are constantly adding new themes.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## System theme
|
|
47
|
+
|
|
48
|
+
The `system` theme is designed to automatically adapt to your terminal's color scheme. Unlike traditional themes that use fixed colors, the _system_ theme:
|
|
49
|
+
|
|
50
|
+
- **Generates gray scale**: Creates a custom gray scale based on your terminal's background color, ensuring optimal contrast.
|
|
51
|
+
- **Uses ANSI colors**: Leverages standard ANSI colors (0-15) for syntax highlighting and UI elements, which respect your terminal's color palette.
|
|
52
|
+
- **Preserves terminal defaults**: Uses `none` for text and background colors to maintain your terminal's native appearance.
|
|
53
|
+
|
|
54
|
+
The system theme is for users who:
|
|
55
|
+
|
|
56
|
+
- Want NeoCode to match their terminal's appearance
|
|
57
|
+
- Use custom terminal color schemes
|
|
58
|
+
- Prefer a consistent look across all terminal applications
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Using a theme
|
|
63
|
+
|
|
64
|
+
You can select a theme by bringing up the theme select with the `/theme` command. Or you can specify it in your [config](/docs/config).
|
|
65
|
+
|
|
66
|
+
```json title="neocode.json" {3}
|
|
67
|
+
{
|
|
68
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
69
|
+
"theme": "tokyonight"
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Custom themes
|
|
76
|
+
|
|
77
|
+
NeoCode supports a flexible JSON-based theme system that allows users to create and customize themes easily.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### Hierarchy
|
|
82
|
+
|
|
83
|
+
Themes are loaded from multiple directories in the following order where later directories override earlier ones:
|
|
84
|
+
|
|
85
|
+
1. **Built-in themes** - These are embedded in the binary
|
|
86
|
+
2. **User config directory** - Defined in `~/.config/neocode/themes/*.json` or `$XDG_CONFIG_HOME/neocode/themes/*.json`
|
|
87
|
+
3. **Project root directory** - Defined in the `<project-root>/.neocode/themes/*.json`
|
|
88
|
+
4. **Current working directory** - Defined in `./.neocode/themes/*.json`
|
|
89
|
+
|
|
90
|
+
If multiple directories contain a theme with the same name, the theme from the directory with higher priority will be used.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### Creating a theme
|
|
95
|
+
|
|
96
|
+
To create a custom theme, create a JSON file in one of the theme directories.
|
|
97
|
+
|
|
98
|
+
For user-wide themes:
|
|
99
|
+
|
|
100
|
+
```bash no-frame
|
|
101
|
+
mkdir -p ~/.config/neocode/themes
|
|
102
|
+
vim ~/.config/neocode/themes/my-theme.json
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
And for project-specific themes.
|
|
106
|
+
|
|
107
|
+
```bash no-frame
|
|
108
|
+
mkdir -p .neocode/themes
|
|
109
|
+
vim .neocode/themes/my-theme.json
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### JSON format
|
|
115
|
+
|
|
116
|
+
Themes use a flexible JSON format with support for:
|
|
117
|
+
|
|
118
|
+
- **Hex colors**: `"#ffffff"`
|
|
119
|
+
- **ANSI colors**: `3` (0-255)
|
|
120
|
+
- **Color references**: `"primary"` or custom definitions
|
|
121
|
+
- **Dark/light variants**: `{"dark": "#000", "light": "#fff"}`
|
|
122
|
+
- **No color**: `"none"` - Uses the terminal's default color or transparent
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### Color definitions
|
|
127
|
+
|
|
128
|
+
The `defs` section is optional and it allows you to define reusable colors that can be referenced in the theme.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
### Terminal defaults
|
|
133
|
+
|
|
134
|
+
The special value `"none"` can be used for any color to inherit the terminal's default color. This is particularly useful for creating themes that blend seamlessly with your terminal's color scheme:
|
|
135
|
+
|
|
136
|
+
- `"text": "none"` - Uses terminal's default foreground color
|
|
137
|
+
- `"background": "none"` - Uses terminal's default background color
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
Here's an example of a custom theme:
|
|
144
|
+
|
|
145
|
+
```json title="my-theme.json"
|
|
146
|
+
{
|
|
147
|
+
"$schema": "https://neo.khulnasoft.com/theme.json",
|
|
148
|
+
"defs": {
|
|
149
|
+
"nord0": "#2E3440",
|
|
150
|
+
"nord1": "#3B4252",
|
|
151
|
+
"nord2": "#434C5E",
|
|
152
|
+
"nord3": "#4C566A",
|
|
153
|
+
"nord4": "#D8DEE9",
|
|
154
|
+
"nord5": "#E5E9F0",
|
|
155
|
+
"nord6": "#ECEFF4",
|
|
156
|
+
"nord7": "#8FBCBB",
|
|
157
|
+
"nord8": "#88C0D0",
|
|
158
|
+
"nord9": "#81A1C1",
|
|
159
|
+
"nord10": "#5E81AC",
|
|
160
|
+
"nord11": "#BF616A",
|
|
161
|
+
"nord12": "#D08770",
|
|
162
|
+
"nord13": "#EBCB8B",
|
|
163
|
+
"nord14": "#A3BE8C",
|
|
164
|
+
"nord15": "#B48EAD"
|
|
165
|
+
},
|
|
166
|
+
"theme": {
|
|
167
|
+
"primary": {
|
|
168
|
+
"dark": "nord8",
|
|
169
|
+
"light": "nord10"
|
|
170
|
+
},
|
|
171
|
+
"secondary": {
|
|
172
|
+
"dark": "nord9",
|
|
173
|
+
"light": "nord9"
|
|
174
|
+
},
|
|
175
|
+
"accent": {
|
|
176
|
+
"dark": "nord7",
|
|
177
|
+
"light": "nord7"
|
|
178
|
+
},
|
|
179
|
+
"error": {
|
|
180
|
+
"dark": "nord11",
|
|
181
|
+
"light": "nord11"
|
|
182
|
+
},
|
|
183
|
+
"warning": {
|
|
184
|
+
"dark": "nord12",
|
|
185
|
+
"light": "nord12"
|
|
186
|
+
},
|
|
187
|
+
"success": {
|
|
188
|
+
"dark": "nord14",
|
|
189
|
+
"light": "nord14"
|
|
190
|
+
},
|
|
191
|
+
"info": {
|
|
192
|
+
"dark": "nord8",
|
|
193
|
+
"light": "nord10"
|
|
194
|
+
},
|
|
195
|
+
"text": {
|
|
196
|
+
"dark": "nord4",
|
|
197
|
+
"light": "nord0"
|
|
198
|
+
},
|
|
199
|
+
"textMuted": {
|
|
200
|
+
"dark": "nord3",
|
|
201
|
+
"light": "nord1"
|
|
202
|
+
},
|
|
203
|
+
"background": {
|
|
204
|
+
"dark": "nord0",
|
|
205
|
+
"light": "nord6"
|
|
206
|
+
},
|
|
207
|
+
"backgroundPanel": {
|
|
208
|
+
"dark": "nord1",
|
|
209
|
+
"light": "nord5"
|
|
210
|
+
},
|
|
211
|
+
"backgroundElement": {
|
|
212
|
+
"dark": "nord1",
|
|
213
|
+
"light": "nord4"
|
|
214
|
+
},
|
|
215
|
+
"border": {
|
|
216
|
+
"dark": "nord2",
|
|
217
|
+
"light": "nord3"
|
|
218
|
+
},
|
|
219
|
+
"borderActive": {
|
|
220
|
+
"dark": "nord3",
|
|
221
|
+
"light": "nord2"
|
|
222
|
+
},
|
|
223
|
+
"borderSubtle": {
|
|
224
|
+
"dark": "nord2",
|
|
225
|
+
"light": "nord3"
|
|
226
|
+
},
|
|
227
|
+
"diffAdded": {
|
|
228
|
+
"dark": "nord14",
|
|
229
|
+
"light": "nord14"
|
|
230
|
+
},
|
|
231
|
+
"diffRemoved": {
|
|
232
|
+
"dark": "nord11",
|
|
233
|
+
"light": "nord11"
|
|
234
|
+
},
|
|
235
|
+
"diffContext": {
|
|
236
|
+
"dark": "nord3",
|
|
237
|
+
"light": "nord3"
|
|
238
|
+
},
|
|
239
|
+
"diffHunkHeader": {
|
|
240
|
+
"dark": "nord3",
|
|
241
|
+
"light": "nord3"
|
|
242
|
+
},
|
|
243
|
+
"diffHighlightAdded": {
|
|
244
|
+
"dark": "nord14",
|
|
245
|
+
"light": "nord14"
|
|
246
|
+
},
|
|
247
|
+
"diffHighlightRemoved": {
|
|
248
|
+
"dark": "nord11",
|
|
249
|
+
"light": "nord11"
|
|
250
|
+
},
|
|
251
|
+
"diffAddedBg": {
|
|
252
|
+
"dark": "#3B4252",
|
|
253
|
+
"light": "#E5E9F0"
|
|
254
|
+
},
|
|
255
|
+
"diffRemovedBg": {
|
|
256
|
+
"dark": "#3B4252",
|
|
257
|
+
"light": "#E5E9F0"
|
|
258
|
+
},
|
|
259
|
+
"diffContextBg": {
|
|
260
|
+
"dark": "nord1",
|
|
261
|
+
"light": "nord5"
|
|
262
|
+
},
|
|
263
|
+
"diffLineNumber": {
|
|
264
|
+
"dark": "nord2",
|
|
265
|
+
"light": "nord4"
|
|
266
|
+
},
|
|
267
|
+
"diffAddedLineNumberBg": {
|
|
268
|
+
"dark": "#3B4252",
|
|
269
|
+
"light": "#E5E9F0"
|
|
270
|
+
},
|
|
271
|
+
"diffRemovedLineNumberBg": {
|
|
272
|
+
"dark": "#3B4252",
|
|
273
|
+
"light": "#E5E9F0"
|
|
274
|
+
},
|
|
275
|
+
"markdownText": {
|
|
276
|
+
"dark": "nord4",
|
|
277
|
+
"light": "nord0"
|
|
278
|
+
},
|
|
279
|
+
"markdownHeading": {
|
|
280
|
+
"dark": "nord8",
|
|
281
|
+
"light": "nord10"
|
|
282
|
+
},
|
|
283
|
+
"markdownLink": {
|
|
284
|
+
"dark": "nord9",
|
|
285
|
+
"light": "nord9"
|
|
286
|
+
},
|
|
287
|
+
"markdownLinkText": {
|
|
288
|
+
"dark": "nord7",
|
|
289
|
+
"light": "nord7"
|
|
290
|
+
},
|
|
291
|
+
"markdownCode": {
|
|
292
|
+
"dark": "nord14",
|
|
293
|
+
"light": "nord14"
|
|
294
|
+
},
|
|
295
|
+
"markdownBlockQuote": {
|
|
296
|
+
"dark": "nord3",
|
|
297
|
+
"light": "nord3"
|
|
298
|
+
},
|
|
299
|
+
"markdownEmph": {
|
|
300
|
+
"dark": "nord12",
|
|
301
|
+
"light": "nord12"
|
|
302
|
+
},
|
|
303
|
+
"markdownStrong": {
|
|
304
|
+
"dark": "nord13",
|
|
305
|
+
"light": "nord13"
|
|
306
|
+
},
|
|
307
|
+
"markdownHorizontalRule": {
|
|
308
|
+
"dark": "nord3",
|
|
309
|
+
"light": "nord3"
|
|
310
|
+
},
|
|
311
|
+
"markdownListItem": {
|
|
312
|
+
"dark": "nord8",
|
|
313
|
+
"light": "nord10"
|
|
314
|
+
},
|
|
315
|
+
"markdownListEnumeration": {
|
|
316
|
+
"dark": "nord7",
|
|
317
|
+
"light": "nord7"
|
|
318
|
+
},
|
|
319
|
+
"markdownImage": {
|
|
320
|
+
"dark": "nord9",
|
|
321
|
+
"light": "nord9"
|
|
322
|
+
},
|
|
323
|
+
"markdownImageText": {
|
|
324
|
+
"dark": "nord7",
|
|
325
|
+
"light": "nord7"
|
|
326
|
+
},
|
|
327
|
+
"markdownCodeBlock": {
|
|
328
|
+
"dark": "nord4",
|
|
329
|
+
"light": "nord0"
|
|
330
|
+
},
|
|
331
|
+
"syntaxComment": {
|
|
332
|
+
"dark": "nord3",
|
|
333
|
+
"light": "nord3"
|
|
334
|
+
},
|
|
335
|
+
"syntaxKeyword": {
|
|
336
|
+
"dark": "nord9",
|
|
337
|
+
"light": "nord9"
|
|
338
|
+
},
|
|
339
|
+
"syntaxFunction": {
|
|
340
|
+
"dark": "nord8",
|
|
341
|
+
"light": "nord8"
|
|
342
|
+
},
|
|
343
|
+
"syntaxVariable": {
|
|
344
|
+
"dark": "nord7",
|
|
345
|
+
"light": "nord7"
|
|
346
|
+
},
|
|
347
|
+
"syntaxString": {
|
|
348
|
+
"dark": "nord14",
|
|
349
|
+
"light": "nord14"
|
|
350
|
+
},
|
|
351
|
+
"syntaxNumber": {
|
|
352
|
+
"dark": "nord15",
|
|
353
|
+
"light": "nord15"
|
|
354
|
+
},
|
|
355
|
+
"syntaxType": {
|
|
356
|
+
"dark": "nord7",
|
|
357
|
+
"light": "nord7"
|
|
358
|
+
},
|
|
359
|
+
"syntaxOperator": {
|
|
360
|
+
"dark": "nord9",
|
|
361
|
+
"light": "nord9"
|
|
362
|
+
},
|
|
363
|
+
"syntaxPunctuation": {
|
|
364
|
+
"dark": "nord4",
|
|
365
|
+
"light": "nord0"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
```
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tools
|
|
3
|
+
description: Manage the tools an LLM can use.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Tools allow the LLM to perform actions in your codebase. NeoCode comes with a set of built-in tools, but you can extend it with [custom tools](/docs/custom-tools) or [MCP servers](/docs/mcp-servers).
|
|
7
|
+
|
|
8
|
+
By default, all tools are **enabled** and don't need permission to run. You can control tool behavior through [permissions](/docs/permissions).
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Configure
|
|
13
|
+
|
|
14
|
+
Use the `permission` field to control tool behavior. You can allow, deny, or require approval for each tool.
|
|
15
|
+
|
|
16
|
+
```json title="neocode.json"
|
|
17
|
+
{
|
|
18
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
19
|
+
"permission": {
|
|
20
|
+
"edit": "deny",
|
|
21
|
+
"bash": "ask",
|
|
22
|
+
"webfetch": "allow"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
You can also use wildcards to control multiple tools at once. For example, to require approval for all tools from an MCP server:
|
|
28
|
+
|
|
29
|
+
```json title="neocode.json"
|
|
30
|
+
{
|
|
31
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
32
|
+
"permission": {
|
|
33
|
+
"mymcp_*": "ask"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[Learn more](/docs/permissions) about configuring permissions.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Built-in
|
|
43
|
+
|
|
44
|
+
Here are all the built-in tools available in NeoCode.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### bash
|
|
49
|
+
|
|
50
|
+
Execute shell commands in your project environment.
|
|
51
|
+
|
|
52
|
+
```json title="neocode.json" {4}
|
|
53
|
+
{
|
|
54
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
55
|
+
"permission": {
|
|
56
|
+
"bash": "allow"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
This tool allows the LLM to run terminal commands like `npm install`, `git status`, or any other shell command.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### edit
|
|
66
|
+
|
|
67
|
+
Modify existing files using exact string replacements.
|
|
68
|
+
|
|
69
|
+
```json title="neocode.json" {4}
|
|
70
|
+
{
|
|
71
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
72
|
+
"permission": {
|
|
73
|
+
"edit": "allow"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
This tool performs precise edits to files by replacing exact text matches. It's the primary way the LLM modifies code.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### write
|
|
83
|
+
|
|
84
|
+
Create new files or overwrite existing ones.
|
|
85
|
+
|
|
86
|
+
```json title="neocode.json" {4}
|
|
87
|
+
{
|
|
88
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
89
|
+
"permission": {
|
|
90
|
+
"edit": "allow"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Use this to allow the LLM to create new files. It will overwrite existing files if they already exist.
|
|
96
|
+
|
|
97
|
+
:::note
|
|
98
|
+
The `write` tool is controlled by the `edit` permission, which covers all file modifications (`edit`, `write`, `patch`, `multiedit`).
|
|
99
|
+
:::
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### read
|
|
104
|
+
|
|
105
|
+
Read file contents from your codebase.
|
|
106
|
+
|
|
107
|
+
```json title="neocode.json" {4}
|
|
108
|
+
{
|
|
109
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
110
|
+
"permission": {
|
|
111
|
+
"read": "allow"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
This tool reads files and returns their contents. It supports reading specific line ranges for large files.
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
### grep
|
|
121
|
+
|
|
122
|
+
Search file contents using regular expressions.
|
|
123
|
+
|
|
124
|
+
```json title="neocode.json" {4}
|
|
125
|
+
{
|
|
126
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
127
|
+
"permission": {
|
|
128
|
+
"grep": "allow"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Fast content search across your codebase. Supports full regex syntax and file pattern filtering.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### glob
|
|
138
|
+
|
|
139
|
+
Find files by pattern matching.
|
|
140
|
+
|
|
141
|
+
```json title="neocode.json" {4}
|
|
142
|
+
{
|
|
143
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
144
|
+
"permission": {
|
|
145
|
+
"glob": "allow"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Search for files using glob patterns like `**/*.js` or `src/**/*.ts`. Returns matching file paths sorted by modification time.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
### list
|
|
155
|
+
|
|
156
|
+
List files and directories in a given path.
|
|
157
|
+
|
|
158
|
+
```json title="neocode.json" {4}
|
|
159
|
+
{
|
|
160
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
161
|
+
"permission": {
|
|
162
|
+
"list": "allow"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
This tool lists directory contents. It accepts glob patterns to filter results.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
### lsp (experimental)
|
|
172
|
+
|
|
173
|
+
Interact with your configured LSP servers to get code intelligence features like definitions, references, hover info, and call hierarchy.
|
|
174
|
+
|
|
175
|
+
:::note
|
|
176
|
+
This tool is only available when `NEOCODE_EXPERIMENTAL_LSP_TOOL=true` (or `NEOCODE_EXPERIMENTAL=true`).
|
|
177
|
+
:::
|
|
178
|
+
|
|
179
|
+
```json title="neocode.json" {4}
|
|
180
|
+
{
|
|
181
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
182
|
+
"permission": {
|
|
183
|
+
"lsp": "allow"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Supported operations include `goToDefinition`, `findReferences`, `hover`, `documentSymbol`, `workspaceSymbol`, `goToImplementation`, `prepareCallHierarchy`, `incomingCalls`, and `outgoingCalls`.
|
|
189
|
+
|
|
190
|
+
To configure which LSP servers are available for your project, see [LSP Servers](/docs/lsp).
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
### patch
|
|
195
|
+
|
|
196
|
+
Apply patches to files.
|
|
197
|
+
|
|
198
|
+
```json title="neocode.json" {4}
|
|
199
|
+
{
|
|
200
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
201
|
+
"permission": {
|
|
202
|
+
"edit": "allow"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
This tool applies patch files to your codebase. Useful for applying diffs and patches from various sources.
|
|
208
|
+
|
|
209
|
+
:::note
|
|
210
|
+
The `patch` tool is controlled by the `edit` permission, which covers all file modifications (`edit`, `write`, `patch`, `multiedit`).
|
|
211
|
+
:::
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
### skill
|
|
216
|
+
|
|
217
|
+
Load a [skill](/docs/skills) (a `SKILL.md` file) and return its content in the conversation.
|
|
218
|
+
|
|
219
|
+
```json title="neocode.json" {4}
|
|
220
|
+
{
|
|
221
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
222
|
+
"permission": {
|
|
223
|
+
"skill": "allow"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
### todowrite
|
|
231
|
+
|
|
232
|
+
Manage todo lists during coding sessions.
|
|
233
|
+
|
|
234
|
+
```json title="neocode.json" {4}
|
|
235
|
+
{
|
|
236
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
237
|
+
"permission": {
|
|
238
|
+
"todowrite": "allow"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Creates and updates task lists to track progress during complex operations. The LLM uses this to organize multi-step tasks.
|
|
244
|
+
|
|
245
|
+
:::note
|
|
246
|
+
This tool is disabled for subagents by default, but you can enable it manually. [Learn more](/docs/agents/#permissions)
|
|
247
|
+
:::
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
### todoread
|
|
252
|
+
|
|
253
|
+
Read existing todo lists.
|
|
254
|
+
|
|
255
|
+
```json title="neocode.json" {4}
|
|
256
|
+
{
|
|
257
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
258
|
+
"permission": {
|
|
259
|
+
"todoread": "allow"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Reads the current todo list state. Used by the LLM to track what tasks are pending or completed.
|
|
265
|
+
|
|
266
|
+
:::note
|
|
267
|
+
This tool is disabled for subagents by default, but you can enable it manually. [Learn more](/docs/agents/#permissions)
|
|
268
|
+
:::
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
### webfetch
|
|
273
|
+
|
|
274
|
+
Fetch web content.
|
|
275
|
+
|
|
276
|
+
```json title="neocode.json" {4}
|
|
277
|
+
{
|
|
278
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
279
|
+
"permission": {
|
|
280
|
+
"webfetch": "allow"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Allows the LLM to fetch and read web pages. Useful for looking up documentation or researching online resources.
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
### question
|
|
290
|
+
|
|
291
|
+
Ask the user questions during execution.
|
|
292
|
+
|
|
293
|
+
```json title="neocode.json" {4}
|
|
294
|
+
{
|
|
295
|
+
"$schema": "https://neo.khulnasoft.com/config.json",
|
|
296
|
+
"permission": {
|
|
297
|
+
"question": "allow"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
This tool allows the LLM to ask the user questions during a task. It's useful for:
|
|
303
|
+
|
|
304
|
+
- Gathering user preferences or requirements
|
|
305
|
+
- Clarifying ambiguous instructions
|
|
306
|
+
- Getting decisions on implementation choices
|
|
307
|
+
- Offering choices about what direction to take
|
|
308
|
+
|
|
309
|
+
Each question includes a header, the question text, and a list of options. Users can select from the provided options or type a custom answer. When there are multiple questions, users can navigate between them before submitting all answers.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Custom tools
|
|
314
|
+
|
|
315
|
+
Custom tools let you define your own functions that the LLM can call. These are defined in your config file and can execute arbitrary code.
|
|
316
|
+
|
|
317
|
+
[Learn more](/docs/custom-tools) about creating custom tools.
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## MCP servers
|
|
322
|
+
|
|
323
|
+
MCP (Model Context Protocol) servers allow you to integrate external tools and services. This includes database access, API integrations, and third-party services.
|
|
324
|
+
|
|
325
|
+
[Learn more](/docs/mcp-servers) about configuring MCP servers.
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Internals
|
|
330
|
+
|
|
331
|
+
Internally, tools like `grep`, `glob`, and `list` use [ripgrep](https://github.com/BurntSushi/ripgrep) under the hood. By default, ripgrep respects `.gitignore` patterns, which means files and directories listed in your `.gitignore` will be excluded from searches and listings.
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
### Ignore patterns
|
|
336
|
+
|
|
337
|
+
To include files that would normally be ignored, create a `.ignore` file in your project root. This file can explicitly allow certain paths.
|
|
338
|
+
|
|
339
|
+
```text title=".ignore"
|
|
340
|
+
!node_modules/
|
|
341
|
+
!dist/
|
|
342
|
+
!build/
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
For example, this `.ignore` file allows ripgrep to search within `node_modules/`, `dist/`, and `build/` directories even if they're listed in `.gitignore`.
|