添加qiming-rcoder模块

This commit is contained in:
Codex
2026-06-01 13:54:52 +08:00
parent 8092c4b1f8
commit 4b1a580132
539 changed files with 151650 additions and 0 deletions

83
qiming-rcoder/config.yml Normal file
View File

@@ -0,0 +1,83 @@
# rcoder 配置文件
# 该文件在首次启动时自动生成
# 默认使用的 Agent ID
default_agent_id: claude-code-acp-ts
# 项目工作目录
projects_dir: ./project_workspace
# 主服务端口
port: 8086
# Pingora 反向代理配置
proxy_config:
# 代理服务监听端口 (用于接收外部请求)
listen_port: 8088
# 默认后端服务端口 (当请求未指定端口时使用)
default_backend_port: 8086
# 后端服务主机地址
backend_host: "127.0.0.1"
# URL 中端口参数的名称 (用于从路径中提取端口号)
port_param: "port"
# 健康检查配置
health_check:
enabled: true
interval_seconds: 5
timeout_seconds: 1
healthy_threshold: 2
unhealthy_threshold: 3
# Agent 清理配置
# 如果省略此配置块,将使用以下默认值:
# - idle_timeout_secs: 300 (5分钟)
# - cleanup_interval_secs: 30 (30秒)
agent_cleanup:
# Agent 闲置超时时间(秒)
# Agent 在闲置超过此时间后会被自动清理以释放资源
# 有效范围: 10 - 86400 秒10秒 - 24小时
# 可通过环境变量 RCODER_AGENT_IDLE_TIMEOUT_SECS 覆盖
idle_timeout_secs: 300
# 清理检查间隔(秒)
# 系统每隔此时间检查一次是否有闲置的 Agent 需要清理
# 有效范围: 5 - 3600 秒5秒 - 1小时
# 可通过环境变量 RCODER_AGENT_CLEANUP_INTERVAL_SECS 覆盖
cleanup_interval_secs: 30
# gRPC 超时配置
# 如果省略此配置块,将使用以下默认值:
# - cancel_session_timeout_secs: 30 (30秒)
# - acp_session_create_timeout_secs: 100 (100秒)
# - agent_cancel_timeout_secs: 10 (10秒)
# - port_check_timeout_millis: 500 (500毫秒)
grpc_timeouts:
# 取消会话超时(秒)
# gRPC 取消会话请求的最大等待时间
# 有效范围: 5 - 300 秒
# 可通过环境变量 RCODER_CANCEL_SESSION_TIMEOUT_SECS 覆盖
cancel_session_timeout_secs: 30
# ACP 会话创建超时(秒)
# Agent 创建新会话的最大等待时间MCP 工具较多时可能需要更长时间)
# 有效范围: 10 - 300 秒
# 可通过环境变量 RCODER_ACP_SESSION_CREATE_TIMEOUT_SECS 覆盖
acp_session_create_timeout_secs: 100
# Agent 取消调用超时(秒)
# Agent 内部取消操作的最大等待时间
# 有效范围: 5 - 60 秒
# 可通过环境变量 RCODER_AGENT_CANCEL_TIMEOUT_SECS 覆盖
agent_cancel_timeout_secs: 10
# 端口检查超时(毫秒)
# 检查端口可用性的最大等待时间
# 有效范围: 100 - 10000 毫秒
# 可通过环境变量 RCODER_PORT_CHECK_TIMEOUT_MILLIS 覆盖
port_check_timeout_millis: 500
# Agent 并发配置
# 如果省略此配置块,将使用以下默认值:
# - concurrency_limit: 10 (10个并发会话)
agent_concurrency:
# Agent 并发会话槽位数量
# 决定可以同时处理的 Agent 会话数量
# 有效范围: >= 1
# 可通过环境变量 RCODER_AGENT_CONCURRENCY_LIMIT 覆盖
concurrency_limit: 10