mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-13 05:37:29 +08:00
194 lines
6.2 KiB
JSON
194 lines
6.2 KiB
JSON
{
|
||
"agents": {
|
||
"defaults": {
|
||
"workspace": "~/.clawgo/workspace",
|
||
"proxy": "proxy",
|
||
"proxy_fallbacks": ["backup"],
|
||
"max_tokens": 8192,
|
||
"temperature": 0.7,
|
||
"max_tool_iterations": 20,
|
||
"heartbeat": {
|
||
"enabled": true,
|
||
"every_sec": 1800,
|
||
"ack_max_chars": 64,
|
||
"prompt_template": "Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK."
|
||
},
|
||
"autonomy": {
|
||
"enabled": false,
|
||
"tick_interval_sec": 30,
|
||
"min_run_interval_sec": 20,
|
||
"max_pending_duration_sec": 180,
|
||
"max_consecutive_stalls": 3,
|
||
"max_dispatch_per_tick": 2,
|
||
"notify_cooldown_sec": 300,
|
||
"notify_same_reason_cooldown_sec": 900,
|
||
"quiet_hours": "23:00-08:00",
|
||
"user_idle_resume_sec": 20,
|
||
"max_rounds_without_user": 12,
|
||
"task_history_retention_days": 3,
|
||
"waiting_resume_debounce_sec": 5,
|
||
"idle_round_budget_release_sec": 1800,
|
||
"allowed_task_keywords": [],
|
||
"ekg_consecutive_error_threshold": 3
|
||
},
|
||
"texts": {
|
||
"no_response_fallback": "I've completed processing but have no response to give.",
|
||
"think_only_fallback": "Thinking process completed.",
|
||
"memory_recall_keywords": ["remember", "记得", "上次", "之前", "偏好", "preference", "todo", "待办", "决定", "decision"],
|
||
"lang_usage": "Usage: /lang <code>",
|
||
"lang_invalid": "Invalid language code.",
|
||
"lang_updated_template": "Language preference updated to %s",
|
||
"subagents_none": "No subagents.",
|
||
"sessions_none": "No sessions.",
|
||
"unsupported_action": "unsupported action",
|
||
"system_rewrite_template": "Rewrite the following internal system update in concise user-facing language:\n\n%s",
|
||
"runtime_compaction_note": "[runtime-compaction] removed %d old messages, kept %d recent messages",
|
||
"startup_compaction_note": "[startup-compaction] removed %d old messages, kept %d recent messages",
|
||
"autonomy_important_keywords": ["urgent", "重要", "付款", "payment", "上线", "release", "deadline", "截止"],
|
||
"autonomy_completion_template": "✅ 已完成:%s\n回复“继续 %s”可继续下一步。",
|
||
"autonomy_blocked_template": "⚠️ 任务受阻:%s(%s)\n回复“继续 %s”我会重试。"
|
||
},
|
||
"context_compaction": {
|
||
"enabled": true,
|
||
"mode": "summary",
|
||
"trigger_messages": 60,
|
||
"keep_recent_messages": 20,
|
||
"max_summary_chars": 6000,
|
||
"max_transcript_chars": 20000
|
||
},
|
||
"runtime_control": {
|
||
"intent_max_input_chars": 1200,
|
||
"autonomy_tick_interval_sec": 20,
|
||
"autonomy_min_run_interval_sec": 20,
|
||
"autonomy_idle_threshold_sec": 20,
|
||
"autonomy_max_rounds_without_user": 120,
|
||
"autonomy_max_pending_duration_sec": 180,
|
||
"autonomy_max_consecutive_stalls": 3,
|
||
"autolearn_max_rounds_without_user": 200,
|
||
"run_state_ttl_seconds": 1800,
|
||
"run_state_max": 500,
|
||
"tool_parallel_safe_names": ["read_file", "list_files", "find_files", "grep_files", "memory_search", "web_search", "repo_map", "system_info"],
|
||
"tool_max_parallel_calls": 2,
|
||
"system_summary": {
|
||
"marker": "## System Task Summary",
|
||
"completed_prefix": "- Completed:",
|
||
"changes_prefix": "- Changes:",
|
||
"outcome_prefix": "- Outcome:",
|
||
"completed_title": "Completed Actions",
|
||
"changes_title": "Change Summaries",
|
||
"outcomes_title": "Execution Outcomes"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"channels": {
|
||
"inbound_message_id_dedupe_ttl_seconds": 600,
|
||
"inbound_content_dedupe_window_seconds": 12,
|
||
"outbound_dedupe_window_seconds": 12,
|
||
"telegram": {
|
||
"enabled": false,
|
||
"token": "YOUR_TELEGRAM_BOT_TOKEN",
|
||
"allow_from": ["YOUR_USER_ID"],
|
||
"allow_chats": [],
|
||
"enable_groups": true,
|
||
"require_mention_in_groups": true
|
||
},
|
||
"discord": {
|
||
"enabled": false,
|
||
"token": "YOUR_DISCORD_BOT_TOKEN",
|
||
"allow_from": []
|
||
},
|
||
"maixcam": {
|
||
"enabled": false,
|
||
"host": "0.0.0.0",
|
||
"port": 18790,
|
||
"allow_from": []
|
||
},
|
||
"whatsapp": {
|
||
"enabled": false,
|
||
"bridge_url": "ws://localhost:3001",
|
||
"allow_from": []
|
||
},
|
||
"feishu": {
|
||
"enabled": false,
|
||
"app_id": "",
|
||
"app_secret": "",
|
||
"encrypt_key": "",
|
||
"verification_token": "",
|
||
"allow_from": [],
|
||
"allow_chats": [],
|
||
"enable_groups": true,
|
||
"require_mention_in_groups": true
|
||
},
|
||
"dingtalk": {
|
||
"enabled": false,
|
||
"client_id": "YOUR_CLIENT_ID",
|
||
"client_secret": "YOUR_CLIENT_SECRET",
|
||
"allow_from": []
|
||
}
|
||
},
|
||
"providers": {
|
||
"proxy": {
|
||
"api_key": "YOUR_CLIPROXYAPI_KEY",
|
||
"api_base": "http://localhost:8080/v1",
|
||
"protocol": "chat_completions",
|
||
"cross_session_call_id": false,
|
||
"models": ["glm-4.7", "gpt-4o-mini"],
|
||
"supports_responses_compact": false,
|
||
"auth": "bearer",
|
||
"timeout_sec": 90
|
||
},
|
||
"proxies": {
|
||
"backup": {
|
||
"api_key": "YOUR_BACKUP_PROXY_KEY",
|
||
"api_base": "http://localhost:8081/v1",
|
||
"protocol": "responses",
|
||
"cross_session_call_id": false,
|
||
"models": ["gpt-4o-mini", "deepseek-chat"],
|
||
"supports_responses_compact": true,
|
||
"auth": "bearer",
|
||
"timeout_sec": 90
|
||
}
|
||
}
|
||
},
|
||
"tools": {
|
||
"filesystem": {},
|
||
"shell": {
|
||
"enabled": true,
|
||
"working_dir": "",
|
||
"timeout": 60000000000,
|
||
"auto_install_missing": false,
|
||
"sandbox": {
|
||
"enabled": false,
|
||
"image": "alpine:3.20"
|
||
}
|
||
},
|
||
"web": {
|
||
"search": {
|
||
"api_key": "YOUR_BRAVE_API_KEY",
|
||
"max_results": 5
|
||
}
|
||
}
|
||
},
|
||
"gateway": {
|
||
"host": "0.0.0.0",
|
||
"port": 18790,
|
||
"token": ""
|
||
},
|
||
"cron": {
|
||
"min_sleep_sec": 1,
|
||
"max_sleep_sec": 30,
|
||
"retry_backoff_base_sec": 30,
|
||
"retry_backoff_max_sec": 1800,
|
||
"max_consecutive_failure_retries": 5,
|
||
"max_workers": 4
|
||
},
|
||
"logging": {
|
||
"enabled": true,
|
||
"dir": "~/.clawgo/logs",
|
||
"filename": "clawgo.log",
|
||
"max_size_mb": 20,
|
||
"retention_days": 3
|
||
}
|
||
}
|