{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "banmu123-brewping--drive-agent-session-from-terminal-with-cli",
 "repo": "banmu123/BrewPing",
 "repo_url": "https://github.com/banmu123/BrewPing",
 "repo_slug": "banmu123-brewping",
 "title": "Drive an agent session from the terminal with the CLI",
 "page_title": "How to drive an agent session from the terminal with the CLI with Brew Ping",
 "summary": "Start, message, check, and stop an OpenCode session from a shell using the Brew Ping CLI.",
 "who": "A developer who wants to script or automate agent sessions from a terminal on the same machine.",
 "problem": "Starting and steering an agent session from scripts requires a command-line interface rather than the phone app.",
 "outcome": "You run a session from the shell, send messages, check status, attach to it, and stop it.",
 "steps": [
  "Install OpenCode with `curl -fsSL https://get.opencode.ai | sh`.",
  "Clone the repository with `git clone https://github.com/banmu123/BrewPing.git` and enter it with `cd BrewPing`.",
  "Start a session with `swift run BrewPing start`, then send an instruction with `swift run BrewPing send \"Fix the failing test\"`.",
  "Check progress with `swift run BrewPing status` and attach with `swift run BrewPing attach` (Ctrl+D to detach).",
  "Stop the session with `swift run BrewPing stop`."
 ],
 "agent_prompt": "Using the repo banmu123/BrewPing, run `swift run BrewPing start`, then `swift run BrewPing send \"<instruction>\"`, then `swift run BrewPing status`. Expected output: a running session status after the message is sent. Verify that `swift run BrewPing stop` ends the session.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The CLI start example opens an OpenCode session, so OpenCode must be installed before the commands will run.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "swift",
 "requirements": [
  "A Mac or Windows computer with BrewPing Desktop installed (macOS 13.0+ or Windows 10/11 with WebView2)",
  "At least one CLI coding agent installed on that computer, such as Claude Code, Codex CLI, OpenCode, or pi",
  "An iPhone (iOS 17.0+) with the BrewPing app from the App Store, or an Android build from the repository",
  "Phone and computer on the same local network, since cross-network access is not supported"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The OpenCode install step pipes a remote script from get.opencode.ai directly into sh, so review it before running if you need to."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/banmu123-brewping/drive-agent-session-from-terminal-with-cli/",
 "md": "https://dedupedai.com/use-cases/banmu123-brewping/drive-agent-session-from-terminal-with-cli/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/banmu123-brewping--drive-agent-session-from-terminal-with-cli.json",
 "api_version": "v1"
}
