This release adds 2 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+13 more
Affected surfaces
Summary
AI summaryPowerShell 5.1 command tokenization added for hang prevention and Git‑bash now preferred over PowerShell.
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"
Any capable AI coding agent (Claude Code, Codex, etc.) can handle the full download → install → restart flow automatically.
Tip: Add this to your project's CLAUDE.md or AGENTS.md so your agent prefers agent-tool over built-in tools:
Strict mode (for projects with non-UTF-8 files or mixed indentation):
ALWAYS use agent-tool MCP tools (mcp__agent-tool__*) instead of built-in file tools.
Do NOT use built-in Read, Edit, Write, Grep, or Glob — use mcp__agent-tool__read,
mcp__agent-tool__edit, mcp__agent-tool__write, mcp__agent-tool__grep, mcp__agent-tool__glob instead.
Soft mode (general projects):
Prefer agent-tool MCP tools (mcp__agent-tool__*) over built-in file tools when available.
What's New in v0.5.2
PS 5.1 Sentinel Hang Prevention
- Tokenize pre-validation: All commands sent to PowerShell 5.1 are now Base64-encoded and validated with
PSParser::Tokenizebefore execution viaInvoke-Expression. The wrapper is always syntactically valid PS, so the sentinel marker runs even if the user command has parse errors. This prevents hangs from ANY PS 5.1 parsing failure, not just&&/||. - Shell priority change (from v0.5.1+1): Git-bash is now preferred over PowerShell 5.1 (
pwsh > git-bash > powershell 5.1 > cmd.exe), reducing exposure to PS 5.1 edge cases. $LASTEXITCODEfix: Reset to$nullbeforeInvoke-Expressionso the sentinel correctly falls back to$?for PS cmdlets.
Full PS 5.1 defense stack
- Chain operator tokenizer — transforms
&&/||to PS equivalents - Paren depth tracking — delegates
$(cmd1 && cmd2)to git-bash - Tokenize pre-validation — catches ALL remaining parse errors (NEW)
- Timeout — kills hung commands after deadline
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]