Skip to content

Update - #26

Merged
merfiDEV merged 11 commits into
masterfrom
update
Oct 6, 2026
Merged

merfiDEV merged 11 commits into
masterfrom
update

Conversation

@merfiDEV

@merfiDEV merfiDEV commented Oct 6, 2026

Copy link
Copy Markdown
Owner

描述

请简要描述这个 PR 做了什么。

关联 Issue

关联的 Issue 编号:#(例如 #123)

变更类型

  • Bug 修复(修复了一个问题)
  • 新功能(添加了非破坏性的功能)
  • 破坏性变更(会导致现有功能无法正常工作)
  • 文档更新
  • 代码风格/重构
  • 测试

测试

请描述你做了哪些测试来验证你的改动:

  • 在 Windows 上测试通过
  • 代码已检查,没有 lint 错误

截图(如果适用)

补充信息

- tools/MemoryTool.js: memory_save / memory_read / memory_clear

- src/main/memory-store.js: persistent storage at <userData>/memory.md

- registered in tools/index.js + JsRunner bootstrap + cuckoo-tools.d.ts

- plan-mode blocks mutating memory ops; settings UI section with open/clear

- Telegram bot: pretty rendering for memory/city_time notifications
Implement subagent orchestration: run_agent/list_agents/read_agent tools, project agent scanner (.cuckoo/agents), child-window runner sharing the parent partition, and preload watcher that reports the final answer via IPC. Inject the AGENTS_SECTION placeholder into prompt templates and expose runAgent/listAgents/readAgent in the JS runner.
This change migrates agent discovery from .cuckoo/agents to cookie/agents and updates the agent docs and scanner logic accordingly. It also adds a new create_agent tool that creates project-scoped subagents in cookie/agents, exposes the helper through the JS runner, and refreshes the available agents list after creation.
This patch adds a per-agent tool whitelist for subagent execution. It propagates the configured tools into the child window context, validates direct IPC tool calls before execution, and rejects non-whitelisted actions in JsRunner as well.

It also adds a whitelist test agent to verify that allowed tools still work while forbidden ones are blocked with explicit errors.
Keep the selected project directory stable while a session is still initializing, especially in subagent windows. This change caches the pending project dir until the session is ready, propagates it into subagent context, and restores the directory display in the subagent overlay so the working folder remains visible during startup.
This change adds Telegram notifications for subagent lifecycle actions (run/create/list/read) and sends a start card before the child window opens. It also improves subagent completion detection by tracking stable text instead of the legacy AI-complete check, including project-dir display, turn limits, and timeout handling.
Prefix batched tool alerts with «🤖 Агент: <name>» when the call comes from a subagent window, and skip duplicate AI-response notifications from subagent windows. Thread agentName through JsRunner and IPC. Extend git-committer agent docs with commit/repo link report format.
Папка cookie/agents была в .gitignore — новые агенты (созданные через create_agent) оставались untracked. Убрал игнор: агенты проекта должны быть в git. Пользовательские агенты и так лежат в ~/cookie/agents вне репозитория.
Add a Subagents section with screenshots to all three READMEs, rewrite CHANGELOG to keep only the 5.0.2 entry (patch+1 rule), and update changelog-writer agent to bump patch+1 and fully replace the file.
Add /agents (alias /agent) command that scans cookie/agents/*.md and renders a formatted list of project subagents with name, description, tools and maxTurns. Also add related i18n strings (ru/en) and register the command in the help text and bot menu. Refresh CHANGELOG.md in a friendlier tone and add the AI memory section.
@merfiDEV
merfiDEV merged commit 3685b95 into master Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant