{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "bigfish1913-pi-rust--run-terminal-coding-agent-one-shot",
 "repo": "bigfish1913/pi-rust",
 "repo_url": "https://github.com/bigfish1913/pi-rust",
 "repo_slug": "bigfish1913-pi-rust",
 "title": "Run a one-shot coding task from the terminal",
 "page_title": "How to run a one-shot coding task from the terminal with Pi Rust",
 "summary": "Install the rpi CLI and send it a single task from the shell with a model API key.",
 "who": "A developer who wants a coding agent in the terminal to answer questions about a project or make a small change.",
 "problem": "Setting up an agent usually means wiring up SDKs or web tools before any work gets done.",
 "outcome": "A one-line command returns the agent's answer for the task in the terminal.",
 "steps": [
  "Run `cargo install rpi-cli`",
  "Run `rpi --version` to confirm the install",
  "Run `export ANTHROPIC_API_KEY=...` or `export OPENAI_API_KEY=...` with your own key (inferred, check the README)",
  "Run `rpi -p \"summarize the README\"` from the project directory"
 ],
 "agent_prompt": "Install rpi-cli from the bigfish1913/pi-rust repository using cargo, then run `rpi -p \"<task>\"` in <project-directory> with the API key set. Expected output: a text answer to the task. Verify that `rpi --version` prints a version before running the task.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README's interactive TUI and sessions need a configured provider, so the first run will not work without a key or a models.json file.",
 "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": [
  {
   "tag": "credentials",
   "notice": "The agent needs a model API key in your shell environment, so keep the key out of shared scripts and logs."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bigfish1913-pi-rust/run-terminal-coding-agent-one-shot/",
 "md": "https://dedupedai.com/use-cases/bigfish1913-pi-rust/run-terminal-coding-agent-one-shot/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--run-terminal-coding-agent-one-shot.json",
 "api_version": "v1"
}
