lintsinghua / lintsinghua/DeepAudit

backend/app/services/agent/config.py配置信息失效

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7k
Forks
850
PR merge metrics
No merged PRs in 30d

Description

这是一块写了但从未接通的死代码。 1100 行,定义了所有 Agent 的轮数、超时、工具开关等配置,有完整的 validation和文档——但 agent_tasks.py 创建 Agent 时压根不读它,而是用各个 Agent 构造函数里的硬编码值。这会导致在使用的时候变更交互轮数,超时配置时非常不方便,而这些配置是必要且经常更改的。

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading backend/app/services/agent/config.py and backend/app/services/agent/agent_tasks.py, then trace how each Agent is created and where constructor defaults are applied. Compare those paths with the configuration validation and documentation in config.py. Done means changes to interaction rounds, timeouts, and tool switches are read from the configuration when agents are created.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.