Lab Logs Chapter 1 From Spec to Sandbox

· rcliao's blog

all project starts with idea to spec, then we build a sandbox to experiment

Table of Contents

Lab Logs #1: From Spec to Sandbox #

Blue Gopher tinkering away in lab

A Weekly Engineering Journal for TeenyOrb


πŸ”¬ Hypothesis #

If we could build a secure CLI tool that manages containerized coding sessions with LLM assistance - and demonstrate each phase of development with AI pair programming - then we could create both a useful tool and document effective AI-assisted development patterns.

This required:


πŸ§ͺ Experiment #

Subject: TeenyOrb Phase 1 Implementation Environment:

Procedure:

  1. Created comprehensive planning spec (docs/planning/v0.md) with 7-phase roadmap
  2. Used LLM assistance to implement Phase 1 in a single focused session
  3. Built complete CLI structure with Cobra framework integration
  4. Implemented Docker-based container management with interfaces
  5. Added file synchronization system using TAR-based transfers
  6. Created working session management (create/list/stop commands)
  7. Established configuration system and built functional binary

πŸ““ Observations #

Key Technical Achievements:

 1## Goal
 2Write a tiny Go CLI (β€œTeenyOrb”) that lets an LLM:
 31. plan coding tasks
 42. find/read/write files
 53. run commands in a scratch-built container (namespaces + cgroups)
 64. log every action to SQLite
 7
 8## Please expand:
 9- Features list
10- Non-Functional Requirements (security, resource limits, portability)
11- Architecture Sketch (modules + data flow)
12- Milestones (8 weekly posts)

πŸ“Š Result #

Metric Value
Implementation Scope Phase 1 Complete - CLI + Container Management
Lines Added 1,396 lines of Go code
Files Created 18 new files across cmd/, internal/, configs/
Dependencies 42 Go modules properly resolved
Binary Size 11.6MB working executable
Commit Hash baaee9d

Implementation Highlights:

 1// Complete CLI structure with Cobra
 2teeny-orb session create   // βœ… Working
 3teeny-orb session list     // βœ… Working  
 4teeny-orb session stop     // βœ… Working
 5teeny-orb generate "..."   // πŸ”„ Phase 2
 6teeny-orb review file.go   // πŸ”„ Phase 2
 7
 8// Container management with Docker
 9type Manager interface {
10    CreateSession(config SessionConfig) (Session, error)
11    ListSessions() ([]Session, error)
12    StopSession(id string) error
13}

πŸ” Next Step #

With Phase 1 complete, we're ready for Phase 2: LLM Integration to add AI-powered capabilities:

The CLI foundation and container management are solid - now we add the intelligence layer.


TeenyOrb has a pulse. Clone the repo, tweak the spec, and submit a PR with your Copilot-augmented ideas. πŸ”— github.com/rcliao/teeny-orb

last updated: