kingboung
3beeaa545e
ci: add review agent generation step to build and CI
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 11:46:05 +08:00
kingboung
4054ae9f4b
feat: migrate review agents and skills to unified costrict-review repo
...
- Add generate-review-builtin.ts script (downloads from zgsm-ai/costrict-review)
- Add review module (index.ts, extension.ts) with locale-aware skill init
- Add CommandLocale module with zh-CN/en templates for /review and /security-review
- Integrate REVIEW_AGENTS into builtInAgents.ts
- Route /review command to CoStrictReviewer agent
- Simplify /security-review to use Skill tool with locale templates
- Remove old generate-skills.ts and inline security-review skill
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 09:40:24 +08:00
kingboung
e4025f5d79
chore: add review module stubs and gitignore rules
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 09:34:18 +08:00
Askhz
307b025dea
chore: 统一所有 provider 的 User-Agent 为 csc/${VERSION}
...
- getUserAgent() 简化为 csc/${VERSION},去除 USER_TYPE/entrypoint 等附加信息
- OpenAI/Grok client 通过 defaultHeaders 覆盖 SDK 自带的 User-Agent
- CoStrict 主查询和 sideQuery 的 OpenAI client 同步添加 defaultHeaders
- CoStrict fetch 的 X-Costrict-Version 同步更新为 csc/${VERSION} 格式
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 18:23:57 +08:00
Askhz
98c9f219f7
fix: pass through user-configured model name instead of overriding with first API model
...
CoStrict provider now directly passes the user's configured model name
to the API, instead of replacing it with the first model from the
/ai-gateway/api/v1/models list.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 15:48:15 +08:00
Askhz
c28cd05d89
fix: handle reasoning_content for thinking mode in OpenAI compatibility layer
...
- Add reasoning_content field when thinking mode is enabled
- Set reasoning_content to empty string when no thinking content available
- Enable model auto-detection for kimi provider
- Add thinking mode support to costrict provider
2026-04-21 15:48:22 +08:00
geroge
83beec0b5e
Merge pull request #33 from Askhz/refactor/login-logic
...
refactor: 精简登录选项,保留 4 个主要登录方式
2026-04-21 09:39:06 +08:00
Askhz
d7bcf65968
feat: restore CoStrict login option in interactive login
...
- Added CoStrict option to the login Select component
- Implemented complete OAuth flow with browser opening and token polling
- Added costrict_waiting and costrict_model_select OAuth states
- Fixed TypeScript errors in fetch.ts and index.ts
The CoStrict login option was previously removed during login simplification.
This commit restores the full functionality including model selection after login.
2026-04-20 20:40:59 +08:00
yhangf
45575c4b18
Merge branch 'main' into dev
2026-04-20 20:09:58 +08:00
yhangf
47b6a33ec2
refactor(skills): remove english description from strictSpec
2026-04-20 16:01:19 +08:00
yhangf
cbf88c14ca
refactor(agents): remove English description from StrictSpec whenToUse
2026-04-20 15:57:51 +08:00
yhangf
d74321180f
feat(costrict): enable StrictSpec workflow and refine strict skills
2026-04-20 15:17:36 +08:00
y574444354
bd929f1db1
merge: 合并 main 分支,解决冲突
2026-04-16 19:53:05 +08:00
y574444354
fbeaf1395e
fix: 修复 CoStrict provider 模型选择与 token 估算问题
...
- ConsoleOAuthFlow: 替换 ModelPicker 为直接 Select 组件,避免
getAPIProvider() 竞态导致显示标准 Anthropic 模型列表
- modelOptions: 简化模型选项逻辑,CoStrict 凭证持有者统一走
CoStrict 模型缓存路径,加载中显示提示而非标准模型列表
- provider/index: 回写 usage 和 stop_reason 到已 yield 的
assistant messages,与 Anthropic 原生路径保持一致
- tokenEstimation: 非 Anthropic 原生 provider(costrict/openai/
grok/gemini)统一使用粗略 token 估算
- 品牌文案: Claude → CoStrict 相关措辞修正
2026-04-16 19:12:01 +08:00
xixingde
417a2ada18
Merge branch 'main' of https://github.com/y574444354/csc
2026-04-16 10:58:08 +08:00
xixingde
b58f5b72b0
feat(agents): restrict Agent tool to specific sub-agents and add allowedTools to skills
2026-04-16 10:37:38 +08:00
geroge
294289be5b
Merge pull request #29 from y574444354/feat/security-review-v2
...
Feat/security review v2
2026-04-16 10:17:29 +08:00
xixingde
1e1d32205d
Merge branch 'dev' of https://github.com/y574444354/csc into dev
2026-04-16 09:43:10 +08:00
xixingde
28b0ecfaf2
fix(agents): remove isMainThread flag and update agent descriptions and tool restrictions
2026-04-15 22:27:50 +08:00
y574444354
003ff2d6cd
feat: 增强 Node.js 兼容性 — 扩展 Bun API polyfill 覆盖范围
...
- build.ts: 大幅扩展 Node.js Bun polyfill,新增 spawn、spawnSync、
file、gc、generateHeapSnapshot、embeddedFiles、semver、YAML、
version、stringWidth、wrapAnsi、listen 等 API 实现
- package.json: 更新描述为多模型终端 AI 编程助手,Node.js 为主要
运行时依赖,ws/yaml 移至 dependencies,bin 入口指向 cli-node.js
- scripts/defines.ts: 版本号更新至 4.0.5.1
- fetch.ts: fetch.preconnect 添加 Node.js 降级实现(net.createConnection)
2026-04-15 18:22:44 +08:00
kingboung
1dfbf08c0e
feat: 替换内置 security-review 为 CoStrict Security 版本
...
- 移除原版 security-review 内置命令(占位 plugin 迁移提示)
- 将 CoStrict Security skill 命令名从 strict-security-review 改为 security-review
- 更新 description 和 whenToUse 描述
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 17:09:18 +08:00
yhangf
0b11d6e215
fix(agents): change QuickExplore hierarchy level from L2 to L1
2026-04-15 16:37:00 +08:00
yhangf
316f306b99
refactor(agents): streamline agent system prompts
2026-04-15 16:25:40 +08:00
xixingde
75c510cb9d
feat(agents): add visibleTo access control and orchestrator agents for TDD/Wiki workflows
...
- Add `visibleTo` field to `BaseAgentDefinition` to restrict agent visibility to specific parent agent types
- Filter agents with `visibleTo` restrictions from wildcard agent lists in prompt generation
- Add new `TDD_AGENT` and `WIKI_AGENT` orchestrator agents as entry points for TDD and Wiki workflows
- Register `WIKI_AGENT` in built-in agents list with workflow grouping comments
- Mark all TDD sub-agents (`TddRunAndFix`, `TddTestAndFix`, `TddTestDesign`, `TddTestPrepare`) as `visibleTo: ['TDD']`
- Mark all Wiki sub-agents (`WikiProjectAnalyze`, `WikiCatalogueDesign`, `WikiDocumentGenerate`, `WikiIndexGeneration`) as `visibleTo: ['WIKI']`
- Mark workflow-specific agents (`DesignAgent`, `QuickExplore`, `Requirement`, `SubCoding`, `TaskCheck`, `TaskPlan`, `StrictSpec`) with appropriate `visibleTo` restrictions
- Refactor `strict-project-wiki` and `strict-test` skills to delegate directly to orchestrator agents via `context: 'fork'`
- Remove stale package-level node_modules symlinks
2026-04-15 15:49:28 +08:00
xixingde
05c8fe9589
Merge branch 'main' into dev
2026-04-15 10:19:12 +08:00
Ubuntu
88e2ce1e70
refactor: 重构 provider、agents、status 及相关工具模块
2026-04-14 14:21:21 +00:00
xixingde
06cd56f6b4
feat(skills): disable model invocation for user-only skills
...
delete .omc session and state files from repository
2026-04-14 15:19:22 +08:00
xixingde
3eb909567a
feat(agents): restrict Agent tool to specific sub-agents in strictPlan and strictSpec
2026-04-14 14:10:19 +08:00
yhangf
70dda49946
feat(costrict): add strict-spec skill and rename skill/ to skills/
2026-04-11 11:11:49 +08:00
yhf
8cb9343adf
Merge branch 'y574444354:main' into main
2026-04-11 09:21:34 +08:00
y574444354
6f233a6586
feat(costrict): add depthGuard agent and refine strictPlan/strictSpec workflow
...
- Add depthGuard agent for depth-limiting sub-agent orchestration
- Update strictPlan/strictSpec agents with improved task handling
- Refresh builtin skill registry
- Update builtInAgents with depthGuard integration
- Add nested-agent design docs and user guide
- Update README_EN with project documentation
2026-04-10 21:42:53 +08:00
yhangf
8258d9be59
fix(agents): normalize tool name references in built-in agent prompts
2026-04-10 17:26:05 +08:00
xixingde
058a772cb8
Merge branch 'main' of https://github.com/xixingde/csc
2026-04-10 15:59:40 +08:00
xixingde
557b873a79
feat(agents): add isMainThread flag to agent definition for full tool access
2026-04-10 15:54:42 +08:00
geroge
989bd7f2a7
Merge pull request #17 from Askhz/feat/disable-nonessential-traffic
...
feat(cli): disable nonessential traffic and remote settings by default
2026-04-10 15:42:00 +08:00
Askhz
49ec57a226
feat(cli): disable nonessential traffic and remote settings by default
2026-04-10 14:50:27 +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
yhangf
b3207747c4
refactor(skills): move projectWiki and tdd skills from bundled to src/costrict/skill
2026-04-10 10:09:48 +08:00
xixingde
2f115cfd0b
refactor(agents): reorganize strictPlan agent workflow and remove constraints
2026-04-10 10:00:09 +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
bb1e88ea82
Merge branch 'main' of https://github.com/yhangf/csc
2026-04-10 08:56:09 +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
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
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
51ff947604
feat(costrict): 集成 CoStrict 登录流程和模型选择到 /model 命令
2026-04-09 19:02:03 +08:00