xixingde
53a2d16943
Merge branch 'main' of https://github.com/xixingde/csc
2026-04-10 15:55:12 +08:00
xixingde
557b873a79
feat(agents): add isMainThread flag to agent definition for full tool access
2026-04-10 15:54:42 +08:00
xixingde
47b2db23df
feat(strictPlan): add allowedTools configuration to restrict available tools
2026-04-10 12:24:43 +08:00
xixingde
082345b8aa
refactor(costrict): replace SpecPlan agent with StrictPlan skill
2026-04-10 12:17:56 +08:00
xixingde
46ba58e46e
refactor(strictPlan): update system prompt to clarify role and correct tool references
2026-04-10 10:29:56 +08:00
xixingde
2f115cfd0b
refactor(agents): reorganize strictPlan agent workflow and remove constraints
2026-04-10 10:00:09 +08:00
xixingde
7c35afe819
docs: update contributors
2026-04-10 01:44:11 +00:00
y574444354
a9ee8d6317
docs: update contributors
2026-04-10 01:39:45 +00:00
geroge
795000f116
Merge pull request #15 from yhangf/main
...
Migrate StrictSpec workflow to CSC with two-layer architecture
2026-04-10 09:39:32 +08:00
yhangf
697c5fe29d
docs: update contributors
2026-04-10 01:34:22 +00:00
yhangf
f5489e0880
Merge branch 'main' of https://github.com/yhangf/csc
2026-04-10 09:34:08 +08:00
yhangf
0d1754614a
refactor(agents): 改回2层架构,StrictSpec 直接调 SubCoding
...
- StrictSpec 精简为~60行,stage 4 直接调 SubCoding(绕过 SpecPlan 中间层)
- 移除 SpecPlan 注册(3层嵌套对外部用户不可用,ALL_AGENT_DISALLOWED_TOOLS 限制)
- SubCoding 自带探索/实施能力,无需上层准备 proposal/task.md
- 支持 teammates 并行调用 SubCoding,自动降级串行
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 09:32:21 +08:00
yhangf
7ee0b3a6a2
refactor(agents): 清理 StrictSpec 架构,删除 PlanManager
...
- StrictSpec 精简为纯4阶段分发器(~40行),只负责编排,不含实施细节
- SpecPlan 成为唯一实施协调逻辑来源(探索→提案→验证→实施→收尾)
- 删除 planManager.ts 文件
- builtInAgents.ts 去除重复注册、移除 PLAN_MANAGER_AGENT
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 09:23:19 +08:00
yhangf
d7800bdde9
docs: update contributors
2026-04-10 00:56:26 +00:00
yhangf
bb1e88ea82
Merge branch 'main' of https://github.com/yhangf/csc
2026-04-10 08:56:09 +08:00
yhangf
fc9bbc9b0f
Merge pull request: feat/strictspec-agent
...
迁移 StrictSpec 工作流到 csc,采用2层架构:
- StrictSpec 作为唯一协调者,直接调度 Requirement/DesignAgent/TaskPlan/QuickExplore/TaskCheck/SubCoding
- 支持 SubCoding teammates 并行实施,自动降级串行
- 注册所有叶子 agent 到 builtInAgents
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 08:49:23 +08:00
yhangf
51b88ecb24
refactor(agents): 改为2层架构,StrictSpec 直接调度所有叶子 agent
...
- StrictSpec 吸收 SpecPlan 的全部实施协调逻辑
- 完整流程:Requirement→DesignAgent→TaskPlan→QuickExplore/TaskCheck/SubCoding
- 移除 SpecPlan 注册(不再是链路中间层)
- 调用深度:StrictSpec → leaf agents(2层)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 21:00:52 +08:00
geroge
e5f88ca25b
Merge pull request #13 from xixingde/main
...
多 Agent 增强
2026-04-09 20:52:43 +08:00
yhangf
1f768d682a
refactor(agents): 3层架构重构 StrictSpec 工作流
...
- SpecPlan 合并 PlanManager/SpecPlan/PlanApply 为统一 Layer 2 协调者
- StrictSpec Stage 4 直接调用 SpecPlan,移除中间层 PlanManager
- SpecPlan 支持 SubCoding 串行(模式A)和 teammates 并行(模式B),自动降级
- builtInAgents.ts 移除 PLAN_MANAGER_AGENT 注册(不再是 StrictSpec 链路必需)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 20:52:41 +08:00
xixingde
69e946e290
docs: update contributors
2026-04-09 12:48:11 +00:00
xixingde
57d0e1feac
refactor(agents): consolidate PlanApply functionality into StrictPlan agent
...
- Remove separate PlanApply agent and integrate task distribution logic directly into StrictPlan agent
- Move PlanApply and TDD agents to backup directory
- Update StrictPlan system prompt to reflect dual role as PlanAgent and CodingAgent
- Update builtInAgents registry to remove PlanApply and update TDD import path
2026-04-09 20:46:18 +08:00
xixingde
12601d3faf
Merge branch 'main' of https://github.com/xixingde/csc
2026-04-09 20:45:06 +08:00
yhangf
fe8ad9df69
feat: migrate strictSpec workflow agents into csc built-in agent registry
...
Register 6 previously-unregistered costrict agents as first-class built-in
agents: StrictSpec (4-stage orchestrator), Requirement, DesignAgent, TaskPlan,
PlanManager, and SpecPlan.
Adapt system prompts in strictSpec.ts, planManager.ts, specPlan.ts to use the
csc Agent tool (subagent_type parameter) instead of the legacy costrict-specific
`task` tool. Also fix a broken relative import in taskPlan.ts.
Agent call chain for StrictSpec workflow:
StrictSpec → Requirement / DesignAgent / TaskPlan / PlanManager
PlanManager → SpecPlan
SpecPlan → QuickExplore / TaskCheck / PlanApply
PlanApply → SubCoding
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 20:44:50 +08:00
y574444354
cd9a29ece2
docs: update contributors
2026-04-09 11:16:12 +00:00
y574444354
caa020365d
Merge upstream/main: 同步上游更新并解决冲突
2026-04-09 19:15:29 +08:00
y574444354
51ff947604
feat(costrict): 集成 CoStrict 登录流程和模型选择到 /model 命令
2026-04-09 19:02:03 +08:00
xixingde
3363059608
fix(agents): enable Claude markdown output across all built-in agents
2026-04-09 18:22:14 +08:00
bonerush
562e9daadd
fix: Handle undefined command names in getCommandName function ( #217 )
...
* fix: reorder tool and user messages for OpenAI API compatibility (#168 )
Fixes #168
OpenAI requires that an assistant message with tool_calls be immediately
followed by tool messages. Previously, convertInternalUserMessage
output user content before tool results, causing 400 errors.
Now tool messages are pushed first.
* fix: 修复OpenAI兼容层中deferred tools处理问题
提交描述:
修复了在使用OpenAI兼容API时TaskCreate工具调用失败的问题。
问题:
- 当使用OpenAI兼容API模型时,调用TaskCreate工具出现"InputValidationError: The required
parameter `subject` is missing"错误
- OpenAI兼容层没有正确处理deferred tools的过滤逻辑,导致工具schema没有被正确发送给模型
修复:
1. 在OpenAI兼容层中添加了与Anthropic API路径一致的deferred tools处理逻辑
2. 导入必要的工具搜索相关函数: isToolSearchEnabled, extractDiscoveredToolNames,
isDeferredTool等
3. 实现工具过滤逻辑:
- 检查工具搜索是否启用
- 构建deferred tools集合
- 过滤工具列表: 只包含非deferred工具或已发现的deferred工具
- 为deferred tools设置deferLoading标志
4. 修正了extractDiscoveredToolNames函数的导入路径错误
影响:
- 解决了TaskCreate工具调用时的参数验证错误
- 确保OpenAI兼容层与Anthropic API路径在处理deferred tools时行为一致
- 支持工具搜索功能在OpenAI兼容模式下正常工作
修改的文件:
- src/services/api/openai/index.ts - 主要修复文件
测试建议:
1. 使用OpenAI兼容API模型时,TaskCreate工具应该可以正常调用
2. 如果工具搜索功能启用,可能需要先使用ToolSearchTool来发现TaskCreate工具
3. 验证工具调用时不再出现"InputValidationError"错误
这个修复确保了当使用OpenAI兼容API(如Ollama、DeepSeek、vLLM等)时,deferred
tools(如TaskCreate)能够被正确处理,解决了工具调用失败的问题。
* fix: 更新未发送工具架构提示,提供OpenAI兼容模型的使用步骤
* fix: Handle undefined command names in getCommandName function
- Modified getCommandName in src/types/command.ts to return empty string instead of undefined when cmd.name is undefined
- Added null checks in src/hooks/useTypeahead.tsx to safely handle command names
- Prevents "undefined is not an object" error when FEATURE_BUDDY=1 and FEATURE_FORK_SUBAGENT=1 are enabled
The error occurred because getCommandName(cmd) could return undefined when cmd.name was undefined, causing .length access to fail.
2026-04-09 17:53:43 +08:00
CyberScrubber
8b2532a9c1
docs: fix documentation deviations from source code ( #220 )
...
* docs: 修正 docs/conversation 文档与源码的偏差(multi-turn/streaming/the-loop)
- multi-turn: TranscriptWriter→Project 私有类, 会话路径改用 sanitized-cwd,
补充 StoredCostState.lastDuration 字段, 模型切换改为 setModel(),
QueryEngine 状态补全 loadedNestedMemoryPaths/hasHandledOrphanedPermission,
行号改为符号引用
- streaming: STALL_THRESHOLD_MS 10s→30s, 新增 90s 主动空闲看门狗描述,
非流式降级补充 didFallBackToNonStreaming/executeNonStreamingRequest,
行号改为符号引用
- the-loop: 终止条件 7→11, 继续条件重整为 5 组层级结构,
max_output_tokens 拆分 escalate/recovery 子阶段,
prompt-too-long 拆分 collapse_drain/reactive_compact 子策略,
State 类型修正 autoCompactTracking 为可选, 行号改为符号引用
- 全部: 添加 sourceRef 版本锚定(3ec5675 )
* docs: 修正 docs/extensibility 文档与源码的偏差(custom-agents/hooks/skills)
- custom-agents: Verification 模型修正为 inherit, 补充 Plugin Agent 字段限制
(permissionMode/hooks/mcpServers 被安全忽略, isolation 仅 worktree),
加载流程修正为 6 层优先级, 补充 memory snapshot 门控条件
- hooks: 事件数 22→27(补充 Notification), Hook 类型定义位置修正为 3 个文件,
行号改为符号引用, Zod schema 范围修正, 去重键修正为四部分复合键,
registerFrontmatterHooks/clearSessionHooks 区分定义位置和调用位置
- skills: 字段数 17→16, 权限层级 4→5(补充 remote canonical auto-allow),
SAFE_SKILL_PROPERTIES 28→30, skillUsageTracking 路径修正,
行号改为符号引用
- mcp-protocol: 全部验证通过, 无需修改
- 全部: 添加 sourceRef 版本锚定(3ec5675 )
* Revert "docs: 修正 docs/extensibility 文档与源码的偏差(custom-agents/hooks/skills)"
* docs: 修正 docs/extensibility 文档与源码的偏差(hooks/skills/mcp-protocol)
hooks:
- 事件数 22→27(补充 Notification 事件)
- Hook 类型定义位置修正为 3 个文件分布
(schemas/hooks.ts / types/hooks.ts / utils/hooks/sessionHooks.ts)
- Zod schema 引用从硬编码行号改为符号引用
- hookSpecificOutput 表从 6 扩展至 15 个事件
(补全 permissionDecisionReason / PostToolUseFailure / SubagentStart 等)
- 去重键从 pluginRoot\0command 修正为四部分复合键
(pluginRoot\0shell\0command\0ifCondition)
- 全部硬编码行号改为符号引用以避免版本漂移
skills:
- parseSkillFrontmatterFields 字段数 17→16
- SAFE_SKILL_PROPERTIES 属性数 28→30
- checkPermissions 层级 4→5
- 第 2 层描述从"官方市场"修正为"远程 canonical"
mcp-protocol:
- 配置层级从"三级"修正为
"enterprise 独占或合并 user/project/local + plugin + claude.ai"
* docs: 修正 system-prompt.mdx 中 Boundary 章节的层级与可读性
- Boundary 插入条件从 ### 降为 blockquote,不再打断三种分块模式的并列结构
- 表格中 Boundary 缓存策略列补充说明其分割作用
- 新增 Boundary 概念释义(blockquote),解释其分割静态区/动态区以实现全局缓存的设计意图
2026-04-09 17:53:11 +08:00
geroge
73c2121ee4
Merge pull request #11 from Askhz/refactor/change-config-path
...
refactor(provider): migrate credentials storage
2026-04-09 17:47:38 +08:00
claude-code-best
2da6514095
feat: 支持自托管的 remote-control-server ( #214 )
...
* feat: 支持自托管的 remote-control-server (#214 )
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-09 17:40:50 +08:00
Askhz
1cedb89db8
refactor(provider): migrate credentials storage from ~/.costrict to ~/.claude directory
2026-04-09 17:26:44 +08:00
geroge
260a8140e3
Merge pull request #10 from y574444354/feat/rebrand-claude-code-to-costrict
...
rebrand: 将 Claude Code 品牌改为 CoStrict
2026-04-09 17:23:27 +08:00
y574444354
1c3e495c03
rebrand: 将 Claude Code 品牌改为 CoStrict
2026-04-09 17:14:39 +08:00
xixingde
6962816be7
feat(agents): add TDD agent and integrate into strict plan workflow
2026-04-09 17:12:36 +08:00
xixingde
d5daf372a0
feat(AgentTool): add new built-in agents to registry
2026-04-09 16:57:14 +08:00
geroge
2d9996ab77
Merge pull request #8 from Askhz/feature/security-review
...
Add security review skill with code audit and bundling support
2026-04-09 16:45:57 +08:00
geroge
7c3f57bf9d
Merge pull request #9 from yhangf/main
...
feat(costrict): enable thinking mode in Anthropic-to-OpenAI message c…
2026-04-09 16:45:42 +08:00
yhangf
51f597a3d2
feat(costrict): enable thinking mode in Anthropic-to-OpenAI message conversion
2026-04-09 16:40:45 +08:00
Askhz
df65350c35
feat(skill): add security review builtin skill with code audit support
...
- Add generate-skills script to download and bundle skills from external repositories.
- Register code-review-security skill for vulnerability detection and integrate into bundled skill initialization.
2026-04-09 15:59:14 +08:00
geroge
03b7cbf7de
Merge pull request #7 from yhangf/main
...
refactor: rename costrict/agent directory to costrict/agents
2026-04-09 15:49:09 +08:00
y574444354
824f09c34c
chore: 更新配置和组件文件
...
- 更新 README_EN.md
- 更新认证和登录相关处理
- 更新登出功能
- 更新 AutoModeOptInDialog 和 Onboarding 组件
- 更新主入口文件
- 更新测试 fixtures
- 添加 docs/config-list.md
2026-04-09 15:42:48 +08:00
y574444354
fd9dc6dddd
Merge branch 'main' of https://github.com/y574444354/csc
2026-04-09 15:38:23 +08:00
y574444354
78505312f4
feat: 更新 WelcomeV2 样式对齐和 ThemePicker 提示
2026-04-09 15:35:24 +08:00
yhangf
cc326e5b3b
refactor: rename costrict/agent directory to costrict/agents
2026-04-09 15:28:02 +08:00
yhangf
26beb6fd36
Merge branch 'feature/tdd'
2026-04-09 15:17:12 +08:00
yhangf
1d70f31fef
feat(tdd): add TDD workflow with test design, prepare, execute, and run-and-fix agents
2026-04-09 15:14:27 +08:00
geroge
7168328862
Merge pull request #6 from xixingde/main
...
feat:plan相关Agent优化
2026-04-09 14:54:37 +08:00
xixingde
2ba63d15a5
Merge branch 'y574444354:main' into main
2026-04-09 14:36:33 +08:00
geroge
c7bfe22c22
Merge branch 'claude-code-best:main' into feat/basic-config
2026-04-09 14:35:26 +08:00