Pingu: the rubber duck that answers back
A desk penguin that listens, watches how you sit, and fixes your failing test when you say "yes". It runs on a laptop and a Raspberry Pi, and no video leaves the desk.
Imperial AI Hackathon 2026 · Track: Voice, Vision & Generative Media
Inspiration
Students who code alone at a desk for hours get the same two problems at once. Their back folds into a question mark, and they stare at the same red test for twenty minutes. A rubber duck is the oldest debugging trick there is: explain the problem out loud and you find the bug. But a duck never notices you've slumped, never asks the one question that unsticks you, and never types the fix. We wanted a duck that does all three, without becoming a webcam that watches you.
What it does
Pingu is a desk companion: a penguin on your desk, on your screen, on your phone and on your wrist.
- Talks. Say "Pingu, ..." and it chimes, listens and answers out loud in a character voice. You can talk over it to interrupt. It only answers to its name, so a "yes" from the next table approves nothing.
- Rubber-ducks. When the typing stops and the test stays red, it asks one short question at a time. Ask for help and it reads the file, runs the test and puts a fix on screen as a diff. Nothing changes until you say "yes": "yes, but why?" gets an answer, not a patch.
- Watches how you sit. MediaPipe pose, calibrated to your upright pose rather than a textbook body, spots slumping, leaning in and side leans, from the front or the side. A slump shows up on screen within half a second. Your wrist gets a tap after 10 seconds, and only if you ignore that does Pingu say it out loud.
- Guards focus and eyes. It counts alt-tabs and time per app, notices drift (a TikTok tab, the phone in your hand), and calls a 20-20-20 eye break every 20 minutes. It also checks that you actually looked away.
- Reads your body. An Apple Watch app streams heart rate, and the phone sends sleep, steps and stand hours from HealthKit (or through two Apple Shortcuts, with no app needed). Little sleep means earlier breaks. A pulse rising while you're stuck makes it more likely to offer help.
- Acts. By voice it opens apps and sites, controls the browser through an extension, reads your screen when you ask, switches a desk lamp, and hands bigger jobs to a coding agent (opencode). It works from an allow-list. Nothing spoken is ever run as a shell command, and anything that deletes, buys or sends waits for your yes.
How we built it
Everything sends small timestamped JSON events to one hub (Python, aiohttp WebSocket/HTTP) on the laptop. The hub sends commands back the same way, so each part was built and tested on its own against a replayed session log.
- Vision (
vision/): MediaPipe pose, hands and face on every frame, on the laptop and on a Raspberry Pi 5 with a second camera at your side. The two cameras are fused into one reading. Posture is read from four signs against a self-correcting personal baseline, using medians over half a second plus hysteresis, so it doesn't flicker. Only the person in the chair counts. - Voice (
voice/): wake word and voice-activity detection run locally, with two switchable voices (Gemini, and ElevenLabs as the character voice) and barge-in so you can interrupt it. - Brain (
brain/): rules turn landmarks, window changes and pulse into a short state note. An interrupt rule decides when it's worth speaking (rarely, and never while you're talking or typing). A strong model is the persona and the tool-caller. Claude Haiku checks single stills to confirm a yawn or a sip. Skills live inbrain/skills/: editor, shell, browser, desktop, devices, screen, opencode and pomodoro. - Generative media (
media/): fal (fal-ai/flux/schnell) draws the postcards and wallpapers from session numbers. ElevenLabs does the narration and interface sound effects. If there's no key or no network, the same picture is drawn locally as an SVG, so the demo survives the venue Wi-Fi. - Screens: a no-build web desktop with six workspaces (desk, posture, postcards, story, focus, health), a PySide6 pixel penguin on the Windows taskbar with 90 moods, a VS Code extension, a browser extension, and SwiftUI iPhone and Apple Watch apps. Every screen was also exported to Figma as editable frames.
- Privacy by design: video never leaves the desk. A single frame goes to a model only when you ask Pingu to look, or to confirm a yawn (rate-limited, never saved). The hub is token-locked when reached through a tunnel, and phones pair with a four-digit code.
Challenges we ran into
- Slouching is hard to see from the front. A slump makes you shorter rather than changing an angle. One sign wasn't enough, so we use four, against your own calibrated pose. Our first night's log was an hour of false slumps from someone sitting on the sofa behind the desk, so now only the person in the chair counts.
- A hall full of people talking. Open-mic voice agents misfire in crowds. The wake word, a 20-second follow-up window and a strict rule for "yes" stop a stranger's voice from approving a code change.
- Being proactive without being annoying. Most triggers end in silence. A spoken line is the last resort.
Accomplishments that we're proud of
- The rubber-duck flow works end to end: stuck → one question at a time → read the file → run the test → diff on screen → spoken "yes" → green test.
- Posture that adapts to the person and the chair, and flips half as often on replayed real logs after the hysteresis changes.
- Generative media that is about your session, not decoration.
- About 850 tests across 44 files covering every subsystem, plus a replay mode that rehearses the whole demo with no hardware.
What we learned
- Rules on the device plus a model only when needed beat streaming video to a model: cheaper, faster and private.
- For a voice agent, deciding when to stay quiet is most of the product. But at the same time, the illusion of eagerness (by immediately signalling when we have detected the wake word) is a really important part of making it feel responsive.
What's next for Pingu
- Proper echo cancellation in a plush body, so you can talk over it in a loud room.
- Posture tuned on more bodies and real side-profile users.
- A real smart-plug and lamp setup, and a longer-term habit view across weeks.
How often it works
- Wake word: 150 of 162 synthesised phrases, with no false wakes on 81 ordinary sentences.
Built with (APIs, models and datasets used, as the rules require)
ElevenLabs (TTS, sound effects[, STT]) · OpenAI GPT (gpt-6-luna, via
the Kleis OAuth proxy) · Anthropic Claude Haiku (vision checks) · Google Gemini (voice, default
speech in/out) · MediaPipe Pose, Hands and Face · sherpa-onnx (Parakeet-TDT) / whisper.cpp ·
webrtcvad · opencode · OpenCV · aiohttp · PySide6 · three.js · SwiftUI · HealthKit · WatchKit ·
Raspberry Pi 5 · Python · JavaScript · Swift · Figma screens for all screens as they were designed
The pixel penguin sprite and the emotions (90 sprites) made in figma
https://www.youtube.com/watch?v=8plYUlzn-HQ https://www.youtube.com/watch?v=RVuO7NXdIr8 https://www.figma.com/design/8TRZPqqurdMOOqV7Mb5fHA/Pingu
Built With
- claude
- elevenlabs
- figma
- raspberry-pi