Skip to content

Commit 66ac2a3

Browse files
macOS26claude
andcommitted
Unified mode tool: coding/automation/standard, AgentTools 2.3.0
Renamed coding_mode to mode. Single tool with 3 actions. Updated handler, tab handler, dispatch table. Prompt v38. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a5673b5 commit 66ac2a3

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

AgentXcode/Agent.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AgentXcode/Agent/AgentViewModel/AgentViewModel+TabHandlers+Core.swift

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,26 @@ extension AgentViewModel {
5555
isComplete: false
5656
)
5757

58-
case "coding_mode":
59-
let enabled = input["enabled"] as? Bool ?? true
60-
codingModeEnabled = enabled
61-
let output = enabled ? "Coding mode ON — only Core+Workflow+Coding+UserAgent tools active." : "Coding mode OFF — all tools restored."
58+
case "coding_mode", "mode":
59+
let action = input["action"] as? String
60+
let output: String
61+
if let action {
62+
switch action {
63+
case "coding":
64+
codingModeEnabled = true; automationModeEnabled = false
65+
output = "Coding mode ON — Core+Workflow+Coding+UserAgent tools active."
66+
case "automation":
67+
automationModeEnabled = true; codingModeEnabled = false
68+
output = "Automation mode ON — Core+Workflow+Automation+UserAgent tools active."
69+
default:
70+
codingModeEnabled = false; automationModeEnabled = false
71+
output = "Standard mode — all user-enabled tools restored."
72+
}
73+
} else {
74+
let enabled = input["enabled"] as? Bool ?? true
75+
codingModeEnabled = enabled; automationModeEnabled = false
76+
output = enabled ? "Coding mode ON — Core+Workflow+Coding+UserAgent tools active." : "Standard mode — all tools restored."
77+
}
6278
tab.appendLog(output)
6379
tab.flush()
6480
return TabToolResult(

AgentXcode/Agent/AgentViewModel/AgentViewModel+ToolDispatch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extension AgentViewModel {
4444
table["extract_function"] = handleExtractFunction
4545

4646
// Plan & project tools — delegate to executeNativeTool
47-
for name in ["plan_mode", "project_folder", "coding_mode", "list_tools", "conversation", "send_message", "memory"] {
47+
for name in ["plan_mode", "project_folder", "coding_mode", "mode", "list_tools", "conversation", "send_message", "memory"] {
4848
table[name] = handleNativeTool
4949
}
5050

AgentXcode/Agent/Services/SystemPromptService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ final class SystemPromptService {
4545
private static let readOnlyPrefix = "// Agent! READ ONLY v"
4646

4747
/// Bump this when system prompt content changes to force re-sync of saved prompts.
48-
private static let promptRevision = "37"
48+
private static let promptRevision = "38"
4949

5050
/// Combined version: app version + prompt revision. Change in either triggers re-sync.
5151
private static let appVersion: String = {

0 commit comments

Comments
 (0)