{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "bigfish1913-pi-rust--build-plugin-tool-for-every-session",
 "repo": "bigfish1913/pi-rust",
 "repo_url": "https://github.com/bigfish1913/pi-rust",
 "repo_slug": "bigfish1913-pi-rust",
 "title": "Build a plugin tool that loads into every rpi session",
 "page_title": "How to build a plugin tool that loads into every rpi session with Pi Rust",
 "summary": "Write a cdylib plugin with rpi-plugin-sdk so the global rpi binary loads your tool.",
 "who": "A developer who wants a custom tool or provider available in every rpi session without forking the CLI.",
 "problem": "Adding a tool to a coding agent usually means changing its core code and maintaining a separate fork.",
 "outcome": "A compiled plugin library that the global rpi loads alongside the built-in tools.",
 "steps": [
  "Run `git clone https://github.com/bigfish1913/pi-rust.git`",
  "Open examples/plugin-stub and read how it uses rpi-plugin-sdk",
  "Run `cargo build -p plugin-stub` from the repository root to build the cdylib (inferred, check the README)",
  "Place the built library where the rpi plugin loader expects it, following docs/agent/project-structure.md"
 ],
 "agent_prompt": "In the bigfish1913/pi-rust repository, copy examples/plugin-stub into <new-plugin-folder>, implement one tool in it, and build it as a cdylib. Expected output: a compiled shared library that rpi can load. Verify that `rpi --version` still runs after the plugin is placed in the loader path.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "90 minutes",
 "basis": "readme",
 "caveat": "The README does not give the plugin install path or build command, so confirm them in examples/plugin-stub and docs/agent/project-structure.md before copying files.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Rust 1.78 or later, for installing from crates.io",
  "An ANTHROPIC_API_KEY or OPENAI_API_KEY, or a ~/.rpi/agent/models.json file, for live model calls",
  "Git, to clone the repository for the offline examples"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bigfish1913-pi-rust/build-plugin-tool-for-every-session/",
 "md": "https://dedupedai.com/use-cases/bigfish1913-pi-rust/build-plugin-tool-for-every-session/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/bigfish1913-pi-rust--build-plugin-tool-for-every-session.json",
 "api_version": "v1"
}
