Agent write path resolver refuse writes whose
AI agents sometimes write files where they shouldn't: outside the project, into .git, .env or private keys.
After payment you get an email with your download link within a few minutes. The link is valid for 7 days.
Digital goods. If a tool doesn't work as described, we fix it or refund you — see Terms.
Key features
- Checks a candidate write path for ../ traversal, absolute-path escapes, null bytes and symlink escapes
- Blocks .git, .env*, keys/credentials, shell profiles and dependency folders by default; add --deny-hidden, --allowed-extensions, --deny-pattern
- Dry-run by default; --enact writes only when the path is allowed; --json and --batch-file for pipelines
requirements.txt — list of dependencies
What's in the ZIP
- Python source, README and requirements
Why PyForge: Ready-made tools with full source code.
More details
AI agents sometimes write files where they shouldn't: outside the project, into .git, .env or private keys. - Checks a candidate write path for ../ traversal, absolute-path escapes, null bytes and symlink escapes - Blocks .git, .env*, keys/credentials, shell profiles and dependency folders by default; add --deny-hidden, --allowed-extensions, --deny-pattern - Dry-run by default; --enact writes only when the path is allowed; --json and --batch-file for pipelines Example: `python3 agent_write_path_resolver_refu.py -w ./project -p src/app.py --allowed-extensions .py,.md --json` Runs with: Python 3, zero dependencies.
Quick Start
Runs on Python 3.9 or newer. Check requirements.txt in the ZIP and install what it lists with pip install -r requirements.txt.
1 — Install the dependencies
pip install -r requirements.txt2 — Run it
How agents & programs use it: Install its requirements in a virtual environment; scripts and AI agents can then run it as a subprocess.
Why developers buy from PyForge
- Save hours: ready-made, tested tools. Skip writing, debugging and maintaining it yourself.
- Ready in minutes: one file, drop it in your project and run it.
- Mostly zero-dependency: no pip install chains, no supply-chain risk.
- Full source code: readable, auditable, yours to modify.
- Runs locally and offline: no account, no API key, no data leaves your machine.
- Pay once, own it: no subscription.
- Tested before release: every tool is checked before it goes on sale.
All-Access Pass
Get every PyForge tool with the All-Access Pass
44 tools today plus every future release, lifetime commercial license, one payment of $99.
This tool: $49 · All 44 tools: $99
See the All-Access Pass