← Back to library

Run a local folder agent that asks before every change

u/DraftForsaken39 made a free open-source desktop helper limited to a folder you choose: it can read and create files and asks permission before any edit, with shell commands off by default and local model options. We keep the folder-scoped, ask-first pattern for document chores on sensitive files.

  • OutcomePoint a desktop agent at one folder so it reads documents and drafts new files, with every change and shell command approved first.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditu/DraftForsaken39 on r/ClaudeCowork
View original
Works with
Custom agentClaudeGemini

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You want an agent on local documents
  • Files are sensitive
  • You want approvals on every change

Not for: Jobs that need to run when the app is not open; Binary files like Office docs (text only in this tool)

What do you need, and what do you get?

You need

  • A working folder
  • Model choice

You get

  • Drafted files
  • Approved edits

How does it work, step by step?

  1. Choose a folderLimit the agent to one folder.
  2. Pick a modelUse a local model for files that must not leave the disk.
  3. Keep shell offTurn on shell commands only when needed.
  4. Approve changesReview each proposed edit.
  5. Back upKeep a copy before large edits.

The prompt

Our own prompt, inspired by u/DraftForsaken39 on r/ClaudeCowork and written to work in Custom agent, Claude and Gemini. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt2 variables
Work only in folder {folder}.
Task: {task}.
List the files you will read and the changes you propose. Write nothing until I approve. Do not run shell commands.

Inspired by u/DraftForsaken39 on r/ClaudeCowork: I built an open-source, Cowork-style folder agent with Claude Code. An honest comparison.. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Unsigned builds need care when installing.
  • Local models may be weaker; check outputs.

Our take

The author's honest comparison is useful: it lists what commercial tools do better and what the open option offers. The pattern we keep is scope plus consent, one folder and an approval for every change. Pick a model that can stay local if the files are sensitive, so nothing leaves the disk. Keep shell commands off until you have a specific need and understand the risk. Back up the folder before the first session. Prefer create-new-file over overwrite when experimenting. Review the diff of every approved change, even small ones. Do not point it at your entire home directory. Use a dedicated working folder that mirrors only what the chore needs. Rotate or revoke API keys if you ever switch to a cloud model. Close the app when finished so a background session cannot keep editing. Document which chores you trust it with and which stay manual. Decline bulk replace operations until you have seen several single-file diffs go well.

Where the time goes back: Document chores get done without handing sensitive files to a cloud service.

FAQ

Why not a cloud agent?
Some files should not leave your machine.
Can it run scheduled tasks?
Not this one; it runs while open.

Source and credit

Inspired by u/DraftForsaken39 on r/ClaudeCowork. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
I built an open-source, Cowork-style folder agent with Claude Code. An honest comparison.
Creator
u/DraftForsaken39 on r/ClaudeCowork
Published on
Reddit
Original date
Oct 1, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Distill agent sessions into shared memory every night

Save each completed agent session to its own transcript file, have one analyzer agent per transcript verify, enrich and organize small linked memory files, run an organizer once to merge duplicates and keep an index current, then attach the store to the agent's next session with read access only and repeat the pass nightly on new sessions.

Credit: Anthropic

An afternoon+
IT & SecurityPrompt✓ AI dry run

Plan a least-privilege move of your agent's Google access

Get a written, reviewable plan for moving an agent's Gmail, Calendar and Drive access onto Google's agent interfaces, with the current setup kept as a fallback, read-only grants first, proof that writes fail, and no cutover until a side-by-side run is clean.

Credit: u/rlnerd on r/hermesagent

An afternoon+
IT & SecurityPrompt✓ AI dry run

Question an agent's pull request instead of skimming reviews

Have a fresh agent list every concrete change in an agent-written pull request (schema, scheduled jobs, features, new services, settings, endpoints and removals) without judging it, then press it on each item you cannot explain, give it the product context it lacks, and cut whatever nobody can justify before you merge.

Credit: u/EstablishmentGood414 on r/codex

Minutes
IT & SecurityWorkflow✓ AI dry run

Onboard a coding agent like a junior engineer

Get real work out of an autonomous coding agent on a mature codebase by teaching it your conventions, the way you would onboard a new hire.

Credit: Varun Jindal, Engineer @ Lumos / Andrew Wang, Engineer @ Lumos

An afternoon+
IT & SecurityPrompt✓ AI dry run

Test whether a fake email can trick your inbox agent

Before an agent gets your real inbox, run six staged scam emails against it in a test inbox and get a scorecard showing what it refused, what only the approval step caught, and which rules need fixing.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour