{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "muzeanisichael-minimal-local-agent--embed-read-only-agent-in-python",
 "repo": "MuzeAnisichael/minimal-local-agent",
 "repo_url": "https://github.com/MuzeAnisichael/minimal-local-agent",
 "repo_slug": "muzeanisichael-minimal-local-agent",
 "title": "Embed a read-only agent in your own Python app",
 "page_title": "How to embed a read-only agent in your own Python app with Minimal Local Agent",
 "summary": "Import AgentRuntime, set write_policy to deny, and run tasks that return a response plus a receipt hash.",
 "who": "A backend developer adding an agent step to an internal tool who needs a tamper-evident record.",
 "problem": "Most agent frameworks are too large to embed and audit.",
 "outcome": "A few lines of Python that run the agent and return a verifiable receipt.",
 "steps": [
  "Install the package into your project",
  "Load settings with Settings.load(\"agent.toml\") and replace write_policy with deny",
  "Call runtime.run with your task",
  "Store outcome.response and outcome.receipt_hash"
 ],
 "agent_prompt": "Using minimal_local_agent's AgentRuntime with write_policy=\"deny\", run \"List the workspace files\" against <workspace> and print the response and receipt_hash. Verify the run made no writes.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Memory, planning and delegation exist only in the unreleased v1.1.0; the published release is v1.0.0.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.11",
  "Ollama (README example pulls qwen3.5:9b) or a Chat Completions-compatible API"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/muzeanisichael-minimal-local-agent/embed-read-only-agent-in-python/",
 "md": "https://dedupedai.com/use-cases/muzeanisichael-minimal-local-agent/embed-read-only-agent-in-python/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/muzeanisichael-minimal-local-agent--embed-read-only-agent-in-python.json",
 "api_version": "v1"
}
