{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "zfinix-aster--set-agent-permissions-per-path",
 "repo": "Zfinix/aster",
 "repo_url": "https://github.com/Zfinix/aster",
 "repo_slug": "zfinix-aster",
 "title": "Limit what the agent may edit or run, per path and command",
 "page_title": "How to limit what the agent may edit or run, per path and command with Aster",
 "summary": "Pick one of Aster's permission modes and add allow, ask and deny rules in Aster.yaml, so tests run freely, migrations need approval and publishing is blocked.",
 "who": "A developer or team lead who wants agent speed on safe work but a hard stop on risky files and commands.",
 "problem": "Agents either ask about every action, which is slow, or run everything, which is how a migration or publish happens by accident.",
 "outcome": "A shared rule set that chat, review and fix all follow: trusted commands run, sensitive paths ask first and dangerous commands never run.",
 "steps": [
  "Choose a mode: plan never edits, manual asks before everything, auto pauses on risky commands like sudo, rm and curl, edit is the default",
  "Switch mode mid-chat with shift+tab, or for one run with --permission-mode",
  "In Aster.yaml add permissions with allow rules such as Bash(cargo test:*) and Edit(src/**)",
  "Add ask rules such as Edit(migrations/**) for paths that need your approval",
  "Add deny rules such as Bash(npm publish:*) for commands that must never run",
  "Run a task that touches a migration and confirm Aster pauses to ask"
 ],
 "agent_prompt": "Write an aster.yaml permissions block for this repo: allow running <test command> and editing <source folder>, ask before editing <migrations or infra folder>, and deny <publish or deploy commands>. Explain which mode you recommend and why.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The yolo mode removes all rules and the sandbox; avoid it outside throwaway environments.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "An OpenAI-compatible provider key or a local model",
  "Rust toolchain to build from source"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/zfinix-aster/set-agent-permissions-per-path/",
 "md": "https://dedupedai.com/use-cases/zfinix-aster/set-agent-permissions-per-path/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/zfinix-aster--set-agent-permissions-per-path.json",
 "api_version": "v1"
}
