Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
fix: update terminology from "agent" to "copilot" in documentation for consistency
Durganshu Mishracfb5b38321ad
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 3cb3a66..f84c50d 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -2,7 +2,7 @@Thanks for your interest in contributing to Gotcha! We welcome contributions from the community. 🙏-Gotcha is an on-device Android agent that drives real devices through the accessibility service, so contributions carry a little more weight than usual — please read the [Safety-sensitive changes](#safety-sensitive-changes) section before touching the tool layer.+Gotcha is an on-device Android copilot that drives real devices through the accessibility service, so contributions carry a little more weight than usual — please read the [Safety-sensitive changes](#safety-sensitive-changes) section before touching the tool layer.## Quick Start@@ -73,14 +73,14 @@ If you want the full CI matrix on a branch, trigger it manually from **Actions- **Target the `development` branch.**- Link the related issue (e.g. `Closes #123`).-- Describe what changed and how you verified it. Screenshots or a screen recording help a lot for UI and agent-behaviour changes.+- Describe what changed and how you verified it. Screenshots or a screen recording help a lot for UI and copilot-behaviour changes.## Adding or changing a toolTools are the app's feature surface, and they're tracked by a generated manifest.1. Implement the tool under [`app/src/main/java/com/gotcha/tools/`](app/src/main/java/com/gotcha/tools/).-2. Register it in the capability catalog with the correct **capability tier** and **agent mode** — read-only tools must be available to Monitor; anything that writes, sends, deletes, or automates the screen is Operator-only.+2. Register it in the capability catalog with the correct **capability tier** and **copilot mode** — read-only tools must be available to Monitor; anything that writes, sends, deletes, or automates the screen is Operator-only.3. Regenerate the coverage table:```bash@@ -96,7 +96,7 @@ Tools are the app's feature surface, and they're tracked by a generated manifestExtra scrutiny applies to anything that:- adds a tool at **Tier 2+** (calls, SMS, calendar, location, camera, screen automation, device admin, root),-- widens what the **Monitor** agent can do,+- widens what the **Monitor** copilot can do,- changes the **confirmation gate**, the command **deny-list**, or the **audit log**,- touches credential storage or how data leaves the device.@@ -114,7 +114,7 @@ These need an explicit design discussion in the issue first. Changes that weaken```Gotcha/├── app/src/main/java/com/gotcha/-│ ├── agent/ # Agent engine, chat view model, skills+│ ├── agent/ # Copilot engine, chat view model, skills│ ├── tools/ # The tool catalog — one file per capability area│ ├── llm/ # OpenAI-compatible client, tool-call plumbing│ ├── service/ # Accessibility service, assistive ball, foreground services@@ -130,7 +130,7 @@ Gotcha/## Help & documentation-- **Docs**: [samosa-ai.com/gotcha/docs](https://samosa-ai.com/gotcha/docs) — [Architecture](https://samosa-ai.com/gotcha/docs/architecture), [Agent Modes](https://samosa-ai.com/gotcha/docs/agent-modes), [Tool Catalog](https://samosa-ai.com/gotcha/docs/tool-catalog).+- **Docs**: [samosa-ai.com/gotcha/docs](https://samosa-ai.com/gotcha/docs) — [Architecture](https://samosa-ai.com/gotcha/docs/architecture), [Copilot Modes](https://samosa-ai.com/gotcha/docs/agent-modes), [Tool Catalog](https://samosa-ai.com/gotcha/docs/tool-catalog).- **Get help**: [open an issue](https://github.com/samosa-ai-com/Gotcha/issues) describing what you're stuck on.- **Security bugs**: don't open an issue — see [`SECURITY.md`](SECURITY.md).diff --git a/README.md b/README.mdindex 558ec19..3ad1fba 100644--- a/README.md+++ b/README.md@@ -38,8 +38,8 @@ The app opens on Settings — fill in **API key**, **Base URL** (including `/v1/## 🌟 Highlights* **🧰 100+ device-control tools** — calls, SMS, contacts, calendar, alarms, files, terminal, location, apps, clipboard, camera, screen automation, notifications, device admin, and root. → [Tool Catalog](https://samosa-ai.com/gotcha/docs/tool-catalog)-* **🎭 Two agent modes** — read-only **Monitor** (*inspect & plan*, 30 tools) and full-access **Operator** (*execute & automate*). Switch any time, even mid-conversation. → [Agent Modes](https://samosa-ai.com/gotcha/docs/agent-modes)-* **🔮 The Assistive Ball** — a floating bubble that rides over every app, hosting push-to-talk voice calls with the full agent. → [Assistive Ball](https://samosa-ai.com/gotcha/docs/assistive-ball)+* **🎭 Two copilot modes** — read-only **Monitor** (*inspect & plan*, 30 tools) and full-access **Operator** (*execute & automate*). Switch any time, even mid-conversation. → [Copilot Modes](https://samosa-ai.com/gotcha/docs/agent-modes)+* **🔮 The Assistive Ball** — a floating bubble that rides over every app, hosting push-to-talk voice calls with the full copilot. → [Assistive Ball](https://samosa-ai.com/gotcha/docs/assistive-ball)* **🔍 Screen Lens & Companion** — circle anything on screen to copy, translate, or ask about it; get one-tap offers when an address, price, or date appears. Text extraction runs on-device.* **🛡️ Safety by design** — capability tiers, up-front permissions, a hard confirmation gate on sensitive actions, a command deny-list, and an append-only audit log. → [Safety & Permissions](https://samosa-ai.com/gotcha/docs/safety-permissions)* **🏠 Local & cloud AI** — any OpenAI-compatible `/chat/completions` endpoint with tool calling, or Samosa AI for free starter credits.@@ -49,9 +49,9 @@ The app opens on Settings — fill in **API key**, **Base URL** (including `/v1/## 📚 Documentation* 🚀 [**Getting Started**](https://samosa-ai.com/gotcha/docs/getting-started) — install, configure a model, grant permissions.-* 🎭 [**Agent Modes**](https://samosa-ai.com/gotcha/docs/agent-modes) — Monitor vs Operator, and what each can touch.+* 🎭 [**Copilot Modes**](https://samosa-ai.com/gotcha/docs/agent-modes) — Monitor vs Operator, and what each can touch.* 🧰 [**Tool Catalog**](https://samosa-ai.com/gotcha/docs/tool-catalog) — every tool, grouped by capability.-* 🏗️ [**Architecture**](https://samosa-ai.com/gotcha/docs/architecture) — how the agent loop, tools, and services fit together.+* 🏗️ [**Architecture**](https://samosa-ai.com/gotcha/docs/architecture) — how the copilot loop, tools, and services fit together.* 🛡️ [**Safety & Permissions**](https://samosa-ai.com/gotcha/docs/safety-permissions) — capability tiers, confirmation gates, audit log.* ❓ [**FAQ & Known Limitations**](https://samosa-ai.com/gotcha/docs/faq) — backend compatibility and rough edges.* ✅ [**Feature Test Coverage**](docs/FEATURE_TEST_COVERAGE.md) — every tool and how it's verified.diff --git a/SECURITY.md b/SECURITY.mdindex c4ccf4f..46ba1af 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -21,7 +21,7 @@ We take security seriously. If you discover a security vulnerability in Gotcha,### What to include- Description of the vulnerability-- Steps to reproduce — Android version, device or emulator, app version, and agent mode (Monitor / Operator) if relevant+- Steps to reproduce — Android version, device or emulator, app version, and copilot mode (Monitor / Operator) if relevant- Potential impact- Suggested fix (if any)@@ -39,14 +39,14 @@ We take security seriously. If you discover a security vulnerability in Gotcha,## Security Considerations-Gotcha is an autonomous agent with deep device access, so its threat model is unusual for an Android app. The areas below are where we most want your eyes.+Gotcha is an autonomous copilot with deep device access, so its threat model is unusual for an Android app. The areas below are where we most want your eyes.### On-device by design- **Everything runs in one app on your phone** — no companion PC, no remote server, no ADB tether.- **Credentials** (LLM API keys, connector OAuth tokens) are stored in `EncryptedSharedPreferences`, never logged, and never synced off-device.- **Chats, action logs, and caches stay local.**-- **What does leave the device**: requests you make are sent to whichever LLM endpoint you configure — including screen contents when the agent reads the screen, and screenshots when using a vision model. Choose your provider accordingly, or run a local model.+- **What does leave the device**: requests you make are sent to whichever LLM endpoint you configure — including screen contents when the copilot reads the screen, and screenshots when using a vision model. Choose your provider accordingly, or run a local model.### Safety boundaries@@ -54,14 +54,14 @@ These are the controls a vulnerability report would most usefully target:| Boundary | What it enforces ||---|---|-| **Agent modes** | Monitor is read-only (~30 tools); Operator unlocks the full catalog. A Monitor-mode escape is a security bug. |+| **Copilot modes** | Monitor is read-only (~30 tools); Operator unlocks the full catalog. A Monitor-mode escape is a security bug. || **Capability tiers** | Tier 0–1 everyday, Tier 2 personal (calls, SMS, calendar, location, camera), Tier 3 automation (screen touch, notifications, device admin), Tier 4 privileged (root — fails closed on unrooted devices). || **Confirmation gate** | Sensitive actions pop an explicit Allow/Deny prompt before running. || **Command deny-list** | Blocks dangerous shell invocations in the terminal tool. || **Audit log** | Append-only record of executed actions. || **Fixed tool catalog** | Tools are defined in code — the model cannot invent a new tool at runtime. The tool loop is bounded (300 rounds per message by default) with an anti-loop guard. |-**Prompt injection is in scope.** Gotcha reads screen content, notifications, files, and email — all of which can carry attacker-controlled text. A report showing that injected content can drive the agent past a confirmation gate, a mode restriction, or a capability tier is exactly the kind of finding we want.+**Prompt injection is in scope.** Gotcha reads screen content, notifications, files, and email — all of which can carry attacker-controlled text. A report showing that injected content can drive the copilot past a confirmation gate, a mode restriction, or a capability tier is exactly the kind of finding we want.### Best practices for users