Inspiration

My own morning starts with a daily note: four time blocks and a short progress tracker. Filling it in is a small negotiation with myself. Some things are fixed, one thing is urgent, and the rest depends on how much energy I have. I wanted that negotiation to happen with my hands, in my own room, with an agent that does the boring part but never overrules me.

What it does

Pin & Plan is a seated, hands-only morning planner in passthrough.

  • Pin. Six task tokens sit on a tray in front of you. Pinch one, drop it on a time block, and it is pinned. That is your decision.
  • Hand over. Pinch the agent orb. The agent places every task you did not pin, one at a time, and each move shows a short reason such as "Fixed time", "Urgent → first" or "09:00–12:00 full → next".
  • Take back. Move any task the agent placed. It becomes your pin, and the agent re-plans only what has to change.
  • Finish. "Day planned", then reset for the next morning.

The time blocks (09:00–12:00, 13:00–18:00, 19:00–21:00, 22:00) and the tasks come from my real daily note template.

How we built it

  • Immersive Web SDK (@iwsdk/core 1.1.0) & WebXR: Configured for passthrough AR (world.xr.mode: "ar"), native hand tracking (handTracking: true), and pinch-to-grab (grabbing: { useHandPinchForGrab: true }) with locomotion disabled for a seated, ergonomic 60 cm reach envelope anchored to the user's head pose at session start.
  • Pure, deterministic planner (app/src/planner/): Implemented plan(tasks, blocks, pins) and diff(shown, next) in pure TypeScript with zero Three.js, IWSDK, or DOM imports. The engine runs four deterministic passes in fixed order—user pins ("Your choice"), fixed-time tasks ("Fixed time"), urgent tasks ("Urgent -> first"), and energy-matched tasks ("High energy -> morning", "Medium energy -> afternoon", "Low energy -> night"), overflowing gracefully when a block is full ("<block> full -> next"). It is verified by 34 Vitest unit tests across seven specification scenarios (P1–P7).
  • Diff-driven ECS scene & staged agentic feedback (app/src/scene/, app/src/feedback/): PlannerSystem never makes scheduling decisions in the view layer. Instead, it diffs the current board against plan(), applies immediate snaps or silent slot slides for user pins, and queues staged agent moves (0.5 s apart, 0.4 s cubic ease-out) accompanied by a pooled 2.0 s reason chip (ChipPool) so the user can follow every step.
  • Zero external asset downloads: Every mesh uses procedural Three.js geometry (BoxGeometry, PlaneGeometry, SphereGeometry, CircleGeometry) with unlit MeshBasicMaterial (staying under ~28 draw calls with no shadows or post-processing). Labels, energy colors, clock/! badges, and slot outlines are rendered once onto 2D <canvas> textures (CanvasTexture), and all five interaction sound cues (grab tick, slot snap, refused-drop low tone, agent rising blip, and completion triad chord) are synthesized live via the browser's AudioContext (WebAudio API).
  • Spec-driven verification: Built against 24 Given/When/Then acceptance criteria (AC-1 to AC-24) using Spec Kit structure and a live read-only window.__planner state inspection hook ({ phase, pins, placements }).

Challenges we ran into

  • Enabling true hands-only pinch grabbing in IWSDK: Out of the box, hands-only sessions could not grab tokens until world.features.grabbing was explicitly configured with { "useHandPinchForGrab": true } so hand pinch select events route to the grab system's squeeze pointer.
  • Hand grip-space offset vs. pinch point: During emulator testing, pinching the middle token in the tray picked up its neighbor instead. Inspecting @iwsdk/xr-input's GrabPointer revealed that proximity grab distance is measured from the hand's gripSpace (~6.6 cm offset from the thumb-index pinch contact point: ~5 cm outward, ~3 cm down, ~3 cm toward the user). With tokens initially spaced 10 cm apart and block slots 5 cm apart, the neighbor was physically closer to the grip origin than the aimed token. We solved this with Layout v2: widening the tray to a flat 3×2 meter grid (x = -0.16, 0, +0.16 m; forward = 0.42 m, 0.30 m) and expanding block panels (0.19 × 0.27 m with ±0.06 m vertical slot offsets and a 0.16 m drop radius) so every grabbable center sits at least 12 cm apart while remaining inside the 60 cm seated reach envelope.
  • Reliable near-pinch and ray-pinch on the orb and reset controls: When a user reaches directly into the agent orb to pinch it, a raycast can start inside the sphere and miss. Attaching OneHandGrabbable would set pointerEventsType = { deny: 'ray' }, breaking ray pinches. Instead, we combined RayInteractable (Pressed state tag) with a near-pinch distance check on the hand's indexTipSpaces and raySpaces within 6 cm of the control center.
  • Making a deterministic agent feel alive and trustworthy: If an agent places all six tasks instantaneously, the user cannot see what changed or why. Staging moves 0.5 s apart, showing the exact rule string that produced each placement on a floating reason chip, and only moving the affected unpinned tasks during a take-back re-plan turned a pure function into an intelligible spatial collaborator.

Accomplishments that we're proud of

  • A complete "delegate → inspect → correct → re-plan" spatial agent loop: The user can pin what matters, hand the rest to the agent, and grab any agent-placed token to override it—watching the agent re-plan around their choice without ever touching a previous pin.
  • 100% honest explainability: Because the reason chip text comes directly from the deterministic pass in plan() that placed the token, the explanation shown in AR is guaranteed to be the exact rule that made the decision.
  • Instant cold start & ultra-light rendering budget: Zero glTF models, image files, or audio files are fetched by the app's content, keeping the entire experience around ~26–28 draw calls with zero per-frame heap allocations in update().
  • 34 passing unit tests & rigorous separation of concerns: The entire scheduling and diffing core is pure, immutable TypeScript verified across all seven edge cases (including full-block cascading bumps and wrap-around overflow).

What we learned

  • Spatial agents need legibility and interruptibility more than complexity: In passthrough AR, an agent does not need an LLM or cloud round-trip to feel helpful. Pacing its actions at human reading speed (0.5 s cadence), surfacing a single crisp reason per move, and treating human hands as hard constraints creates immediate trust.
  • Spatial ergonomics must account for WebXR input joint origins: Designing for bare hands requires testing against actual WebXR gripSpace, targetRaySpace, and index-finger-tip offsets rather than assuming the grab origin is the visual fingertip contact point.
  • One finished mechanic beats ten partial menus: Cutting keyboards, settings panels, and multi-page menus kept the entire morning planning loop under 60 seconds from Enter AR to "Day planned".

What's next for Pin & Plan

  • Two-way sync with Markdown daily notes: Importing the day's tasks from a local Obsidian/Markdown Daily Note and exporting the finalized time-block schedule and Progress Tracker checklist back on "Day planned".
  • On-device Quest 3/3S hardware tuning: Validating 60+ fps frame timing, passthrough contrast, and physical pinch thresholds on retail Quest 3 and Quest 3S headsets.
  • Optional voice capture for quick task entry: Letting users speak a custom task label while pinching an empty tray slot before handing the board over to the planner.

Built With

Share this project:

Updates

posted an update —

v2.0 Major Update — Sunlit Architectural Redesign, Interactive Preview & 1080p Hands-Only Demo

Since our initial submission, Pin & Plan has gone through a ground-up architectural and visual overhaul focused on real Meta Quest 3 / 3S passthrough AR clarity, tactile hand ergonomics, and effortless cross-device testing for judges and visitors.

What's New

  1. Architectural Sunlit Spatial Design System (src/design/)

    • Replaced prototype surfaces with a warm, daylight-friendly spatial palette designed to sit naturally inside a real sunlit room in passthrough AR: smoked-stone frosted glass time blocks, matte ceramic task tiles (terracotta, botanical sage, mineral slate, warm charcoal), brushed-brass pin emblems, and warm cream-paper 3D XAI reason chips.
    • Rebuilt the Agent Orb as a procedural GLSL Frosted Pearl-Opal shader with a crisp concentric halo that communicates all four states (idle → ready to hand over → scheduling → settled sage).
    • Enabled mipmapped canvas textures (LinearMipmapLinearFilter + anisotropy = 4) so small labels and reason chips stay razor-sharp in headset stereo views.
  2. Live Hover Affordances & Tactile Spatial Motion (src/design/motion.ts)

    • Grabbing a task now highlights valid time blocks in warm champagne and signals full blocks (already holding 2 user pins) in clay-crimson before you release.
    • Added allocation-free parabolic flight arcs, spring-settle animations, and refusal shakes — covered by 40 automated Vitest unit tests (34 pure deterministic planner tests + 6 spatial motion curve tests).
  3. Instant Interactive Desktop & Mobile Preview + Native AR Setup Guide

    • Previously, opening the hosted link outside a Quest headset left visitors unable to interact or see why Enter AR did nothing.
    • Now, non-XR desktop and mobile browsers launch directly into an interactive pointer preview (src/scene/desktop-pointer.ts) over a procedural sunlit room backdrop (src/scene/room-backdrop.ts, zero external downloads, automatically hidden the instant WebXR starts), complete with responsive FOV-aware camera framing and a native top-layer popover AR Setup Guide for Quest 3 and Chrome IWER.
  4. End-to-End Meta Quest 3 Hands-Only Verification & Performance

    • Verified the complete Pin → Hand Over → Take Back → Reset hands-only loop in Meta Quest 3 passthrough (immersive-ar, bare hand tracking, zero controllers) and fixed an XR CSS edge case so 2D HUD overlays stay 100% hidden in AR.
    • Verified runtime stereo budget: 40 total stereo draw calls (~20 per eye), 0 shadow casters, 0 external network asset downloads, and 0 per-frame allocations in the ECS update loop.
  5. New 1080p Full HD Demo Video & 16:9 Gallery

    • Recorded a brand-new 1080p walkthrough directly from the updated hands-only passthrough AR loop with synchronized acoustic cues and refreshed all gallery screenshots.

Updated Links

posted an update —

v2.0 Major Update — Sunlit Architectural Redesign,

Interactive Preview & 1080p Hands-Only Demo

Since our initial submission, **Pin & Plan** has gone through
a ground-up architectural and visual overhaul focused on real
**Meta Quest 3 / 3S passthrough AR** clarity, tactile hand
ergonomics, and effortless cross-device testing for judges and
visitors.

### What's New

1. **Architectural Sunlit Spatial Design System
(`src/design/`)**
   - Replaced prototype surfaces with a warm,
   daylight-friendly spatial palette designed to sit naturally
   inside a real sunlit room in passthrough AR: **smoked-stone
   frosted glass time blocks**, **matte ceramic task tiles**
   (terracotta, botanical sage, mineral slate, warm charcoal),
   **brushed-brass pin emblems**, and **warm cream-paper 3D
   XAI reason chips**.
   - Rebuilt the **Agent Orb** as a procedural GLSL **Frosted
   Pearl-Opal shader** with a crisp concentric halo that
   communicates all four states (*idle → ready to hand over →
   scheduling → settled sage*).
   - Enabled mipmapped canvas textures
   (`LinearMipmapLinearFilter` + `anisotropy = 4`) so small
   labels and reason chips stay razor-sharp in headset stereo
   views.

2. **Live Hover Affordances & Tactile Spatial Motion
(`src/design/motion.ts`)**
   - Grabbing a task now highlights valid time blocks in
   **warm champagne** and signals full blocks (already holding
   2 user pins) in **clay-crimson** before you release.
   - Added allocation-free parabolic flight arcs,
   spring-settle animations, and refusal shakes — covered by
   **40 automated Vitest unit tests** (34 pure deterministic
   planner tests + 6 spatial motion curve tests).

3. **Instant Interactive Desktop & Mobile Preview + Native AR
Setup Guide**
   - Previously, opening the hosted link outside a Quest
   headset left visitors unable to interact or see why `Enter
   AR` did nothing.
   - Now, non-XR desktop and mobile browsers launch directly
   into an **interactive pointer preview**
   (`src/scene/desktop-pointer.ts`) over a procedural sunlit
   room backdrop (`src/scene/room-backdrop.ts`, zero external
   downloads, automatically hidden the instant WebXR starts),
   complete with responsive FOV-aware camera framing and a
   native top-layer **`popover` AR Setup Guide** for Quest 3
   and Chrome IWER.

4. **End-to-End Meta Quest 3 Hands-Only Verification &
Performance**
   - Verified the complete **`Pin → Hand Over → Take Back →
   Reset`** hands-only loop in Meta Quest 3 passthrough
   (`immersive-ar`, bare hand tracking, zero controllers) and
   fixed an XR CSS edge case so 2D HUD overlays stay 100%
   hidden in AR.
   - Verified runtime stereo budget: **40 total stereo draw
   calls (~20 per eye)**, **0 shadow casters**, **0 external
   network asset downloads**, and **0 per-frame allocations**
   in the ECS update loop.

5. **New 1080p Full HD Demo Video & 16:9 Gallery**
   - Recorded a brand-new 1080p walkthrough directly from the
   updated hands-only passthrough AR loop with synchronized
   acoustic cues and refreshed all gallery screenshots.

---

### Updated Links
- **Try Live (Quest Browser or Desktop/Mobile Preview):**
https://pin-and-plan.vercel.app
- **New 1080p Demo Video:** https://youtu.be/Hvk4ZjlLaIg
- **Source Code (GitHub):**
https://github.com/PJH720/pin-and-plan

Submission history