@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.
Files changed (86) hide show
  1. package/README.md +54 -0
  2. package/astro.config.mjs +145 -0
  3. package/config.mjs +14 -0
  4. package/package.json +41 -0
  5. package/public/robots.txt +6 -0
  6. package/public/theme.json +183 -0
  7. package/src/assets/lander/check.svg +2 -0
  8. package/src/assets/lander/copy.svg +2 -0
  9. package/src/assets/lander/screenshot-github.png +0 -0
  10. package/src/assets/lander/screenshot-splash.png +0 -0
  11. package/src/assets/lander/screenshot-vscode.png +0 -0
  12. package/src/assets/lander/screenshot.png +0 -0
  13. package/src/assets/logo-dark.svg +20 -0
  14. package/src/assets/logo-light.svg +20 -0
  15. package/src/assets/logo-ornate-dark.svg +18 -0
  16. package/src/assets/logo-ornate-light.svg +18 -0
  17. package/src/assets/web/web-homepage-active-session.png +0 -0
  18. package/src/assets/web/web-homepage-new-session.png +0 -0
  19. package/src/assets/web/web-homepage-see-servers.png +0 -0
  20. package/src/components/Head.astro +50 -0
  21. package/src/components/Header.astro +128 -0
  22. package/src/components/Hero.astro +11 -0
  23. package/src/components/Lander.astro +713 -0
  24. package/src/components/Share.tsx +634 -0
  25. package/src/components/SiteTitle.astro +59 -0
  26. package/src/components/icons/custom.tsx +87 -0
  27. package/src/components/icons/index.tsx +4454 -0
  28. package/src/components/share/common.tsx +77 -0
  29. package/src/components/share/content-bash.module.css +85 -0
  30. package/src/components/share/content-bash.tsx +67 -0
  31. package/src/components/share/content-code.module.css +26 -0
  32. package/src/components/share/content-code.tsx +32 -0
  33. package/src/components/share/content-diff.module.css +153 -0
  34. package/src/components/share/content-diff.tsx +231 -0
  35. package/src/components/share/content-error.module.css +64 -0
  36. package/src/components/share/content-error.tsx +24 -0
  37. package/src/components/share/content-markdown.module.css +154 -0
  38. package/src/components/share/content-markdown.tsx +75 -0
  39. package/src/components/share/content-text.module.css +63 -0
  40. package/src/components/share/content-text.tsx +37 -0
  41. package/src/components/share/copy-button.module.css +30 -0
  42. package/src/components/share/copy-button.tsx +28 -0
  43. package/src/components/share/part.module.css +428 -0
  44. package/src/components/share/part.tsx +780 -0
  45. package/src/components/share.module.css +832 -0
  46. package/src/content/docs/1-0.mdx +67 -0
  47. package/src/content/docs/acp.mdx +156 -0
  48. package/src/content/docs/agents.mdx +720 -0
  49. package/src/content/docs/cli.mdx +597 -0
  50. package/src/content/docs/commands.mdx +323 -0
  51. package/src/content/docs/config.mdx +683 -0
  52. package/src/content/docs/custom-tools.mdx +170 -0
  53. package/src/content/docs/ecosystem.mdx +76 -0
  54. package/src/content/docs/enterprise.mdx +170 -0
  55. package/src/content/docs/formatters.mdx +130 -0
  56. package/src/content/docs/github.mdx +321 -0
  57. package/src/content/docs/gitlab.mdx +195 -0
  58. package/src/content/docs/ide.mdx +48 -0
  59. package/src/content/docs/index.mdx +359 -0
  60. package/src/content/docs/keybinds.mdx +191 -0
  61. package/src/content/docs/lsp.mdx +188 -0
  62. package/src/content/docs/mcp-servers.mdx +511 -0
  63. package/src/content/docs/models.mdx +223 -0
  64. package/src/content/docs/modes.mdx +331 -0
  65. package/src/content/docs/network.mdx +57 -0
  66. package/src/content/docs/permissions.mdx +237 -0
  67. package/src/content/docs/plugins.mdx +362 -0
  68. package/src/content/docs/providers.mdx +1889 -0
  69. package/src/content/docs/rules.mdx +180 -0
  70. package/src/content/docs/sdk.mdx +391 -0
  71. package/src/content/docs/server.mdx +286 -0
  72. package/src/content/docs/share.mdx +128 -0
  73. package/src/content/docs/skills.mdx +220 -0
  74. package/src/content/docs/themes.mdx +369 -0
  75. package/src/content/docs/tools.mdx +345 -0
  76. package/src/content/docs/troubleshooting.mdx +300 -0
  77. package/src/content/docs/tui.mdx +390 -0
  78. package/src/content/docs/web.mdx +136 -0
  79. package/src/content/docs/windows-wsl.mdx +113 -0
  80. package/src/content/docs/zen.mdx +251 -0
  81. package/src/content.config.ts +7 -0
  82. package/src/pages/[...slug].md.ts +18 -0
  83. package/src/pages/s/[id].astro +113 -0
  84. package/src/styles/custom.css +405 -0
  85. package/src/types/lang-map.d.ts +27 -0
  86. package/tsconfig.json +9 -0
@@ -0,0 +1,720 @@
1
+ ---
2
+ title: Agents
3
+ description: Configure and use specialized agents.
4
+ ---
5
+
6
+ Agents are specialized AI assistants that can be configured for specific tasks and workflows. They allow you to create focused tools with custom prompts, models, and tool access.
7
+
8
+ :::tip
9
+ Use the plan agent to analyze code and review suggestions without making any code changes.
10
+ :::
11
+
12
+ You can switch between agents during a session or invoke them with the `@` mention.
13
+
14
+ ---
15
+
16
+ ## Types
17
+
18
+ There are two types of agents in NeoCode; primary agents and subagents.
19
+
20
+ ---
21
+
22
+ ### Primary agents
23
+
24
+ Primary agents are the main assistants you interact with directly. You can cycle through them using the **Tab** key, or your configured `switch_agent` keybind. These agents handle your main conversation. Tool access is configured via permissions — for example, Build has all tools enabled while Plan is restricted.
25
+
26
+ :::tip
27
+ You can use the **Tab** key to switch between primary agents during a session.
28
+ :::
29
+
30
+ NeoCode comes with two built-in primary agents, **Build** and **Plan**. We'll
31
+ look at these below.
32
+
33
+ ---
34
+
35
+ ### Subagents
36
+
37
+ Subagents are specialized assistants that primary agents can invoke for specific tasks. You can also manually invoke them by **@ mentioning** them in your messages.
38
+
39
+ NeoCode comes with two built-in subagents, **General** and **Explore**. We'll look at this below.
40
+
41
+ ---
42
+
43
+ ## Built-in
44
+
45
+ NeoCode comes with two built-in primary agents and two built-in subagents.
46
+
47
+ ---
48
+
49
+ ### Build
50
+
51
+ _Mode_: `primary`
52
+
53
+ Build is the **default** primary agent with all tools enabled. This is the standard agent for development work where you need full access to file operations and system commands.
54
+
55
+ ---
56
+
57
+ ### Plan
58
+
59
+ _Mode_: `primary`
60
+
61
+ A restricted agent designed for planning and analysis. We use a permission system to give you more control and prevent unintended changes.
62
+ By default, all of the following are set to `ask`:
63
+
64
+ - `file edits`: All writes, patches, and edits
65
+ - `bash`: All bash commands
66
+
67
+ This agent is useful when you want the LLM to analyze code, suggest changes, or create plans without making any actual modifications to your codebase.
68
+
69
+ ---
70
+
71
+ ### General
72
+
73
+ _Mode_: `subagent`
74
+
75
+ A general-purpose agent for researching complex questions and executing multi-step tasks. Has full tool access (except todo), so it can make file changes when needed. Use this to run multiple units of work in parallel.
76
+
77
+ ---
78
+
79
+ ### Explore
80
+
81
+ _Mode_: `subagent`
82
+
83
+ A fast, read-only agent for exploring codebases. Cannot modify files. Use this when you need to quickly find files by patterns, search code for keywords, or answer questions about the codebase.
84
+
85
+ ---
86
+
87
+ ## Usage
88
+
89
+ 1. For primary agents, use the **Tab** key to cycle through them during a session. You can also use your configured `switch_agent` keybind.
90
+
91
+ 2. Subagents can be invoked:
92
+ - **Automatically** by primary agents for specialized tasks based on their descriptions.
93
+ - Manually by **@ mentioning** a subagent in your message. For example.
94
+
95
+ ```txt frame="none"
96
+ @general help me search for this function
97
+ ```
98
+
99
+ 3. **Navigation between sessions**: When subagents create their own child sessions, you can navigate between the parent session and all child sessions using:
100
+ - **\<Leader>+Right** (or your configured `session_child_cycle` keybind) to cycle forward through parent → child1 → child2 → ... → parent
101
+ - **\<Leader>+Left** (or your configured `session_child_cycle_reverse` keybind) to cycle backward through parent ← child1 ← child2 ← ... ← parent
102
+
103
+ This allows you to seamlessly switch between the main conversation and specialized subagent work.
104
+
105
+ ---
106
+
107
+ ## Configure
108
+
109
+ You can customize the built-in agents or create your own through configuration. Agents can be configured in two ways:
110
+
111
+ ---
112
+
113
+ ### JSON
114
+
115
+ Configure agents in your `neocode.json` config file:
116
+
117
+ ```json title="neocode.json"
118
+ {
119
+ "$schema": "https://neo.khulnasoft.com/config.json",
120
+ "agent": {
121
+ "build": {
122
+ "mode": "primary",
123
+ "model": "anthropic/claude-sonnet-4-20250514",
124
+ "prompt": "{file:./prompts/build.txt}",
125
+ "tools": {
126
+ "write": true,
127
+ "edit": true,
128
+ "bash": true
129
+ }
130
+ },
131
+ "plan": {
132
+ "mode": "primary",
133
+ "model": "anthropic/claude-haiku-4-20250514",
134
+ "tools": {
135
+ "write": false,
136
+ "edit": false,
137
+ "bash": false
138
+ }
139
+ },
140
+ "code-reviewer": {
141
+ "description": "Reviews code for best practices and potential issues",
142
+ "mode": "subagent",
143
+ "model": "anthropic/claude-sonnet-4-20250514",
144
+ "prompt": "You are a code reviewer. Focus on security, performance, and maintainability.",
145
+ "tools": {
146
+ "write": false,
147
+ "edit": false
148
+ }
149
+ }
150
+ }
151
+ }
152
+ ```
153
+
154
+ ---
155
+
156
+ ### Markdown
157
+
158
+ You can also define agents using markdown files. Place them in:
159
+
160
+ - Global: `~/.config/neocode/agents/`
161
+ - Per-project: `.neocode/agents/`
162
+
163
+ ```markdown title="~/.config/neocode/agents/review.md"
164
+ ---
165
+ description: Reviews code for quality and best practices
166
+ mode: subagent
167
+ model: anthropic/claude-sonnet-4-20250514
168
+ temperature: 0.1
169
+ tools:
170
+ write: false
171
+ edit: false
172
+ bash: false
173
+ ---
174
+
175
+ You are in code review mode. Focus on:
176
+
177
+ - Code quality and best practices
178
+ - Potential bugs and edge cases
179
+ - Performance implications
180
+ - Security considerations
181
+
182
+ Provide constructive feedback without making direct changes.
183
+ ```
184
+
185
+ The markdown file name becomes the agent name. For example, `review.md` creates a `review` agent.
186
+
187
+ ---
188
+
189
+ ## Options
190
+
191
+ Let's look at these configuration options in detail.
192
+
193
+ ---
194
+
195
+ ### Description
196
+
197
+ Use the `description` option to provide a brief description of what the agent does and when to use it.
198
+
199
+ ```json title="neocode.json"
200
+ {
201
+ "agent": {
202
+ "review": {
203
+ "description": "Reviews code for best practices and potential issues"
204
+ }
205
+ }
206
+ }
207
+ ```
208
+
209
+ This is a **required** config option.
210
+
211
+ ---
212
+
213
+ ### Temperature
214
+
215
+ Control the randomness and creativity of the LLM's responses with the `temperature` config.
216
+
217
+ Lower values make responses more focused and deterministic, while higher values increase creativity and variability.
218
+
219
+ ```json title="neocode.json"
220
+ {
221
+ "agent": {
222
+ "plan": {
223
+ "temperature": 0.1
224
+ },
225
+ "creative": {
226
+ "temperature": 0.8
227
+ }
228
+ }
229
+ }
230
+ ```
231
+
232
+ Temperature values typically range from 0.0 to 1.0:
233
+
234
+ - **0.0-0.2**: Very focused and deterministic responses, ideal for code analysis and planning
235
+ - **0.3-0.5**: Balanced responses with some creativity, good for general development tasks
236
+ - **0.6-1.0**: More creative and varied responses, useful for brainstorming and exploration
237
+
238
+ ```json title="neocode.json"
239
+ {
240
+ "agent": {
241
+ "analyze": {
242
+ "temperature": 0.1,
243
+ "prompt": "{file:./prompts/analysis.txt}"
244
+ },
245
+ "build": {
246
+ "temperature": 0.3
247
+ },
248
+ "brainstorm": {
249
+ "temperature": 0.7,
250
+ "prompt": "{file:./prompts/creative.txt}"
251
+ }
252
+ }
253
+ }
254
+ ```
255
+
256
+ If no temperature is specified, NeoCode uses model-specific defaults; typically 0 for most models, 0.55 for Qwen models.
257
+
258
+ ---
259
+
260
+ ### Max steps
261
+
262
+ Control the maximum number of agentic iterations an agent can perform before being forced to respond with text only. This allows users who wish to control costs to set a limit on agentic actions.
263
+
264
+ If this is not set, the agent will continue to iterate until the model chooses to stop or the user interrupts the session.
265
+
266
+ ```json title="neocode.json"
267
+ {
268
+ "agent": {
269
+ "quick-thinker": {
270
+ "description": "Fast reasoning with limited iterations",
271
+ "prompt": "You are a quick thinker. Solve problems with minimal steps.",
272
+ "steps": 5
273
+ }
274
+ }
275
+ }
276
+ ```
277
+
278
+ When the limit is reached, the agent receives a special system prompt instructing it to respond with a summarization of its work and recommended remaining tasks.
279
+
280
+ :::caution
281
+ The legacy `maxSteps` field is deprecated. Use `steps` instead.
282
+ :::
283
+
284
+ ---
285
+
286
+ ### Disable
287
+
288
+ Set to `true` to disable the agent.
289
+
290
+ ```json title="neocode.json"
291
+ {
292
+ "agent": {
293
+ "review": {
294
+ "disable": true
295
+ }
296
+ }
297
+ }
298
+ ```
299
+
300
+ ---
301
+
302
+ ### Prompt
303
+
304
+ Specify a custom system prompt file for this agent with the `prompt` config. The prompt file should contain instructions specific to the agent's purpose.
305
+
306
+ ```json title="neocode.json"
307
+ {
308
+ "agent": {
309
+ "review": {
310
+ "prompt": "{file:./prompts/code-review.txt}"
311
+ }
312
+ }
313
+ }
314
+ ```
315
+
316
+ This path is relative to where the config file is located. So this works for both the global NeoCode config and the project specific config.
317
+
318
+ ---
319
+
320
+ ### Model
321
+
322
+ Use the `model` config to override the model for this agent. Useful for using different models optimized for different tasks. For example, a faster model for planning, a more capable model for implementation.
323
+
324
+ :::tip
325
+ If you don’t specify a model, primary agents use the [model globally configured](/docs/config#models) while subagents will use the model of the primary agent that invoked the subagent.
326
+ :::
327
+
328
+ ```json title="neocode.json"
329
+ {
330
+ "agent": {
331
+ "plan": {
332
+ "model": "anthropic/claude-haiku-4-20250514"
333
+ }
334
+ }
335
+ }
336
+ ```
337
+
338
+ The model ID in your NeoCode config uses the format `provider/model-id`. For example, if you're using [NeoCode Zen](/docs/zen), you would use `neocode/gpt-5.1-codex` for GPT 5.1 Codex.
339
+
340
+ ---
341
+
342
+ ### Tools
343
+
344
+ Control which tools are available in this agent with the `tools` config. You can enable or disable specific tools by setting them to `true` or `false`.
345
+
346
+ ```json title="neocode.json" {3-6,9-12}
347
+ {
348
+ "$schema": "https://neo.khulnasoft.com/config.json",
349
+ "tools": {
350
+ "write": true,
351
+ "bash": true
352
+ },
353
+ "agent": {
354
+ "plan": {
355
+ "tools": {
356
+ "write": false,
357
+ "bash": false
358
+ }
359
+ }
360
+ }
361
+ }
362
+ ```
363
+
364
+ :::note
365
+ The agent-specific config overrides the global config.
366
+ :::
367
+
368
+ You can also use wildcards to control multiple tools at once. For example, to disable all tools from an MCP server:
369
+
370
+ ```json title="neocode.json"
371
+ {
372
+ "$schema": "https://neo.khulnasoft.com/config.json",
373
+ "agent": {
374
+ "readonly": {
375
+ "tools": {
376
+ "mymcp_*": false,
377
+ "write": false,
378
+ "edit": false
379
+ }
380
+ }
381
+ }
382
+ }
383
+ ```
384
+
385
+ [Learn more about tools](/docs/tools).
386
+
387
+ ---
388
+
389
+ ### Permissions
390
+
391
+ You can configure permissions to manage what actions an agent can take. Currently, the permissions for the `edit`, `bash`, and `webfetch` tools can be configured to:
392
+
393
+ - `"ask"` — Prompt for approval before running the tool
394
+ - `"allow"` — Allow all operations without approval
395
+ - `"deny"` — Disable the tool
396
+
397
+ ```json title="neocode.json"
398
+ {
399
+ "$schema": "https://neo.khulnasoft.com/config.json",
400
+ "permission": {
401
+ "edit": "deny"
402
+ }
403
+ }
404
+ ```
405
+
406
+ You can override these permissions per agent.
407
+
408
+ ```json title="neocode.json" {3-5,8-10}
409
+ {
410
+ "$schema": "https://neo.khulnasoft.com/config.json",
411
+ "permission": {
412
+ "edit": "deny"
413
+ },
414
+ "agent": {
415
+ "build": {
416
+ "permission": {
417
+ "edit": "ask"
418
+ }
419
+ }
420
+ }
421
+ }
422
+ ```
423
+
424
+ You can also set permissions in Markdown agents.
425
+
426
+ ```markdown title="~/.config/neocode/agents/review.md"
427
+ ---
428
+ description: Code review without edits
429
+ mode: subagent
430
+ permission:
431
+ edit: deny
432
+ bash:
433
+ "*": ask
434
+ "git diff": allow
435
+ "git log*": allow
436
+ "grep *": allow
437
+ webfetch: deny
438
+ ---
439
+
440
+ Only analyze code and suggest changes.
441
+ ```
442
+
443
+ You can set permissions for specific bash commands.
444
+
445
+ ```json title="neocode.json" {7}
446
+ {
447
+ "$schema": "https://neo.khulnasoft.com/config.json",
448
+ "agent": {
449
+ "build": {
450
+ "permission": {
451
+ "bash": {
452
+ "git push": "ask",
453
+ "grep *": "allow"
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ ```
460
+
461
+ This can take a glob pattern.
462
+
463
+ ```json title="neocode.json" {7}
464
+ {
465
+ "$schema": "https://neo.khulnasoft.com/config.json",
466
+ "agent": {
467
+ "build": {
468
+ "permission": {
469
+ "bash": {
470
+ "git *": "ask"
471
+ }
472
+ }
473
+ }
474
+ }
475
+ }
476
+ ```
477
+
478
+ And you can also use the `*` wildcard to manage permissions for all commands.
479
+ Since the last matching rule takes precedence, put the `*` wildcard first and specific rules after.
480
+
481
+ ```json title="neocode.json" {8}
482
+ {
483
+ "$schema": "https://neo.khulnasoft.com/config.json",
484
+ "agent": {
485
+ "build": {
486
+ "permission": {
487
+ "bash": {
488
+ "*": "ask",
489
+ "git status *": "allow"
490
+ }
491
+ }
492
+ }
493
+ }
494
+ }
495
+ ```
496
+
497
+ [Learn more about permissions](/docs/permissions).
498
+
499
+ ---
500
+
501
+ ### Mode
502
+
503
+ Control the agent's mode with the `mode` config. The `mode` option is used to determine how the agent can be used.
504
+
505
+ ```json title="neocode.json"
506
+ {
507
+ "agent": {
508
+ "review": {
509
+ "mode": "subagent"
510
+ }
511
+ }
512
+ }
513
+ ```
514
+
515
+ The `mode` option can be set to `primary`, `subagent`, or `all`. If no `mode` is specified, it defaults to `all`.
516
+
517
+ ---
518
+
519
+ ### Hidden
520
+
521
+ Hide a subagent from the `@` autocomplete menu with `hidden: true`. Useful for internal subagents that should only be invoked programmatically by other agents via the Task tool.
522
+
523
+ ```json title="neocode.json"
524
+ {
525
+ "agent": {
526
+ "internal-helper": {
527
+ "mode": "subagent",
528
+ "hidden": true
529
+ }
530
+ }
531
+ }
532
+ ```
533
+
534
+ This only affects user visibility in the autocomplete menu. Hidden agents can still be invoked by the model via the Task tool if permissions allow.
535
+
536
+ :::note
537
+ Only applies to `mode: subagent` agents.
538
+ :::
539
+
540
+ ---
541
+
542
+ ### Task permissions
543
+
544
+ Control which subagents an agent can invoke via the Task tool with `permission.task`. Uses glob patterns for flexible matching.
545
+
546
+ ```json title="neocode.json"
547
+ {
548
+ "agent": {
549
+ "orchestrator": {
550
+ "mode": "primary",
551
+ "permission": {
552
+ "task": {
553
+ "*": "deny",
554
+ "orchestrator-*": "allow",
555
+ "code-reviewer": "ask"
556
+ }
557
+ }
558
+ }
559
+ }
560
+ }
561
+ ```
562
+
563
+ When set to `deny`, the subagent is removed from the Task tool description entirely, so the model won't attempt to invoke it.
564
+
565
+ :::tip
566
+ Rules are evaluated in order, and the **last matching rule wins**. In the example above, `orchestrator-planner` matches both `*` (deny) and `orchestrator-*` (allow), but since `orchestrator-*` comes after `*`, the result is `allow`.
567
+ :::
568
+
569
+ :::tip
570
+ Users can always invoke any subagent directly via the `@` autocomplete menu, even if the agent's task permissions would deny it.
571
+ :::
572
+
573
+ ---
574
+
575
+ ### Color
576
+
577
+ Customize the agent's visual appearance in the UI with the `color` option. This affects how the agent appears in the interface.
578
+
579
+ ```json title="neocode.json"
580
+ {
581
+ "agent": {
582
+ "creative": {
583
+ "color": "#ff6b6b"
584
+ }
585
+ }
586
+ }
587
+ ```
588
+
589
+ Must be a valid hex color code like `#FF5733`.
590
+
591
+ ---
592
+
593
+ ### Top P
594
+
595
+ Control response diversity with the `top_p` option. Alternative to temperature for controlling randomness.
596
+
597
+ ```json title="neocode.json"
598
+ {
599
+ "agent": {
600
+ "brainstorm": {
601
+ "top_p": 0.9
602
+ }
603
+ }
604
+ }
605
+ ```
606
+
607
+ Values range from 0.0 to 1.0. Lower values are more focused, higher values more diverse.
608
+
609
+ ---
610
+
611
+ ### Additional
612
+
613
+ Any other options you specify in your agent configuration will be **passed through directly** to the provider as model options. This allows you to use provider-specific features and parameters.
614
+
615
+ For example, with OpenAI's reasoning models, you can control the reasoning effort:
616
+
617
+ ```json title="neocode.json" {6,7}
618
+ {
619
+ "agent": {
620
+ "deep-thinker": {
621
+ "description": "Agent that uses high reasoning effort for complex problems",
622
+ "model": "openai/gpt-5",
623
+ "reasoningEffort": "high",
624
+ "textVerbosity": "low"
625
+ }
626
+ }
627
+ }
628
+ ```
629
+
630
+ These additional options are model and provider-specific. Check your provider's documentation for available parameters.
631
+
632
+ :::tip
633
+ Run `neocode models` to see a list of the available models.
634
+ :::
635
+
636
+ ---
637
+
638
+ ## Create agents
639
+
640
+ You can create new agents using the following command:
641
+
642
+ ```bash
643
+ neocode agent create
644
+ ```
645
+
646
+ This interactive command will:
647
+
648
+ 1. Ask where to save the agent; global or project-specific.
649
+ 2. Description of what the agent should do.
650
+ 3. Generate an appropriate system prompt and identifier.
651
+ 4. Let you select which tools the agent can access.
652
+ 5. Finally, create a markdown file with the agent configuration.
653
+
654
+ ---
655
+
656
+ ## Use cases
657
+
658
+ Here are some common use cases for different agents.
659
+
660
+ - **Build agent**: Full development work with all tools enabled
661
+ - **Plan agent**: Analysis and planning without making changes
662
+ - **Review agent**: Code review with read-only access plus documentation tools
663
+ - **Debug agent**: Focused on investigation with bash and read tools enabled
664
+ - **Docs agent**: Documentation writing with file operations but no system commands
665
+
666
+ ---
667
+
668
+ ## Examples
669
+
670
+ Here are some example agents you might find useful.
671
+
672
+ :::tip
673
+ Do you have an agent you'd like to share? [Submit a PR](https://github.com/neopilot-ai/neocode).
674
+ :::
675
+
676
+ ---
677
+
678
+ ### Documentation agent
679
+
680
+ ```markdown title="~/.config/neocode/agents/docs-writer.md"
681
+ ---
682
+ description: Writes and maintains project documentation
683
+ mode: subagent
684
+ tools:
685
+ bash: false
686
+ ---
687
+
688
+ You are a technical writer. Create clear, comprehensive documentation.
689
+
690
+ Focus on:
691
+
692
+ - Clear explanations
693
+ - Proper structure
694
+ - Code examples
695
+ - User-friendly language
696
+ ```
697
+
698
+ ---
699
+
700
+ ### Security auditor
701
+
702
+ ```markdown title="~/.config/neocode/agents/security-auditor.md"
703
+ ---
704
+ description: Performs security audits and identifies vulnerabilities
705
+ mode: subagent
706
+ tools:
707
+ write: false
708
+ edit: false
709
+ ---
710
+
711
+ You are a security expert. Focus on identifying potential security issues.
712
+
713
+ Look for:
714
+
715
+ - Input validation vulnerabilities
716
+ - Authentication and authorization flaws
717
+ - Data exposure risks
718
+ - Dependency vulnerabilities
719
+ - Configuration security issues
720
+ ```