About DM Code Agent
DM Code Agent is an MCP server published by hwfengcs in the RAG category: an inspectable coding agent. Trace changes, diagnose failed runs, and share test evidence. Local-first Python, no-key demo, standalone HTML reports. Conduid read 17 tools from its source: build_code_index, create_file, dependency_graph, edit_file, find_dependencies, get_code_metrics and 11 more. No package is published for it, so it installs from a source checkout.
The repository has 152 stars and 15 forks, is licensed MIT, and its last commit was on 15 Nov 2026. The latest release is v2.1.1 (15 Nov 2026): v2.1.1 — 执行边界与审计可信度修复 这次发布落实 11 月 13、14、15 日审计中仍成立的执行、协议、统计和展示问题。 原始审计、会话、预测和历史评测不改写;没有新增真实模型或 SWE-bench 成绩。 四类执行工具默认 120 秒超时、每流 8 MiB 输出预算,保存独立原始输出;Windows Job Object 回… The release before it was v2.1.0 (14 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include agent-evaluation, code-agent, llm-agent, rag, react-agent and reflexion-agent.
Install
git clone https://github.com/hwfengcs/DM-Code-AgentTools (17)
build_code_indexBuild a repository-level Python symbol index. Arguments: {"root": optional string (default "."), "max_files": optional int (default 200), "include_tests": optional bool (default true)}.create_fileCreate or overwrite a text file. Arguments: {"path": string, "content": string}.dependency_graphBuild a local Python import dependency graph. Arguments: {"root": optional string, "max_files": optional int, "include_external": optional bool}.edit_fileEdit a file. PREFERRED: content-anchored replace with {"path": string, "old_string": string, "new_string": string} — old_string must match exactly once (whitespace and indentation included), and new_string must contain an actual change; if the strings are identical or old_string matches zero or several times, nothing is written. Fallback (line-numbered, use only when content anchoring will not do): {"path": string, "operation": "insert"|"replace"|"delete", "line_start": int, "line_end": int (for replace/delete), "content": string (for insert/replace)}. Line numbers shift after every edit, so re-read the file before using them again. Every edit echoes the resulting lines back to you — check them before moving on.find_dependenciesAnalyze file dependencies (imports). Arguments: {"path": string}.get_code_metricsGet code metrics (lines, functions, classes count). Arguments: {"path": string}.get_function_signatureGet function signature with type hints. Arguments: {"path": string, "function_name": string}.list_directoryList entries for the given directory path. Arguments: {"path": optional string (default '.'), "recursive": optional bool (default false), "file_type": optional string filter like '.py' or '.js'}.parse_astParse Python file AST to extract structure (functions, classes, imports). Arguments: {"path": string}.read_fileRead a UTF-8 text file. Arguments: {"path": string, "line_start": optional int, "line_end": optional int}.run_linterRun code linter/formatter. Arguments: {"path": string, "tool": optional "ruff"|"flake8"|"pylint"|"mypy"|"black" (default 'ruff')}. If the chosen linter is not installed here, the tool replies with the list of linters this environment does provide -- switch to one of those. Optional timeout (seconds, default 120) and max_output_bytes (per stream, default 8388608).run_pythonExecute Python code using the local interpreter. Arguments: either {"code": string} or {"path": string, "args": optional string or list}. Optional timeout (seconds, default 120) and max_output_bytes (per stream, default 8388608).run_shellExecute a shell command. Arguments: {"command": string}. Optional timeout (seconds, default 120) and max_output_bytes (per stream, default 8388608).run_testsRun Python test suite. Arguments: {"test_path": optional string (default '.'), "framework": optional "pytest"|"unittest" (default 'pytest'), "verbose": optional bool (default false)}. Optional timeout (seconds, default 120) and max_output_bytes (per stream, default 8388608).search_in_fileSearch for text or regex pattern in a file. Arguments: {"path": string, "pattern": string, "context_lines": optional int (default 2)}.search_symbolSearch classes, functions, and methods by name. Arguments: {"name": string, "root": optional string, "kind": optional "class"|"function"|"method", "exact": optional bool, "max_files": optional int}.task_completeMark the task as complete and finish execution. Arguments: {"message": optional string with completion summary}.Security checks
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 130 source files and found 1 call to eval or shell execution, in dm_agent/cli/ui.py. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 1.0K words, fetched 12 days ago. The original in the repository is authoritative.
Read full README