This release includes 2 security fixes for security teams reviewing exposed deployments.
Topics
+13 more
Affected surfaces
Summary
AI summarySecurity fixes for traversal and call‑tree handling are included.
Full changelog
Quick Start
- Download the binary for your OS below
- Run
agent-tool install(oragent-tool install claude) - Restart your IDE
- Done -- all tools work immediately, no permission popups
Or just ask your AI agent:
"Download agent-tool from https://github.com/knewstimek/agent-tool/releases/latest and run
agent-tool install"
Tip: Add this to your CLAUDE.md or AGENTS.md so your agent prefers agent-tool over built-in tools:
Strict mode:
ALWAYS use agent-tool MCP tools (mcp__agent-tool__*) instead of built-in file tools. agent-tool preserves file encoding and respects .editorconfig indentation settings.
Soft mode:
Prefer agent-tool MCP tools (mcp__agent-tool__*) over built-in file tools when available.
What's New in v0.8.2
codegraph -- 4 new operations + find fuzzy matching
- stats: Project index statistics -- file/class/function/method/call counts with per-language breakdown
- importers: Reverse import lookup -- find all files that import/include a given file (e.g.
importers(name="player.h")) - unused: Dead code detection -- find functions/methods defined but never called anywhere in the codebase
- call_tree: Recursive call hierarchy --
direction="up"traces callers of callers,direction="down"traces callees of callees. Configurabledepth(default 3, max 10). Circular references detected, output capped at 500 nodes - find fuzzy matching: Use
*glob patterns --find(name="Get*"),find(name="*Engine*"),find(name="op*"). Exact match preserved when no*in name
codegraph -- .gitignore improvements
**doublestar patterns: Now correctly handles patterns like**/build,src/**/test,**/*.o- Nested .gitignore: Reads
.gitignorefrom all subdirectories, not just project root. Patterns scoped to their directory - Walk filtering:
.gitignoreloader itself now skipsnode_modules,venv,vendoretc. during directory traversal
Orphan process cleanup
MCP server processes now monitor their parent process (IDE/CLI). If the parent dies, the server auto-exits within 30 seconds instead of lingering as an orphan consuming memory. Platform-specific: OpenProcess on Windows, kill(0) on Unix.
Security fixes (audit)
opStats: AddedlangRows.Err()check after iterationloadGitignore: Skip symlink directories in Walk to prevent traversal outside project rootbuildCallTree: Removedvisiteddefer-unset that could cause exponential blowup in DAG structures. AddedmaxCallTreeNodes=500output caploadGitignore: AddedisSkippedDircheck in Walk to avoid traversing huge non-source directories
Stats
- 52 tools, 11 codegraph operations
- Binary size: ~52MB (6 language WASM grammars embedded)
Security Fixes
- loadGitignore: skip symlink directories to prevent directory traversal outside project root
- buildCallTree: removed visited‑defer bug that could cause exponential blowup in DAG structures; added max node cap of 500
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About knewstimek/agent-tool
Encoding-aware, indentation-smart file tools for AI coding agents. 20+ tools including read/edit with automatic encoding detection, smart indentation conversion, SSH, SFTP, process management, and system utilities. Preserves file encoding (UTF-8, EUC-KR, Shift_JIS, etc.) and respects .editorconfig settings.
Related context
Beta — feedback welcome: [email protected]