@QingQ77: 更快更智能的 VS Code TODO 树插件,TypeScript + Rust 重写,带优先级、标签、Git 感知和 AI Agent 接口。 https://github.com/real-Elysia886/Todo-Tree-N…
摘要
更快更智能的VS Code TODO树插件,TypeScript+Rust重写,带优先级、标签、Git感知和AI Agent接口。
查看缓存全文
缓存时间: 2026/05/25 12:53
更快更智能的 VS Code TODO 树插件,TypeScript + Rust 重写,带优先级、标签、Git 感知和 AI Agent 接口。
https://github.com/real-Elysia886/Todo-Tree-Next…
Todo-Tree-Next 是对经典 Todo Tree 的现代化重写,用 TypeScript 和 Rust 双引擎实现。核心功能有:Rust 原生扫描器(可回退 ripgrep)、文件级增量刷新、TODO 元数据(P0-P3、@负责人、due 日期、#标签)、智能过滤、Markdown 任务支持。
real-Elysia886/Todo-Tree-Next
Source: https://github.com/real-Elysia886/Todo-Tree-Next
Todo Tree_Next
A faster, smarter TODO tree for VS Code, rebuilt with TypeScript, Rust, Git awareness, and AI Agent context.
English · 中文 · AI Agent Interface · Benchmarks
Why Todo Tree_Next
Todo Tree_Next keeps the familiar Todo Tree workflow, then turns it into a modern project-maintenance surface:
- Find TODO, FIXME, BUG, markdown tasks, and custom tags across large workspaces.
- Scan quickly with a native Rust engine while keeping ripgrep as a fallback.
- See priority, ownership, labels, due dates, Git status, and branch-level TODO debt.
- Use the dashboard to understand where work is concentrated.
- Give AI coding tools structured TODO context and let them annotate findings back into VS Code.
Feature Snapshot
| Capability | What you get |
|---|---|
| Fast scanning | Rust workspace scanner, file-level incremental refresh, max file size guard |
| Rich TODO metadata | P0-P3, TODO!, TODO?, @assignee, due:YYYY-MM-DD, #labels |
| Smart filtering | Queries like tag:TODO path:src priority:P0 status:open |
| Native markdown tasks | - [ ], - [x], numbered tasks, and normal code comments |
| Git workflows | Scan changed/staged files and export branch TODO debt reports |
| Dashboard | Counts, charts, trend view, scanner controls, filter controls, Git actions |
| AI Agent interface | getAgentContext, annotateAgentFinding, and agent-context CLI JSON |
| Compatibility | Original tree, highlights, export, status bar, grouping, and navigation remain available |
Install
Search the VS Code Marketplace for:
Todo Tree_Next
Offline install:
- Download or build a
.vsix. - Open the VS Code Extensions view.
- Choose
...>Install from VSIX.... - Select the generated package.
Everyday Commands
Todo Tree: Refresh
Todo Tree: Open Dashboard
Todo Tree: Scan Changed Files
Todo Tree: Scan Staged Files
Todo Tree: Export TODO Debt Report
Todo Tree: Get Agent TODO Context
Todo Tree: Clear Agent Annotations
Smart Filtering
Mix plain text with structured fields:
auth
tag:TODO
path:src
file:README.md
text:refactor
priority:P0
status:open
tag:FIXME path:src priority:P1
| Field | Matches |
|---|---|
tag | TODO, FIXME, BUG, [ ], [x], custom tags |
path | Full file path |
file | File name |
text | TODO content |
priority | P0, P1, P2, P3, none |
status | Markdown task status: open or done |
Priority And Metadata
// TODO:P0 fix auth bug @alice due:2026-06-01 #security
// FIXME:P1 memory leak @bob #backend
// TODO! urgent task -> P0
// TODO? needs discussion -> P2
The scanner turns these hints into structured data used by the tree, dashboard, exports, Git reports, and AI Agent interface.
Dashboard And Git
Todo Tree: Open Dashboard gives you a compact control center:
- tag and priority distribution
- TODO trend chart
- scanner engine switch:
auto,rust,ripgrep - scan mode controls
- smart filter input
- changed/staged scan shortcuts
Git-focused commands help review TODO debt before merge:
Todo Tree: Scan Changed Files
Todo Tree: Scan Staged Files
Todo Tree: Export TODO Debt Report
AI Agent Interface
Todo Tree_Next exposes TODO debt as a machine-readable project index. AI coding tools can read ranked TODO context, then write temporary editor diagnostics as review notes or suggested actions.
VS Code command API:
const context = await vscode.commands.executeCommand('todo-tree.getAgentContext');
await vscode.commands.executeCommand('todo-tree.annotateAgentFinding', {
file: 'src/auth.ts',
line: 42,
column: 5,
severity: 'warning',
message: 'P0 TODO touches authentication code; review before merge.'
});
await vscode.commands.executeCommand('todo-tree.clearAgentAnnotations');
CLI:
todo-scanner agent-context --root . --config todo-scanner-config.json
Agent context includes file path, line/column, tag, priority, assignee, due date, labels, Git status, approximate age, code snippet, recommended action, and recommended order.
Full schema: docs/AGENT_INTERFACE.md
Architecture
VS Code extension
extension.js entry point and legacy glue
scannerClient.ts Rust CLI JSON protocol
agentInterface.ts AI Agent context and diagnostics
dashboard.ts Webview dashboard
tree.ts Tree data provider
filterQuery.ts Structured filter parser
gitScanner.ts Git changed/staged scan
debtReport.ts Git TODO debt report
Rust scanner
main.rs scan-workspace, scan-file, agent-context, benchmark
walker.rs .gitignore-aware traversal
matcher.rs TODO matching and metadata extraction
output.rs JSON output schema
Develop And Package
npm install
npm run scanner:build
npm run webpack
npm test
cargo test --manifest-path scanner/Cargo.toml
Package:
npm run vscode:prepublish
npx --yes @vscode/vsce package
Test coverage:
| Type | Count |
|---|---|
| QUnit tests | 97 |
| Rust tests | 38 |
| Total | 135 |
Configuration
{
"todo-tree.scanner.engine": "auto",
"todo-tree.scanner.path": "",
"todo-tree.scanner.maxFileSize": 1048576
}
| Value | Behavior |
|---|---|
auto | Use Rust scanner when available, fallback to ripgrep |
rust | Force Rust scanner |
ripgrep | Use the original ripgrep scanner |
More Documentation
License
MIT. Based on the original Todo Tree extension by Gruntfuggly.
相似文章
@QingQ77: 为编码 Agent 提供基于 tree-sitter 的结构化、字节精确、低 token 消耗的代码库访问能力 https://github.com/Entelligentsia/grove… 用 Rust 写了一个双面工具:既当 CLI…
Grove is a Rust-powered tool that uses tree-sitter to provide coding agents with structured, byte-precise, token-efficient access to codebases, supporting 27 languages via CLI and MCP server.
@wsl8297: 微软开源了一个更顺手的 VS Code 插件:AI Toolkit,把 Agent 应用开发从搭环境到评估上线,一口气打通。 一个界面就够:模型挑选、Playground 试跑、Agent 搭建、批量对比、指标评测,全都集成在一起。 Gi…
微软开源了 VS Code 插件 AI Toolkit,将模型选择、Playground、Agent 搭建、批量测试和评估集成在一个界面中,简化 AI Agent 开发流程。
@vintcessun: 与其在终端里重造编辑器,不如把 VS Code 的成熟能力直接搬进来。 https://github.com/zenbu-labs/terminal-code… terminal-code 组合 terminal-browser 与 co…
terminal-code 是一个将 VS Code 集成到终端的开源工具,通过结合 terminal-browser 和 code-server 实现,支持 SSH 和扩展,但依赖 Kitty 图形协议且 Windows 兼容性有限。
@alswl: AI 写代码太快了,怎么查看变化内容变得更困难,在线 PR 查看效率太低了。 我一直在使用 IntelliJ IDEA 作为我的主力 IDE(现在是主力代码查看器)。 官方 Git 插件看本地 Changes 还行,但我真正需要的是:持续…
在AI写代码速度加快的背景下,作者推荐IntelliJ插件Git Scope,它能在IDE中方便地比较当前分支与任意分支/tag/commit的diff,提升代码审查效率。
@yucheng: 最近种草 @superdoteng ,已经一个月没打开过任何像是 cursor 的 ide 了。天然适合多开 workspace, 项目,worktree。里面的各种快捷键包括左右切 workspace, 上下切 repo,上下切 wor…
The user recommends superdoteng as an IDE alternative that excels at managing multiple workspaces, projects, and worktrees, with keyboard shortcuts and support for Grok Build.