07 Tools / Private repository

Relay

Project containers, memory and context accounting for long-running coding sessions.

2 min readSource repository is private
Purpose
A self-hosted launcher and dashboard for isolated coding projects, persistent memory and context-cost reporting.
My contribution
Built the self-hosted launcher, dashboard and project context workflow.
Result
A working launcher that carries project decisions between sessions and makes context use visible.
Relay dashboard Projects page showing isolated workspaces and session state
Enlarge screenshot
Relay Projects dashboard · The interactive walkthrough uses simulated dataProject 07

Workflow

  1. 01Create project container
  2. 02Seed session memory
  3. 03Work with context guards
  4. 04Review usage in dashboard

Before

Long coding sessions repeatedly loaded large documents, tool lists and command output into context.

After

Projects use isolated containers, scoped memory and a searchable skill index with context reporting.

01

Problem#

Long coding sessions repeatedly resend context. Tool listings, large file reads and verbose commands consume the budget before the useful work is done.

02

Background#

Relay was built around measurements from real sessions: command text accounted for 53% of context growth in the session described by the project README, while large prompts also increased cost, latency and the chance of losing detail during compaction.

03

Implementation#

Built a self-hosted Flask and React dashboard with one container per project, graph-backed memory, a searchable on-disk skill index, context guards, a session ledger and transcript-based usage reporting. A Go machine agent and a Tauri desktop app pair other computers with the dashboard, which is published through a Cloudflare Tunnel behind Access.

04

Challenges#

The launcher has to keep project context and credentials isolated while still allowing approved host operations. A restricted broker, audit log, per-project containers, dashboard tokens and graph accounts provide those boundaries; graph backups are restore-tested and copied offsite.

05

Results#

A working homelab launcher that makes context spending visible and carries decisions between sessions without loading whole documents at startup.

System structure

How the parts connect

  1. Flask + React

    The dashboard provides project entry points and usage information.

  2. Project containers

    Each project has its own working environment and context.

  3. Graph memory + ledger

    Scoped decisions and session outcomes support continuity.

  4. Restricted broker

    Approved host and credential operations cross a controlled, audited boundary.

  5. Machine agent + desktop app

    A Go agent and a Tauri app pair other computers, run queued jobs and chat with projects.

Project outcomes

53%
Context growth from commands
454
Searchable skills
1
Container per project

The 53% command-text figure refers to one measured session described in the original project account. It is not a general benchmark or a claimed saving. Source access is private.

Discuss this project

Ask about the implementation or a related problem.

Email Tyler