Skip to content

Commit a295455

Browse files
committed
chore: change default subAgentMode to 'disabled' and mark sync/async modes as experimental
1 parent b9c4f27 commit a295455

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

mycoder.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export default {
2020
// executablePath: null, // e.g., '/path/to/chrome'
2121
},
2222

23-
// Sub-agent workflow mode: 'disabled', 'sync', or 'async' (default)
24-
subAgentMode: 'async',
23+
// Sub-agent workflow mode: 'disabled' (default), 'sync' (experimental), or 'async' (experimental)
24+
subAgentMode: 'disabled',
2525

2626
// Model settings
2727
//provider: 'anthropic',

packages/agent/src/tools/getTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface GetToolsOptions {
3939
export function getTools(options?: GetToolsOptions): Tool[] {
4040
const userPrompt = options?.userPrompt !== false; // Default to true if not specified
4141
const mcpConfig = options?.mcpConfig || { servers: [], defaultResources: [] };
42-
const subAgentMode = options?.subAgentMode || 'async'; // Default to async mode
42+
const subAgentMode = options?.subAgentMode || 'disabled'; // Default to disabled mode
4343

4444
// Force cast to Tool type to avoid TypeScript issues
4545
const tools: Tool[] = [

packages/cli/src/commands/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const command: CommandModule<object, ToolsArgs> = {
4141
describe: 'List all available tools and their capabilities',
4242
handler: () => {
4343
try {
44-
const tools = getTools({ subAgentMode: 'async' });
44+
const tools = getTools({ subAgentMode: 'disabled' });
4545

4646
console.log('Available Tools:\n');
4747

packages/cli/src/settings/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const defaultConfig: Config = {
7878
upgradeCheck: true,
7979
tokenUsage: false,
8080
interactive: false,
81-
subAgentMode: 'async',
81+
subAgentMode: 'disabled',
8282

8383
// MCP configuration
8484
mcp: {

packages/docs/docs/usage/configuration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ export default {
118118

119119
### Behavior Customization
120120

121-
| Option | Description | Possible Values | Default |
122-
| -------------- | ------------------------------ | ------------------------------- | -------- |
123-
| `customPrompt` | Custom instructions for the AI | Any string | `""` |
124-
| `githubMode` | Enable GitHub integration | `true`, `false` | `false` |
125-
| `subAgentMode` | Sub-agent workflow mode | `'disabled'`, `'sync'`, `'async'` | `'async'` |
121+
| Option | Description | Possible Values | Default |
122+
| -------------- | ------------------------------ | --------------------------------- | --------- |
123+
| `customPrompt` | Custom instructions for the AI | Any string | `""` |
124+
| `githubMode` | Enable GitHub integration | `true`, `false` | `false` |
125+
| `subAgentMode` | Sub-agent workflow mode | `'disabled'`, `'sync'` (experimental), `'async'` (experimental) | `'disabled'` |
126126

127127
Example:
128128

@@ -210,8 +210,8 @@ export default {
210210
profile: true,
211211
tokenUsage: true,
212212
tokenCache: true,
213-
213+
214214
// Sub-agent workflow mode
215-
subAgentMode: 'async', // Options: 'disabled', 'sync', 'async'
215+
subAgentMode: 'disabled', // Options: 'disabled', 'sync' (experimental), 'async' (experimental)
216216
};
217217
```

packages/docs/docs/usage/sub-agent-modes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MyCoder supports different modes for working with sub-agents, giving you flexibi
1010

1111
MyCoder supports three distinct sub-agent workflow modes:
1212

13-
### 1. Disabled Mode
13+
### 1. Disabled Mode (Default)
1414

1515
In this mode, sub-agent functionality is completely disabled:
1616

@@ -19,7 +19,7 @@ In this mode, sub-agent functionality is completely disabled:
1919
- Useful for simpler tasks or when resource constraints are a concern
2020
- Reduces memory usage and API costs for straightforward tasks
2121

22-
### 2. Synchronous Mode ("sync")
22+
### 2. Synchronous Mode ("sync") - Experimental
2323

2424
In synchronous mode, the parent agent waits for sub-agents to complete before continuing:
2525

@@ -29,7 +29,7 @@ In synchronous mode, the parent agent waits for sub-agents to complete before co
2929
- Simpler to reason about as there's no parallel execution
3030
- Good for tasks where later steps depend on the results of earlier steps
3131

32-
### 3. Asynchronous Mode ("async") - Default
32+
### 3. Asynchronous Mode ("async") - Experimental
3333

3434
In asynchronous mode, sub-agents run in parallel with the parent agent:
3535

@@ -47,9 +47,9 @@ You can set the sub-agent workflow mode in your `mycoder.config.js` file:
4747
```javascript
4848
// mycoder.config.js
4949
export default {
50-
// Sub-agent workflow mode: 'disabled', 'sync', or 'async'
51-
subAgentMode: 'async', // Default value
52-
50+
// Sub-agent workflow mode: 'disabled', 'sync' (experimental), or 'async' (experimental)
51+
subAgentMode: 'disabled', // Default value
52+
5353
// Other configuration options...
5454
};
5555
```
@@ -105,7 +105,7 @@ Ideal for complex projects with independent components:
105105
```javascript
106106
// mycoder.config.js
107107
export default {
108-
subAgentMode: 'async', // This is the default
108+
subAgentMode: 'async', // Experimental
109109
// Other settings...
110110
};
111111
```
@@ -116,4 +116,4 @@ export default {
116116
- In **sync mode**, only the `agentExecute` and `agentDone` tools are available, ensuring synchronous execution.
117117
- In **async mode**, the full suite of agent tools (`agentStart`, `agentMessage`, `listAgents`, and `agentDone`) is available, enabling parallel execution.
118118

119-
This implementation allows MyCoder to adapt to different task requirements while maintaining a consistent interface for users.
119+
This implementation allows MyCoder to adapt to different task requirements while maintaining a consistent interface for users.

0 commit comments

Comments
 (0)