# Safe Local Codebase Refactoring & Patch API via MCP (`https://toolsenabled.ai/agents/legacy-codebase-refactoring-patch-api/`)

Pack safe local UTF-8 subfolders (`sourceDir` / `--pack-project`), delegate isolated Linux refactoring and test execution to TESI `Work`, and extract SHA-256 verified files (`extractFilesTo` / `--extract-files`) into a clean staging folder.

- **Offline secret & binary guard:** Refuses `.env*`, private keys, `key.json`, binaries, symlinks, and bearer tokens before network transmission.
- **Built-in MCP prompt:** `patch-local-codebase` in [`tesi-agent-mcp.py`](https://toolsenabled.ai/agents/tesi-agent-mcp.py.txt)
- **Fund a $10 USD Prepaid Key:** `https://toolsenabled.ai/agents/?agentPack=1000#agent-funding`
