Kobez Technical Cheatsheet
Repository map
/home/loca/dev/kobez/
โโโ kolbez.zip read-only received archive
โโโ kolbez-organized/ deterministic governed library
โโโ tools/ standard-library organizer and validator
โโโ app/ SvelteKit gallery and deployment files
โโโ q5vault/ this wiki sourceRuntime contract
LIB_DIR=/home/loca/dev/kobez/kolbez-organized
DATA_DIR=/home/loca/klbz
HOST=127.0.0.1
PORT=51909
KLBZ_AGENT_BIN=/home/loca/.local/bin/omp
KLBZ_MAX_AGENTS=2
KLBZ_TURN_TIMEOUT_MS=300000klbz.service runs the adapter-node build. klbz.loca.zone proxies to loopback port 51909; the complete gallery is protected by the Authelia klbz.loca.zone one-factor rule.
API routes
GET /api/manifestโ twelve gallery groups plus library and generated assets.GET /api/asset/[...path]โ contained library/generated file access;?download=1forces attachment.POST /api/zipโ validates up to 200 selected paths and streamskobez-selection.zip.GET /api/streamโ server-sent chat deltas, completion, errors, heartbeats, and manifest invalidation.POST /api/collabโ creates a twelve-hex collaboration session.GET /api/collab/[id]โ returns parsed transcript and turn status.POST /api/collab/[id]โ appends a request and starts one headless OMP turn.
flowchart LR B[Browser] --> M[Manifest] B --> F[Contained asset route] B --> Z[ZIP stream] B --> S[SSE stream] B --> C[Collab API] C --> O[Headless OMP] O --> D[DATA_DIR collab out] D --> M
Build and validate
cd /home/loca/dev/kobez
python3 -B tools/organize.py --out /tmp/kolbez-check.tmp
python3 -B tools/validate.py --root kolbez-organized
cd app
npm run check
npm run buildThe received kolbez.zip is immutable. Never execute packaged Python, JavaScript, or HTML while validating the archive.
Agent invocation
Each turn starts with this direct invocation and ignored stdin:
spawn(KLBZ_AGENT_BIN, ['-p', '--auto-approve', '@'+briefingPath], {cwd: workspace, stdio: ['ignore','pipe','pipe'], env: {...process.env}})The briefing confines work to the session workspace. Every visible deliverable belongs in out/.
Collaboration storage
/home/loca/klbz/collab/<12-hex>/
โโโ session.json
โโโ chat.md
โโโ briefing.md
โโโ asset/
โโโ out/