| name | screen-companion |
| description | Sutando watches your screen and helps in real time, with the interaction pattern pre-configured per use case. Reads papers with you, pair-debugs, reviews PRs — without you having to narrate intent every session. |
Screen Companion
Sutando is already capable of watching your screen + voice-chatting in real time (vision push-mode from PR #735 + bodhi VoiceSession). The gap this skill closes: Sutando doesn't know what you're trying to do. Every session you have to re-narrate intent ("I'm reading a paper, ask about figures"; "I'm debugging, suggest hypotheses").
This skill ships pre-baked interaction-pattern configs — each one encodes a purpose, the right system-prompt overlay, the right tool subset, and the right vision cadence. Owner activates a config by name; the skill handles the rest.
When to Use
- "Read this paper with me" — paper-reading mode (PDF / arXiv / blog).
- "Debug this with me" — stack-trace + IDE pair-debug.
- "Review this PR with me" — GitHub PR diff walk-through.
- Or any other use-case that has a config in
configs/.
NOT for: silent screen-watching (use the voice agent directly), one-shot questions about a screenshot (use the look_at_screen inline tool).
Architecture
configs/<name>.yaml # the interaction pattern, declarative
↓
scripts/activate.ts # entry: --config <name> [--goal "..."]
↓ loads config, builds:
↓
voice-agent's VoiceSession # gets a system-prompt overlay + tool subset
↓ # + vision_mode + cadence_ms config
Push-mode vision frames flow # at the configured cadence
↓
Owner asks questions in voice # answers grounded in what's on screen
The skill itself is small — most of the value lives in the configs. New use case = drop a YAML into configs/. No code change required.
Configs ship with v0
| Config | Activation | Vision mode | Shape |
|---|
guided-setup | --config guided-setup --goal "..." or "guide me through this" | push, 700ms | proactive + goal-directed (Sutando narrates next steps for a configuration task) |
v0 demo angle: "Sutando helps you set up something you've never done before" (e.g., a Discord dev portal bot config). User shares screen, names the goal at activation, Sutando narrates the next concrete step in real time. More visceral demo than paper-reading; matches a near-universal user pain (everybody fights some dev portal once a quarter).
Coming in follow-up PRs (sketched in screen_companion.md at repo root)
pair-debug — reactive + exploratory mode for stack-trace + IDE pair-debug.
pair-review-code — reactive + exploratory mode for GitHub PR diff walk-through.
These don't ship in this PR — the schema gets validated against guided-setup first; siblings land once the integration shape is locked in.
Adding a new use case
Drop a file at configs/<your-use-case>.yaml. Required fields:
name: your-use-case-name
activation:
voice_phrases: ["phrase one", "phrase two"]
button_label: "Button label"
cli_alias: "your-alias"
vision_mode: push
vision_cadence_ms: 1000
system_prompt_overlay: |
Free-form description of: what the user is doing,
what kinds of questions they'll ask, what NOT to do.
tools_allow:
- tool-name-1
- tool-name-2
goal_template: "Optional one-liner with {goal} placeholder"
After adding, run npx tsx scripts/activate.ts --list to confirm the loader picks it up. No skill rebuild required — configs are loaded fresh on each activation.
Run
Via voice (preferred): say one of the activation phrases for the mode you want. For guided-setup: "help me set this up", "guide me through this", "walk me through this", or "I don't know what to click". Sutando picks up the phrase, asks for the goal if it isn't already clear from context, then activates the mode via the activate_screen_companion tool.
Via CLI (preview the config without activating):
npx tsx skills/screen-companion/scripts/activate.ts --config guided-setup --goal "find the bot token in the Discord developer portal"
This prints the activation card — mode prompt, tools allowed, vision cadence — without entering the mode. Useful for tuning a new config before wiring it to voice.
How activation wires through
The voice agent loads activate_screen_companion via the skill manifest (manifest.json → tools.ts). When Gemini calls it with mode + goal:
- The tool reads
configs/<mode>.yaml and returns a structured payload (instructions, tools_allow, vision_mode, vision_cadence_ms, activation_message).
- Gemini speaks
activation_message, then treats instructions as its operating prompt for the rest of the session.
- If
vision_mode is push and screen-share isn't already streaming, Gemini asks the user to start it. Vision is owner-driven (the user starts screen-share); the tool does not toggle it directly.
Restart the voice-agent for the manifest to pick up newly-added configs / SKILL.md changes (configs themselves are loaded fresh on each activation, so they don't require a restart).
Open questions still being worked
See screen_companion.md at the repo root. Owner is iterating on the model (M1 picked: master skill + configs).
Trust + scope
Configs are non-executable YAML — they only declare the interaction shape. No path to arbitrary code execution from a config alone.
tools_allow is hard-enforced at activation time. When activate_screen_companion is called, the tool invokes session.updateTools() via the callUpdateTools hook in src/vision-tools.ts, replacing the live VoiceSession's tool surface with only the tools named in tools_allow plus the always-retained set (ALWAYS_RETAIN in skills/screen-companion/tools.ts): activate_screen_companion, deactivate_screen_companion, switch_mode, and work (task delegation). The restriction filters the full registered session surface (getFullToolSurface()), not just inlineTools, so non-inline mainAgentTools like work and switch_mode survive the restriction (#1365). Gemini physically cannot call tools outside this set for the rest of the session.
To exit: the user says "exit" / "stop" / "done" and Gemini calls deactivate_screen_companion, which calls callRestoreTools() to restore the full pre-activation tool surface.
Fallback: if the session updater is not registered (e.g. phone-conversation context, tests), callUpdateTools returns false and the enforcement is silently skipped — advisory behavior remains as a safe fallback.
Configs still cannot grant tools the active VoiceSession doesn't already expose — tools_allow is a restriction list, not a grant. The worst case if a config names a tool that doesn't exist in the session is that the tool simply isn't included in the restricted surface.
Privacy + data handling
By default, this skill DOES NOT take screenshots, record video, or persist frames to disk. Frames are sent to Gemini Live for real-time understanding (the API call itself), and discarded — nothing lands on the local filesystem.
What IS persisted by default:
- Text transcript of the spoken conversation, in
<workspace>/data/screen-companion-<sessionId>.jsonl. Same convention as phone-conversation/conversation-server.ts and other voice-surface servers.
- Notes the user explicitly asks Sutando to take — saved to
<workspace>/notes/ via the take_note tool. "Remember this" / "note that" requests during a session land as .md files under notes/ with a screen-companion tag.
What is NOT persisted by default:
- Vision frames (the screenshots themselves) — sent to Gemini Live and discarded.
- Audio recordings — same.
- Video recordings of the session — never.
If the user explicitly asks ("save this screenshot", "record this session"), Sutando will explain what gets saved and where, then either do it or ask for confirmation depending on the action's reversibility. Saving is opt-in per request, not per session.
The transmission boundary: frames cross the wire to Google's Gemini Live API (that's where the understanding happens). Per phone-conversation/SKILL.md precedent, that's documented as the trust boundary — anyone who's comfortable with screen-sharing to a Gemini-Live-backed voice agent is the audience for this skill. If you wouldn't share the screen to a colleague's video call, don't share it here.