中文:这个 sidecar 从 TelegramSearchBot 的 Garnet/Redis 队列接收 run_coding_agent 任务,在后台调用 pi --mode rpc,并通过 pi 的 RPC stdin/stdout 协议收集结果。任务结束后,sidecar 把报告推回 Redis,主进程会发送 Telegram 报告并自动续跑 LLM。
English: this sidecar consumes run_coding_agent jobs from TelegramSearchBot's Garnet/Redis queue, runs pi --mode rpc in the background, and collects results through pi's RPC stdin/stdout protocol. When a job finishes, it pushes a report back to Redis so the main process can post the Telegram report and resume the LLM loop.
Build:
cargo build --manifest-path TelegramSearchBot.CodingAgentSidecar/Cargo.toml --releaseConfig:
EnableCodingAgentTool: must betrue.CodingAgentAllowedGroupIds: explicit Telegram group whitelist.CodingAgentSidecarCommand: path/name of this binary. Defaults totelegramsearchbot-coding-agent-sidecar.CodingAgentPiCommand: path/name ofpi. Defaults topi.