@aiderdesk/aiderdesk 0.72.0 → 0.74.0
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/out/cli.js +982 -13
- package/out/renderer/assets/{AgentSettings-CEw1Tgyu.js → AgentSettings-B-793Wr6.js} +4561 -3203
- package/out/renderer/assets/{InfoIcon-B6bij_VJ.js → InfoIcon-cuLXzJtV.js} +1 -1
- package/out/renderer/assets/{Onboarding-C2CtQOko.js → Onboarding-xrPWRnXm.js} +4 -4
- package/out/renderer/assets/{ProviderHeader-BCrdzdGT.js → ProviderHeader-CMVyqpPa.js} +226 -275
- package/out/renderer/assets/{SettingsPage-CNCsKRS7.js → SettingsPage-BBtDhv80.js} +17 -11
- package/out/renderer/assets/{UsageDashboard-DtZ8GTj6.js → UsageDashboard-CGI4iwCD.js} +3 -3
- package/out/renderer/assets/{arc-DnyT8oZ2.js → arc-CFENq1wJ.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-3BPJPVTR-Dus_2n--.js → architectureDiagram-3BPJPVTR-BRG_9Mao.js} +3 -3
- package/out/renderer/assets/{blockDiagram-GPEHLZMM-A3REgcbw.js → blockDiagram-GPEHLZMM-B3c7WMY4.js} +4 -4
- package/out/renderer/assets/{c4Diagram-AAUBKEIU-DksErR7z.js → c4Diagram-AAUBKEIU-BYQrxMcW.js} +2 -2
- package/out/renderer/assets/{channel-DkjNDJNa.js → channel-DPxL1rpa.js} +1 -1
- package/out/renderer/assets/{chunk-2J33WTMH-CrUC6pnQ.js → chunk-2J33WTMH-C-kk05Nj.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-BulXGa1B.js → chunk-4BX2VUAB-BV8PWxnG.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-pQjPbAe9.js → chunk-55IACEB6-Cj6KHkUp.js} +1 -1
- package/out/renderer/assets/{chunk-727SXJPM-BcqphFMh.js → chunk-727SXJPM-BaIkuSPr.js} +5 -5
- package/out/renderer/assets/{chunk-AQP2D5EJ-DCREtqoW.js → chunk-AQP2D5EJ-DVZR_bfB.js} +3 -3
- package/out/renderer/assets/{chunk-FMBD7UC4-LFUgit2t.js → chunk-FMBD7UC4-CNrb2a0a.js} +1 -1
- package/out/renderer/assets/{chunk-ND2GUHAM-Bkunzp-9.js → chunk-ND2GUHAM-ClOnPDjy.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-foWYS4_y.js → chunk-QZHKN3VN-B2sJx9j2.js} +1 -1
- package/out/renderer/assets/{classDiagram-4FO5ZUOK-CVbKiC6R.js → classDiagram-4FO5ZUOK-ZzwWMcLO.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-Q7XG4LA2-CVbKiC6R.js → classDiagram-v2-Q7XG4LA2-ZzwWMcLO.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-Bw7reEuM.js → cose-bilkent-S5V4N54A-DBx-UiMU.js} +1 -1
- package/out/renderer/assets/{dagre-BM42HDAG-oGURKg82.js → dagre-BM42HDAG-B_vMvYpz.js} +3 -3
- package/out/renderer/assets/{diagram-2AECGRRQ-kaoJ1YpU.js → diagram-2AECGRRQ-Do-w2xXO.js} +3 -3
- package/out/renderer/assets/{diagram-5GNKFQAL-EvoHkNwk.js → diagram-5GNKFQAL-JzG77sgb.js} +4 -4
- package/out/renderer/assets/{diagram-KO2AKTUF-D5N5hwBV.js → diagram-KO2AKTUF-CGMx2nPP.js} +3 -3
- package/out/renderer/assets/{diagram-LMA3HP47-kKi9mSGe.js → diagram-LMA3HP47-BqXnQeNu.js} +3 -3
- package/out/renderer/assets/{diagram-OG6HWLK6-BWJ9L5AP.js → diagram-OG6HWLK6-BR4e0lIb.js} +4 -4
- package/out/renderer/assets/{erDiagram-TEJ5UH35-d1W9ONuu.js → erDiagram-TEJ5UH35-B7QK0XSy.js} +4 -4
- package/out/renderer/assets/{flowDiagram-I6XJVG4X-u5Xk-TTj.js → flowDiagram-I6XJVG4X-BOySqejA.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-6RSMTGT7-DiheBMSM.js → ganttDiagram-6RSMTGT7-BORAleML.js} +3 -3
- package/out/renderer/assets/{gitGraphDiagram-PVQCEYII-B7hUlCNM.js → gitGraphDiagram-PVQCEYII-DTReLiJT.js} +4 -4
- package/out/renderer/assets/{graph-D7JlCUW0.js → graph-Bf8U9r0n.js} +1 -1
- package/out/renderer/assets/{index-ClS76F34.js → index-5i67azF0.js} +1 -1
- package/out/renderer/assets/{index-DJwDiyPe.css → index-7NwOg_q_.css} +8 -40
- package/out/renderer/assets/{index-BgXUknVd.js → index-BOQBc3Qj.js} +6 -4
- package/out/renderer/assets/{index-DcFrLBMu.js → index-BS5vy5uH.js} +1 -1
- package/out/renderer/assets/{index-gnQtDa4r.js → index-COyr1I0o.js} +1 -1
- package/out/renderer/assets/{index-D8P2TG70.js → index-CmQY2QKE.js} +1 -1
- package/out/renderer/assets/{index-CzGef_M5.js → index-D3R9tjiT.js} +1 -1
- package/out/renderer/assets/{index-DOl0MdBC.js → index-D6b3rMtW.js} +1 -1
- package/out/renderer/assets/{index-3OKQF96N.js → index-DUoUqcJ_.js} +1 -1
- package/out/renderer/assets/{index-biM8l5ZN.js → index-Dq3ldCAy.js} +10286 -2422
- package/out/renderer/assets/{index-Duwg55fn.js → index-Dtxgil7l.js} +1 -1
- package/out/renderer/assets/{infoDiagram-5YYISTIA-BNOwcP8d.js → infoDiagram-5YYISTIA-Ryv-Emth.js} +2 -2
- package/out/renderer/assets/{ishikawaDiagram-YF4QCWOH-DZGvMXcI.js → ishikawaDiagram-YF4QCWOH-Blzp6JLN.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-JHISSGLW-BF-SCAHN.js → journeyDiagram-JHISSGLW--KB4ASET.js} +4 -4
- package/out/renderer/assets/{jsx-dev-runtime-BZnUoQef.js → jsx-dev-runtime-DAzw_Red.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UN3LZRKU-Cp9SfO9v.js → kanban-definition-UN3LZRKU-BzNpCu_x.js} +2 -2
- package/out/renderer/assets/{layout-BxWwRUTm.js → layout-BQu4M-KW.js} +2 -2
- package/out/renderer/assets/{linear-Cpdxqlgb.js → linear-DNZEF2Al.js} +1 -1
- package/out/renderer/assets/{mindmap-definition-RKZ34NQL-BtGsJF8k.js → mindmap-definition-RKZ34NQL-CxQjZIps.js} +3 -3
- package/out/renderer/assets/{pieDiagram-4H26LBE5-choZS41J.js → pieDiagram-4H26LBE5-qJt7eGwM.js} +4 -4
- package/out/renderer/assets/{quadrantDiagram-W4KKPZXB-CSEwIgFD.js → quadrantDiagram-W4KKPZXB-mMOhLjN_.js} +2 -2
- package/out/renderer/assets/{requirementDiagram-4Y6WPE33-sCdLoMf0.js → requirementDiagram-4Y6WPE33-GLhMtLW7.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-5OEKKPKP-DunA5v4o.js → sankeyDiagram-5OEKKPKP-Kcd8qR8y.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-3UESZ5HK-Cwz8rZA1.js → sequenceDiagram-3UESZ5HK-CpmBIgMJ.js} +3 -3
- package/out/renderer/assets/{stateDiagram-AJRCARHV-VCMhb3e-.js → stateDiagram-AJRCARHV-D00qZ9cQ.js} +6 -6
- package/out/renderer/assets/{stateDiagram-v2-BHNVJYJU-B9OcfdsH.js → stateDiagram-v2-BHNVJYJU-CkEgNJrB.js} +4 -4
- package/out/renderer/assets/{time-CtsiuOCL.js → time-CQSoUo1N.js} +1 -1
- package/out/renderer/assets/{timeline-definition-PNZ67QCA-B36Hc_gQ.js → timeline-definition-PNZ67QCA-CmydTbH6.js} +2 -2
- package/out/renderer/assets/{vennDiagram-CIIHVFJN-Dt2oWHz0.js → vennDiagram-CIIHVFJN-B4QGhnvI.js} +1 -1
- package/out/renderer/assets/{wardley-L42UT6IY-DkWaUY9X.js → wardley-L42UT6IY-B-mpW52K.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-YWT4CUSO-BHFM3JNH.js → wardleyDiagram-YWT4CUSO-Cz1pK1MY.js} +3 -3
- package/out/renderer/assets/{xychartDiagram-2RQKCTM6-2wqqMVJ7.js → xychartDiagram-2RQKCTM6-H-Q9Zv48.js} +2 -2
- package/out/renderer/index.html +2 -2
- package/out/resources/skills/agent-creator/SKILL.md +223 -0
- package/out/resources/skills/agent-creator/assets/examples/sample-profile.json +47 -0
- package/out/resources/skills/agent-creator/assets/templates/config.json.template +47 -0
- package/out/resources/skills/agent-creator/references/agent-profile-schema.md +294 -0
- package/out/resources/skills/agent-creator/references/profile-examples.md +490 -0
- package/out/resources/skills/agent-creator/references/subagent-guide.md +317 -0
- package/out/resources/skills/agent-creator/references/tool-approval-guide.md +484 -0
- package/out/resources/skills/extension-creator/SKILL.md +5 -5
- package/out/resources/skills/extension-creator/references/in-repo-flow.md +4 -4
- package/out/resources/skills/extension-creator/references/install-targets.md +2 -2
- package/out/resources/skills/extension-creator/references/project-global-flow.md +1 -1
- package/out/runner.js +10879 -10158
- package/package.json +3 -2
- package/scripts/generate-package.mjs +1 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# Agent Profile Schema Reference
|
|
2
|
+
|
|
3
|
+
Complete reference for the `AgentProfile` interface defined in `packages/common/src/types/common.ts`.
|
|
4
|
+
|
|
5
|
+
## Required Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Description | Example |
|
|
8
|
+
|----------|------|-------------|---------|
|
|
9
|
+
| `id` | string | Unique profile identifier (any unique string; readable names like `"code-reviewer"` are fine — no UUID needed) | `"code-reviewer"` |
|
|
10
|
+
| `name` | string | Display name of the profile | `"Code Reviewer"` |
|
|
11
|
+
| `provider` | string | LLM provider ID. Defaults to `"anthropic"` if not specified (see `DEFAULT_AGENT_PROFILE` / `DEFAULT_PROVIDER_MODELS` in `packages/common/src/agent.ts`). | `"anthropic"`, `"openai"`, `"ollama"` |
|
|
12
|
+
| `model` | string | Model identifier. Defaults to the provider's default model (`"claude-sonnet-5"` for anthropic) if not specified. | `"claude-sonnet-5"`, `"gpt-5.5"` |
|
|
13
|
+
| `maxIterations` | number | Max thinking/acting cycles per prompt. `0` means unlimited (this is the default). | `250`, `0` |
|
|
14
|
+
| `minTimeBetweenToolCalls` | number | Delay in ms between tool calls (rate limiting) | `0` |
|
|
15
|
+
| `enabledServers` | string[] | List of MCP server names | `["filesystem", "github"]` |
|
|
16
|
+
| `toolApprovals` | Record<string, ToolApprovalState> | Tool approval settings (keys: `{group}---{tool}`) | See Tool Approvals below |
|
|
17
|
+
| `toolSettings` | Record<string, ToolSettings> | Tool-specific settings (e.g., bash patterns) | See Tool Settings below |
|
|
18
|
+
| `includeContextFiles` | boolean | Include context files in system prompt. Defaults to `false`. | `true` |
|
|
19
|
+
| `includeRepoMap` | boolean | Include repository map. Defaults to `false`. | `true` |
|
|
20
|
+
| `usePowerTools` | boolean | Enable Power Tools group | `true` |
|
|
21
|
+
| `useAiderTools` | boolean | Enable Aider integration tools | `false` |
|
|
22
|
+
| `useTodoTools` | boolean | Enable Todo management tools | `false` |
|
|
23
|
+
| `useSubagents` | boolean | Enable subagent delegation | `false` |
|
|
24
|
+
| `useTaskTools` | boolean | Enable task management tools | `false` |
|
|
25
|
+
| `useMemoryTools` | boolean | Enable memory tools | `false` |
|
|
26
|
+
| `useSkillsTools` | boolean | Enable skills tools | `false` |
|
|
27
|
+
| `useExtensionTools` | boolean | Enable tools from installed extensions | `true` |
|
|
28
|
+
| `disabledExtensionTools` | string[] | Extension IDs whose tools are disabled | `["my-extension"]` |
|
|
29
|
+
| `customInstructions` | string | Free-text instructions appended to system prompt | `"Focus on security..."` |
|
|
30
|
+
| `subagent` | SubagentConfig | Subagent configuration | See Subagent Config below |
|
|
31
|
+
|
|
32
|
+
## Optional Properties
|
|
33
|
+
|
|
34
|
+
| Property | Type | Description | Example |
|
|
35
|
+
|----------|------|-------------|---------|
|
|
36
|
+
| `maxTokens` | number? | Override model max output tokens | `4000` |
|
|
37
|
+
| `temperature` | number? | Override model temperature | `0.7` |
|
|
38
|
+
| `projectDir` | string? | Project directory (if project-level profile) | `"/path/to/project"` |
|
|
39
|
+
| `systemPrompt` | string? | Overrides the default built-in system prompt when running as the main agent. Rules files and `customInstructions` are still appended. Falls back as subagent system prompt when `subagent.systemPrompt` is empty. | `"You are a code reviewer..."` |
|
|
40
|
+
| `enabledSubagentIds` | string[]? | Profile IDs allowed to be used as subagents by this profile. Omit/undefined = all subagents allowed. | `["code-reviewer", "security-auditor"]` |
|
|
41
|
+
| `ruleFiles` | string[]? | Absolute paths to rule files. **Dynamically discovered** at load time from `rules/` subdirectory. Do NOT set in config.json. | `["/path/to/rule.md"]` |
|
|
42
|
+
| `autoCompactThresholdPercentage` | number? | Override global auto-compact threshold percentage | `80` |
|
|
43
|
+
| `autoCompactThresholdTokens` | number? | Override global auto-compact threshold tokens | `50000` |
|
|
44
|
+
| `autoCompactionType` | ContextCompactionType? | Override global compaction type | `"smart"` |
|
|
45
|
+
|
|
46
|
+
**Note:** `isSubagent` is a runtime flag set by the system when this profile is being used as a subagent. Do not include it in config.json.
|
|
47
|
+
|
|
48
|
+
## System Prompt Behavior
|
|
49
|
+
|
|
50
|
+
The system prompt is resolved by `PromptsManager.getSystemPrompt()`:
|
|
51
|
+
|
|
52
|
+
1. If `agentProfile.systemPrompt` is set and non-empty → **uses it as the base system prompt**, then appends:
|
|
53
|
+
- `<Rules>` section from rule files (if any)
|
|
54
|
+
- `customInstructions` (if non-empty)
|
|
55
|
+
2. If `agentProfile.systemPrompt` is empty/undefined → **uses the default template-generated system prompt**, which includes:
|
|
56
|
+
- OS info, project context, tool permissions, autonomy mode
|
|
57
|
+
- Rules files and `customInstructions` are still appended
|
|
58
|
+
|
|
59
|
+
When the profile runs as a **subagent**:
|
|
60
|
+
- `subagent.systemPrompt` is used directly (if non-empty)
|
|
61
|
+
- If `subagent.systemPrompt` is empty, `agentProfile.systemPrompt` is used as fallback
|
|
62
|
+
- `customInstructions` are appended
|
|
63
|
+
|
|
64
|
+
## Subagent Filtering
|
|
65
|
+
|
|
66
|
+
`enabledSubagentIds` on a **parent** profile controls which subagent profiles it can use:
|
|
67
|
+
|
|
68
|
+
- **Omitted/undefined** — All enabled subagents are available
|
|
69
|
+
- **Array of profile IDs** — Only subagents whose `id` matches are available
|
|
70
|
+
|
|
71
|
+
Filtering logic is centralized in `isSubagentEnabled(agentProfile, mainAgentProfile?)` in `packages/common/src/agent.ts`:
|
|
72
|
+
- Subagent must have `subagent.enabled: true`
|
|
73
|
+
- Subagent must not be the same profile as the main agent
|
|
74
|
+
- If `mainAgentProfile.enabledSubagentIds` is defined, subagent ID must be in the array
|
|
75
|
+
|
|
76
|
+
## Supporting Types
|
|
77
|
+
|
|
78
|
+
### ToolApprovalState
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
enum ToolApprovalState {
|
|
82
|
+
Always = 'always', // Auto-approve without prompting
|
|
83
|
+
Never = 'never', // Disable tool completely
|
|
84
|
+
Ask = 'ask', // Prompt for approval each time (DEFAULT)
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### SubagentConfig
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
interface SubagentConfig {
|
|
92
|
+
enabled: boolean; // Can this profile be used as subagent?
|
|
93
|
+
contextMemory: ContextMemoryMode; // How much previous context to share
|
|
94
|
+
systemPrompt: string; // Specialized system prompt for subagent role
|
|
95
|
+
invocationMode: InvocationMode; // When to invoke
|
|
96
|
+
color: string; // Visual identifier (hex color)
|
|
97
|
+
description: string; // Description for auto-invocation
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### ContextMemoryMode
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
enum ContextMemoryMode {
|
|
105
|
+
Off = 'off', // No context from previous subagent runs
|
|
106
|
+
FullContext = 'full-context', // Share full conversation history
|
|
107
|
+
LastMessage = 'last-message', // Share only last message from previous runs
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### InvocationMode
|
|
112
|
+
|
|
113
|
+
```typescript
|
|
114
|
+
enum InvocationMode {
|
|
115
|
+
OnDemand = 'on-demand', // Only when explicitly requested by user
|
|
116
|
+
Automatic = 'automatic', // Automatically when relevant (requires description)
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### ContextCompactionType
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
enum ContextCompactionType {
|
|
124
|
+
Compact = 'compact', // Summarize and compress conversation
|
|
125
|
+
Handoff = 'handoff', // Generate handoff document for continuation
|
|
126
|
+
Smart = 'smart', // Adaptive multi-level compaction
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### ToolSettings
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
interface BashToolSettings {
|
|
134
|
+
allowedPattern: string; // Regex pattern for allowed commands (empty = all allowed)
|
|
135
|
+
deniedPattern: string; // Regex pattern for denied commands (overrides allowed)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
type ToolSettings = BashToolSettings;
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Tool Approval Keys Format
|
|
142
|
+
|
|
143
|
+
**Tool approval keys follow the pattern: `{group}---{tool}`**
|
|
144
|
+
|
|
145
|
+
**Separator is three dashes (`---`)**, not colon.
|
|
146
|
+
|
|
147
|
+
### Power Tools Group (`usePowerTools`)
|
|
148
|
+
- `power---file_edit` - Edit files
|
|
149
|
+
- `power---file_write` - Write/create files
|
|
150
|
+
- `power---file_read` - Read files
|
|
151
|
+
- `power---glob` - Find files by pattern
|
|
152
|
+
- `power---grep` - Search file content with regex
|
|
153
|
+
- `power---bash` - Execute shell commands
|
|
154
|
+
- `power---semantic_search` - Search code semantically
|
|
155
|
+
- `power---fetch` - Fetch web content
|
|
156
|
+
|
|
157
|
+
### Aider Tools Group (`useAiderTools`)
|
|
158
|
+
- `aider---get_context_files` - Get Aider context files
|
|
159
|
+
- `aider---add_context_files` - Add files to Aider context
|
|
160
|
+
- `aider---drop_context_files` - Remove files from Aider context
|
|
161
|
+
- `aider---run` - Run Aider commands
|
|
162
|
+
|
|
163
|
+
### Subagents Tools Group (`useSubagents`)
|
|
164
|
+
- `subagents---run_task` - Delegate to subagent
|
|
165
|
+
|
|
166
|
+
### Memory Tools Group (`useMemoryTools`)
|
|
167
|
+
- `memory---store_memory` - Store information
|
|
168
|
+
- `memory---retrieve_memory` - Retrieve stored information
|
|
169
|
+
- `memory---delete_memory` - Delete stored information
|
|
170
|
+
- `memory---list_memories` - List all stored information
|
|
171
|
+
- `memory---update_memory` - Update stored information
|
|
172
|
+
|
|
173
|
+
### Skills Tools Group (`useSkillsTools`)
|
|
174
|
+
- `skills---activate_skill` - Activate a skill
|
|
175
|
+
|
|
176
|
+
### Task Tools Group (`useTaskTools`)
|
|
177
|
+
- `tasks---list_tasks` - List all tasks in the project
|
|
178
|
+
- `tasks---get_task` - Get task details by ID
|
|
179
|
+
- `tasks---get_task_message` - Retrieve a message from task history
|
|
180
|
+
- `tasks---create_task` - Create a new task
|
|
181
|
+
- `tasks---delete_task` - Permanently delete a task
|
|
182
|
+
- `tasks---search_task` - Search within a task semantically
|
|
183
|
+
- `tasks---run_prompt` - Run a prompt on an existing task
|
|
184
|
+
- `tasks---search_parent_task` - Search within parent task
|
|
185
|
+
|
|
186
|
+
### Todo Tools Group (`useTodoTools`)
|
|
187
|
+
- `todo---set_items` - Initialize or overwrite todo list
|
|
188
|
+
- `todo---get_items` - Retrieve current todo list
|
|
189
|
+
- `todo---update_item_completion` - Update todo item completion status
|
|
190
|
+
- `todo---clear_items` - Clear all todo items
|
|
191
|
+
|
|
192
|
+
### Extension Tools Group (`useExtensionTools`)
|
|
193
|
+
- Tools are dynamically provided by installed extensions
|
|
194
|
+
- Tool keys are `{extensionToolGroupName}---{toolName}` (group name is defined by each extension)
|
|
195
|
+
- Disable specific extensions' tools via `disabledExtensionTools: ["extensionId"]`
|
|
196
|
+
- Cannot enumerate tool keys statically — they depend on installed extensions
|
|
197
|
+
|
|
198
|
+
## Default Values Applied by Sanitization
|
|
199
|
+
|
|
200
|
+
When loading a profile, these defaults are applied if missing:
|
|
201
|
+
|
|
202
|
+
```typescript
|
|
203
|
+
{
|
|
204
|
+
id: the profile id as written (populated if empty; authors should just provide a unique readable id),
|
|
205
|
+
name: derived from directory name (if empty),
|
|
206
|
+
provider: 'anthropic',
|
|
207
|
+
model: 'claude-sonnet-5' (default model for anthropic),
|
|
208
|
+
maxIterations: 0 (unlimited),
|
|
209
|
+
includeContextFiles: false,
|
|
210
|
+
includeRepoMap: false,
|
|
211
|
+
minTimeBetweenToolCalls: 0,
|
|
212
|
+
enabledServers: [],
|
|
213
|
+
disabledExtensionTools: [],
|
|
214
|
+
customInstructions: '',
|
|
215
|
+
toolApprovals: {},
|
|
216
|
+
toolSettings: {},
|
|
217
|
+
subagent: {
|
|
218
|
+
enabled: false,
|
|
219
|
+
contextMemory: ContextMemoryMode.Off,
|
|
220
|
+
systemPrompt: '',
|
|
221
|
+
invocationMode: InvocationMode.OnDemand,
|
|
222
|
+
color: '#3368a8',
|
|
223
|
+
description: ''
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Boolean tool group flags** (`usePowerTools`, `useAiderTools`, etc.) default to `false` if not present (inherited from the spread of the loaded profile).
|
|
229
|
+
|
|
230
|
+
**Note:** `systemPrompt`, `enabledSubagentIds`, `ruleFiles`, `autoCompactThresholdPercentage`, `autoCompactThresholdTokens`, and `autoCompactionType` are all optional and default to `undefined` when not set in config.json.
|
|
231
|
+
|
|
232
|
+
## Rule Files
|
|
233
|
+
|
|
234
|
+
Rule files are markdown files that provide additional instructions appended to the system prompt. They are:
|
|
235
|
+
|
|
236
|
+
- Placed in a `rules/` subdirectory next to `config.json` (e.g., `~/.aider-desk/agents/my-agent/rules/security-rules.md`)
|
|
237
|
+
- Discovered automatically at load time (do not set `ruleFiles` in config.json — it's dynamically populated)
|
|
238
|
+
- For project-level profiles, also checks global profile with same ID for global rule files
|
|
239
|
+
- All `.md` files in the `rules/` directory are loaded (order is alphabetical by filename)
|
|
240
|
+
|
|
241
|
+
**Example structure:**
|
|
242
|
+
```
|
|
243
|
+
~/.aider-desk/agents/my-agent/
|
|
244
|
+
├── config.json
|
|
245
|
+
└── rules/
|
|
246
|
+
├── coding-standards.md
|
|
247
|
+
└── project-conventions.md
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Example Complete Profile
|
|
251
|
+
|
|
252
|
+
```json
|
|
253
|
+
{
|
|
254
|
+
"id": "code-reviewer",
|
|
255
|
+
"name": "Code Reviewer",
|
|
256
|
+
"provider": "anthropic",
|
|
257
|
+
"model": "claude-sonnet-5",
|
|
258
|
+
"maxIterations": 150,
|
|
259
|
+
"minTimeBetweenToolCalls": 0,
|
|
260
|
+
"maxTokens": 8192,
|
|
261
|
+
"temperature": 0.3,
|
|
262
|
+
"enabledServers": [],
|
|
263
|
+
"toolApprovals": {
|
|
264
|
+
"power---file_read": "always",
|
|
265
|
+
"power---file_edit": "never",
|
|
266
|
+
"power---glob": "always",
|
|
267
|
+
"power---grep": "always",
|
|
268
|
+
"power---semantic_search": "always",
|
|
269
|
+
"power---bash": "never"
|
|
270
|
+
},
|
|
271
|
+
"toolSettings": {},
|
|
272
|
+
"includeContextFiles": true,
|
|
273
|
+
"includeRepoMap": true,
|
|
274
|
+
"usePowerTools": true,
|
|
275
|
+
"useAiderTools": false,
|
|
276
|
+
"useTodoTools": false,
|
|
277
|
+
"useSubagents": false,
|
|
278
|
+
"useTaskTools": false,
|
|
279
|
+
"useMemoryTools": true,
|
|
280
|
+
"useSkillsTools": false,
|
|
281
|
+
"useExtensionTools": true,
|
|
282
|
+
"disabledExtensionTools": [],
|
|
283
|
+
"customInstructions": "Focus on code quality, security, and best practices.",
|
|
284
|
+
"systemPrompt": "You are a code review expert. Analyze changes for correctness, security, and adherence to coding standards.",
|
|
285
|
+
"subagent": {
|
|
286
|
+
"enabled": true,
|
|
287
|
+
"contextMemory": "full-context",
|
|
288
|
+
"systemPrompt": "You are a code review expert. Analyze changes for correctness, security, and adherence to coding standards. Identify bugs, potential issues, and improvement opportunities.",
|
|
289
|
+
"invocationMode": "automatic",
|
|
290
|
+
"color": "#ef4444",
|
|
291
|
+
"description": "Expert code review specialist focused on quality and security"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
```
|