From 5ff6cab21810d23789cb3b3d9d6bb923517dd721 Mon Sep 17 00:00:00 2001 From: laosb Date: Fri, 17 Apr 2026 16:55:55 +0800 Subject: [PATCH 1/2] fix: avoid escaping slashes in JSON string. --- Sources/agentc/Commands/InitCommand.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/agentc/Commands/InitCommand.swift b/Sources/agentc/Commands/InitCommand.swift index cf92109..64d6704 100644 --- a/Sources/agentc/Commands/InitCommand.swift +++ b/Sources/agentc/Commands/InitCommand.swift @@ -94,7 +94,7 @@ struct InitCommand: AsyncParsableCommand { let settings = buildSettings() let encoder = JSONEncoder() - encoder.outputFormatting = [.prettyPrinted, .sortedKeys] + encoder.outputFormatting = [.prettyPrinted, .sortedKeys, .withoutEscapingSlashes] let data = try encoder.encode(settings) try data.write(to: agentcDir.appendingPathComponent("settings.json")) From 9663ad6c63c21cf3c66321063c32eec3b7b57567 Mon Sep 17 00:00:00 2001 From: laosb Date: Fri, 17 Apr 2026 16:56:15 +0800 Subject: [PATCH 2/2] chore: add agentc config. --- .agentc/settings.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .agentc/settings.json diff --git a/.agentc/settings.json b/.agentc/settings.json new file mode 100644 index 0000000..4057960 --- /dev/null +++ b/.agentc/settings.json @@ -0,0 +1,8 @@ +{ + "agent": { + "configurations": ["claude"], + "cpus": 4, + "image": "swift:6.3", + "memoryMiB": 2560 + } +}