Skip to content

Implement LLM agent process separation#266

Merged
ModerRAS merged 6 commits intomasterfrom
feature/llm-agent-separation
Apr 17, 2026
Merged

Implement LLM agent process separation#266
ModerRAS merged 6 commits intomasterfrom
feature/llm-agent-separation

Conversation

@ModerRAS
Copy link
Copy Markdown
Owner

Split the LLM loop into dedicated LLMAgent/SubAgent processes and wire the main process through Redis/Garnet IPC.

Includes:

  • shared contracts/config and launcher/runtime foundation
  • LLMAgent/SubAgent process implementations
  • main-process queue, registry, and chunk polling flow
  • tests and docs covering the new agent lifecycle
  • cleanup of stray repo artifact test.txt

ModerRAS and others added 6 commits April 17, 2026 09:05
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 17, 2026

Warning

Rate limit exceeded

@ModerRAS has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 29 minutes and 11 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 29 minutes and 11 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0d85f30a-9179-409a-9084-be27064d55ca

📥 Commits

Reviewing files that changed from the base of the PR and between eee4ed0 and 632628c.

📒 Files selected for processing (47)
  • Docs/README_MCP.md
  • README.md
  • TelegramSearchBot.Common/Env.cs
  • TelegramSearchBot.Common/Model/AI/LLMProvider.cs
  • TelegramSearchBot.Common/Model/AI/LlmAgentContracts.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/GarnetClientTests.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/GarnetRpcClientTests.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/ToolExecutorTests.cs
  • TelegramSearchBot.LLM.Test/TelegramSearchBot.LLM.Test.csproj
  • TelegramSearchBot.LLMAgent/LLMAgentProgram.cs
  • TelegramSearchBot.LLMAgent/Program.cs
  • TelegramSearchBot.LLMAgent/Service/AgentLoopService.cs
  • TelegramSearchBot.LLMAgent/Service/AgentToolService.cs
  • TelegramSearchBot.LLMAgent/Service/GarnetClient.cs
  • TelegramSearchBot.LLMAgent/Service/GarnetRpcClient.cs
  • TelegramSearchBot.LLMAgent/Service/IAgentTaskExecutor.cs
  • TelegramSearchBot.LLMAgent/Service/InMemoryMessageExtensionService.cs
  • TelegramSearchBot.LLMAgent/Service/LlmServiceProxy.cs
  • TelegramSearchBot.LLMAgent/Service/ToolExecutor.cs
  • TelegramSearchBot.LLMAgent/TelegramSearchBot.LLMAgent.csproj
  • TelegramSearchBot.SubAgent/Program.cs
  • TelegramSearchBot.SubAgent/Service/SubAgentService.cs
  • TelegramSearchBot.SubAgent/TelegramSearchBot.SubAgent.csproj
  • TelegramSearchBot.Test/Service/AI/LLM/AgentEnvCollection.cs
  • TelegramSearchBot.Test/Service/AI/LLM/AgentIntegrationTests.cs
  • TelegramSearchBot.Test/Service/AI/LLM/AgentRegistryServiceTests.cs
  • TelegramSearchBot.Test/Service/AI/LLM/ChunkPollingServiceTests.cs
  • TelegramSearchBot.Test/Service/AI/LLM/FakeAgentTaskExecutor.cs
  • TelegramSearchBot.Test/Service/AI/LLM/InMemoryRedisTestHarness.cs
  • TelegramSearchBot.Test/Service/AI/LLM/LLMTaskQueueServiceTests.cs
  • TelegramSearchBot.Test/TelegramSearchBot.Test.csproj
  • TelegramSearchBot.sln
  • TelegramSearchBot/AppBootstrap/AppBootstrap.cs
  • TelegramSearchBot/AppBootstrap/LLMAgentBootstrap.cs
  • TelegramSearchBot/AppBootstrap/SubAgentBootstrap.cs
  • TelegramSearchBot/Controller/AI/LLM/AgentMonitorController.cs
  • TelegramSearchBot/Controller/AI/LLM/GeneralLLMController.cs
  • TelegramSearchBot/Controller/AI/LLM/LLMIterationCallbackController.cs
  • TelegramSearchBot/Extension/ServiceCollectionExtension.cs
  • TelegramSearchBot/Service/AI/LLM/AgentRegistryService.cs
  • TelegramSearchBot/Service/AI/LLM/ChunkPollingService.cs
  • TelegramSearchBot/Service/AI/LLM/IAgentProcessLauncher.cs
  • TelegramSearchBot/Service/AI/LLM/LLMTaskQueueService.cs
  • TelegramSearchBot/Service/AI/LLM/LlmAgentProcessLauncher.cs
  • TelegramSearchBot/Service/AI/LLM/TelegramTaskConsumer.cs
  • TelegramSearchBot/TelegramSearchBot.csproj
  • test.txt
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/llm-agent-separation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 PR检查报告

📋 检查概览

🧪 测试结果

平台 状态 详情
Ubuntu 🔴 失败 测试结果不可用
Windows 🔴 失败 测试结果不可用

📊 代码质量

  • ✅ 代码格式化检查
  • ✅ 安全漏洞扫描
  • ✅ 依赖包分析
  • ✅ 代码覆盖率收集

📁 测试产物

  • 测试结果文件已上传为artifacts
  • 代码覆盖率已上传到Codecov

🔗 相关链接


此报告由GitHub Actions自动生成

@ModerRAS ModerRAS merged commit f605f3b into master Apr 17, 2026
5 checks passed
@ModerRAS ModerRAS deleted the feature/llm-agent-separation branch April 17, 2026 02:42
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