diff --git a/agent/evolution/config.py b/agent/evolution/config.py index a3215858..948876fb 100644 --- a/agent/evolution/config.py +++ b/agent/evolution/config.py @@ -13,8 +13,8 @@ from typing import Any # Defaults — conservative (see executor module docstring). Disabled by default # until release; enable via ``self_evolution_enabled``. DEFAULT_ENABLED = False -DEFAULT_IDLE_MINUTES = 15 -DEFAULT_MIN_TURNS = 8 +DEFAULT_IDLE_MINUTES = 10 +DEFAULT_MIN_TURNS = 6 # Max review steps for the isolated evolution agent. Kept small (not exposed as # config): the review is meant to be cheap and focused, not a long autonomous run. DEFAULT_MAX_STEPS = 12 diff --git a/channel/web/chat.html b/channel/web/chat.html index 3a56f8c1..4f527bb4 100644 --- a/channel/web/chat.html +++ b/channel/web/chat.html @@ -285,7 +285,7 @@ - diff --git a/channel/web/static/js/console.js b/channel/web/static/js/console.js index e50ff0c9..1b170de8 100644 --- a/channel/web/static/js/console.js +++ b/channel/web/static/js/console.js @@ -470,6 +470,9 @@ function applyI18n() { installCfgTipPortal(); const langLabel = document.getElementById('lang-label'); if (langLabel) langLabel.textContent = currentLang === 'zh' ? '中文' : 'EN'; + // Point the docs link to the locale-specific documentation site. + const docsLink = document.getElementById('docs-link'); + if (docsLink) docsLink.href = currentLang === 'zh' ? 'https://docs.cowagent.ai/zh' : 'https://docs.cowagent.ai'; } // Single entry point for switching language. Updates the in-memory language, diff --git a/config.py b/config.py index 0f64f6fc..f711aad2 100644 --- a/config.py +++ b/config.py @@ -253,8 +253,8 @@ available_setting = { "knowledge": True, # whether to enable the knowledge base feature # Self-evolution: review idle conversations to learn memory/skills. Flat keys. "self_evolution_enabled": False, # switch to enable/disable self-evolution - "self_evolution_idle_minutes": 15, # idle time before a session is reviewed - "self_evolution_min_turns": 8, # min user turns (or context pressure) to trigger + "self_evolution_idle_minutes": 10, # idle time before a session is reviewed + "self_evolution_min_turns": 6, # min user turns (or context pressure) to trigger "skill": {}, # Per-skill runtime config; nested keys flatten to SKILL__ env vars at startup "mcp_servers": [], # MCP server list; each entry supports type "stdio" (local process) or "sse" (remote URL) } diff --git a/docs/ja/memory/self-evolution.mdx b/docs/ja/memory/self-evolution.mdx index 7b065b92..7e81f5a2 100644 --- a/docs/ja/memory/self-evolution.mdx +++ b/docs/ja/memory/self-evolution.mdx @@ -29,7 +29,7 @@ description: Self-Evolution — 会話がアイドル状態になった後に振 自律進化は定時実行ではなく、**会話が自然に終わってアイドル状態になった後**にのみ起動するため、進行中のやり取りを妨げることはありません。次の 2 つの条件を同時に満たす必要があります: -- **会話がアイドル状態**:最後のやり取りから、設定したアイドル時間(デフォルトは 15 分)以上が経過している +- **会話がアイドル状態**:最後のやり取りから、設定したアイドル時間(デフォルトは 10 分)以上が経過している - **振り返るだけの内容がある**:前回の進化から十分なターン数が蓄積されている、またはコンテキストが容量の上限に近づいている 両方の条件を満たしたときにのみ振り返りが始まります。これにより、振り返る価値のある内容を確保しつつ、会話の途中で邪魔をしないようにしています。 @@ -41,8 +41,8 @@ description: Self-Evolution — 会話がアイドル状態になった後に振 | パラメータ | 説明 | デフォルト値 | | --- | --- | --- | | `self_evolution_enabled` | 自律進化を有効にするかどうか(新規インストールはデフォルトで有効) | `false` | -| `self_evolution_idle_minutes` | 会話がアイドル状態になってからトリガーするまでの時間(分) | `15` | -| `self_evolution_min_turns` | トリガーに必要な最小会話ターン数 | `8` | +| `self_evolution_idle_minutes` | 会話がアイドル状態になってからトリガーするまでの時間(分) | `10` | +| `self_evolution_min_turns` | トリガーに必要な最小会話ターン数 | `6` | Web コンソールでは有効・無効のスイッチのみを提供しています。アイドル時間やターン数のしきい値を変更したい場合は、設定ファイルを編集してください。変更は即時に反映され、再起動は不要です。 diff --git a/docs/memory/self-evolution.mdx b/docs/memory/self-evolution.mdx index 01838bc7..ca9342a8 100644 --- a/docs/memory/self-evolution.mdx +++ b/docs/memory/self-evolution.mdx @@ -33,7 +33,7 @@ Once a review is done, if it actually changed something, the Agent tells you in Self-Evolution does not run on a fixed schedule. It only kicks in **after a conversation naturally ends and goes idle**, so it never interrupts an ongoing exchange. Two conditions must both hold: -- **The conversation is idle**: more time has passed since the last interaction than the configured idle window (15 minutes by default) +- **The conversation is idle**: more time has passed since the last interaction than the configured idle window (10 minutes by default) - **There is enough to review**: enough turns have accumulated since the last evolution, or the context is close to its capacity Only when both are met does a review begin. This makes sure there is something worth reviewing while keeping it from bothering you mid-conversation. @@ -45,8 +45,8 @@ You can toggle Self-Evolution in the Web console under **Settings → Agent Conf | Parameter | Description | Default | | --- | --- | --- | | `self_evolution_enabled` | Whether Self-Evolution is enabled (on by default for new installs) | `false` | -| `self_evolution_idle_minutes` | How long the conversation must be idle before it triggers (minutes) | `15` | -| `self_evolution_min_turns` | Minimum conversation turns required to trigger | `8` | +| `self_evolution_idle_minutes` | How long the conversation must be idle before it triggers (minutes) | `10` | +| `self_evolution_min_turns` | Minimum conversation turns required to trigger | `6` | Enable Self-Evolution in the Web console diff --git a/docs/zh/memory/self-evolution.mdx b/docs/zh/memory/self-evolution.mdx index 8b230b84..ed21d677 100644 --- a/docs/zh/memory/self-evolution.mdx +++ b/docs/zh/memory/self-evolution.mdx @@ -34,8 +34,8 @@ description: Self-Evolution:自动复盘,沉淀记忆、优化技能、处 自主进化不是定时执行,而是在**一段对话自然结束、进入空闲后**才触发,避免打断正在进行的交流。需要同时满足: -- **对话已空闲** — 距离最后一次互动超过设定的空闲时长(默认 15 分钟) -- **对话有足够内容** — 自上次进化以来累积了足够轮次(默认 8 轮),或上下文已接近容量上限 +- **对话已空闲** — 距离最后一次互动超过设定的空闲时长(默认 10 分钟) +- **对话有足够内容** — 自上次进化以来累积了足够轮次(默认 6 轮),或上下文已接近容量上限 只有两个条件都满足,才会启动一次复盘。这样既保证有足够的内容值得复盘,又不会在你还在对话时打扰你。 @@ -46,8 +46,8 @@ description: Self-Evolution:自动复盘,沉淀记忆、优化技能、处 | 参数 | 说明 | 默认值 | | --- | --- | --- | | `self_evolution_enabled` | 是否启用自主进化 | `false` | -| `self_evolution_idle_minutes` | 对话空闲多久后触发(分钟) | `15` | -| `self_evolution_min_turns` | 触发所需的最少对话轮次 | `8` | +| `self_evolution_idle_minutes` | 对话空闲多久后触发(分钟) | `10` | +| `self_evolution_min_turns` | 触发所需的最少对话轮次 | `6` | 在 Web 控制台开启自主进化