Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c730076
hosted: configurable client session TTL
immakermatty Oct 29, 2026
d4a583e
hosted: serve behind an explicit HTTPS external origin
immakermatty Oct 29, 2026
914ab6f
hosted: explicit environment label
immakermatty Oct 29, 2026
f41f483
feat: in-app update from the configured release channel
immakermatty Oct 29, 2026
c332cf1
lazurio: unsent prompt draft by link from the shell
immakermatty Oct 29, 2026
51e7ced
feat(web): Lazurio shell slot
immakermatty Oct 29, 2026
9b92af6
feat(server): each thread's provider processes get its agent-browser …
immakermatty Oct 29, 2026
842e517
feat(web): the right panel shows the thread's Environment browser tabs
immakermatty Oct 29, 2026
7ae8f90
feat(server): T3's browser tools drive the Environment browser
immakermatty Oct 29, 2026
47a3b2b
feat(server): a thread's Environment browser tabs live in its holder …
immakermatty Oct 29, 2026
4f19926
feat(server): archiving or deleting a thread lets go of its tabs and …
immakermatty Oct 29, 2026
d36de9c
feat(web): "+" and the empty panel open Nová karta
immakermatty Oct 29, 2026
a4b8059
feat(lazurio): provide a managed Folder project and native model reco…
immakermatty Oct 29, 2026
3787e21
feat(web): the in-app name T3 Code (Lazurio)
immakermatty Oct 29, 2026
0054d3d
feat(web): the design system's light look on a Lazurio Environment
immakermatty Oct 29, 2026
0d5f13a
feat(lazurio): providers sign in through Lazurio, and the Launchpad t…
immakermatty Oct 29, 2026
27415ac
feat(lazurio): the Environment pairs its own browser
immakermatty Oct 29, 2026
2188aed
feat(server): t3 auth session issue sets an MCP client's runtime-mode…
immakermatty Oct 29, 2026
cbc5098
feat(lazurio): agents work with T3 Code threads through t3 thread, re…
immakermatty Oct 29, 2026
f3d95d8
feat(server): T3's Codex threads ask the user through request_user_input
immakermatty Oct 29, 2026
dc15ae8
feat(lazurio): Buddy's Hermes gets only the person's words and the pa…
immakermatty Oct 29, 2026
d367c2d
feat(lazurio): agents send once per idempotency key, and Delegace fin…
immakermatty Oct 29, 2026
65141ed
feat(lazurio): Buddy's T3 Code is Buddy's one conversation, framed by…
immakermatty Oct 29, 2026
6408144
feat(lazurio): the page Buddy is asked from travels as a chip the per…
immakermatty Oct 29, 2026
112e8cf
feat(lazurio): a thread shows when Buddy or Delegace sent a message o…
immakermatty Oct 29, 2026
62bdc69
feat(lazurio): Buddy's chat reads like a chat with a friend
immakermatty Oct 29, 2026
dd06a6d
fix(server): a steer waits behind a turn that waits on the person
immakermatty Oct 29, 2026
b0d42ab
fix(server): a commit, push or pull request finishes when its connect…
immakermatty Oct 29, 2026
7db20a2
fix(web): a saved follow-up 'queue' becomes 'steer' once on the v0.1.…
immakermatty Oct 29, 2026
8518025
feat(acp): steer an agent's running turn through _lazurio/steer inste…
immakermatty Oct 29, 2026
ee23560
release: Lazurio distribution
immakermatty Oct 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .agents/skills/lazurio-upstream-rebuild/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
name: lazurio-upstream-rebuild
description: Přestaví Lazurio T3 Code na nové stabilní vydání upstream T3 Code end to end podle runbooku forku (inventura, rozhodnutí, candidate, CI, review, zachycení starého main, výměna main, preview, Ring 0 s ověřením v prohlížeči, stable a plán dalších vln). Použij, když upstream vydá stable vX.Y.Z, když se otevře issue „Přestavba na upstream T3 Code“ nebo když Operátor řekne „použij skill“ k nové verzi. Nepoužívej na běžnou opravu overlaye na stejné bázi.
---

# Přestavba Lazurio T3 Code na nový upstream

Tento skill vede práci. **Kroky, příkazy a overlay drží jen runbook**
[`docs/operations/lazurio-fork-release.md`](../../../docs/operations/lazurio-fork-release.md)
(sekce „Nové stabilní vydání upstreamu“, etapy 1–9) a
[`docs/operations/lazurio-overlay.md`](../../../docs/operations/lazurio-overlay.md). Než začneš,
přečti obě celé na aktuálním `main` (ne ze starého checkoutu). Když runbook při práci nesedí,
oprav runbook ve stejné přestavbě (řádek 5); tenhle skill nerozšiřuj o kroky.

## Mandát

Na začátku si od Operátora ujasni rozsah (bez něj platí jen etapy 2–5, viz runbook
„Zadání pro Task Agenta“):

- etapy, které smíš udělat sám (typicky 2–9 bez vln mimo Ring 0);
- že schválení vydání v `lazurio-t3code-release` děláš jeho účtem, vždy jen na přesném SHA
a verzi, které jsi sám ověřil;
- co chce u řádků overlaye určitě zachovat a co posoudíš sám;
- komu patří Ring 0 a kdo tam ještě pracuje (domluv se s těmi vlákny dřív, než něco nasadíš).

Rozhodnutí, která by schvaloval Admin, smíš brát jako schválená jen tehdy, když to zadání výslovně
říká; i pak je zapiš do issue přestavby s citací a zdrojem.

## Průběh

1. **Orientace.** Root `AGENTS.md`, worktree disciplína (primární checkout nech na `main`),
volné místo na disku (počítej asi 1 GB na worktree s `node_modules`), toolchain
(pnpm a vite-plus přes `npx --yes pnpm@<verze z package.json>`), aktivní tailnet a vlákna,
která pracují na Ring 0. Ověř přesný tag proti `pingdotgg/t3code` (etapa 2).
2. **Issue přestavby** podle šablony z runbooku: přejmenuj otevřené issue na novou verzi, nebo
založ nové. Vstupy vyplň hned.
3. **Inventura paralelně, jen čtení** (etapa 2 a brány z etapy 5). Rozděl řádky do skupin,
které spolu sdílejí soubory (osvědčilo se: hosted a vydávání 1–5 s branami; server prohlížeče
Environmentu 8, 10–12; web 6, 7, 9, 13, 16, 17; spravovaná složka, přihlášení a párování 15, 18,
19; agenti a otázky 20–22; Buddy 23–28; usměrnění a fronta 30–33). Dodatek, který na `main`
nese pozdější commit, vrať do jeho řádku. Každé skupině dej společné zadání (cesty, SHA, závazná přání
Operátora, formát zprávy po řádcích) a ať píše zprávu do souboru. Zprávy čti sám a tvrzení, na kterých stojí rozhodnutí, ověř v kódu.
4. **Rozhodnutí do issue dřív, než se změní kód.** Tabulka po řádcích (ponechat, přestavět,
zmenšit, odebrat, nabídnout upstreamu) a brány. Kde upstream umí totéž stejně dobře, řádek odeber.
5. **Zachycení starého `main`.** Když se `main` od posledního stable liší mimo `docs/`, vydej
nejdřív stable na staré bázi: preview na Ring 0 (záloha databáze, `t3 update` s potvrzením),
kontrola v prohlížeči, pak stable ze špičky `main`. Dispatch dělá jiný účet než schvalovatel
(environment má `prevent_self_review`); ověř publikované vydání podle runbooku.
6. **Candidate** (etapa 3). Řádky, které jdou přenést s malou úpravou, přehraj sám rovnou do větve
`lazurio/rebuild-vX.Y.Z` po souborech (runbook, etapa 3). Těžké řádky dej implementačním
skupinám ve vlastních worktree z přesného tagu, každá commit na řádek; společné zadání jako
u inventury, k tomu „nikdy nepushuj, nesahej na `main`“. Závislosti mezi skupinami řeš dočasným
lešením, které při integraci zahodíš. Commity skupin přenes do větve cherry-pickem v pořadí
Cílového stacku, řádek 5 poslední.
7. **Kontrola integrace.** Diff každého řádku přečti sám, typecheck, lint a testy spusť sám (ne jen
převezmi hlášení skupin; ve worktree vnořeném v jiném repozitáři ověř formát a lint podle
runbooku, etapa 3), a teprve pak push a draft PR (etapa 4). Když `pull_request` CI na
draft PR neběží, spusť `Lazurio Fork CI` ručně na větvi.
8. **Review** od Stewarda (nebo review agenta jeho Organizace) na přesném headu. Skutečné vady oprav hned;
drobnosti a rozšiřování scope odmítni věcnou námitkou v PR (root `AGENTS.md`, rozhodnutí 0163).
9. **Brány kompatibility** (etapa 5): každou zapiš do issue i s tím, jak je ověřená.
10. **Výměna `main`** (etapa 6) přesně podle runbooku: přesné SHA, `--force-with-lease`, nikdy
automatický retry; po výměně vypni nové upstream workflow.
11. **Preview a Ring 0** (etapa 7): kontroly z runbooku a kontrola v prohlížeči. Ta potřebuje
přihlášení člověka nebo testovací účet z lokální custody Ring 0; použij vlastní profil
prohlížeče, ať tě neodhlásí test jiného vlákna. Agentní turn s Codexem i Claude jen tam, kde je
AI.
12. **Stable** (etapa 8) ze stejného commitu po souhlasu Admina (nebo podle mandátu), Ring 0 zpět
na stable a test tlačítka Update z předchozího stable.
13. **Další vlny** nenasazuj sám, pokud to mandát neříká: předlož Operátorovi plán (Environmenty,
pořadí, okna, přepnutí tailnetu, změny Machines a Platformy, oznámení lidem).
14. **Po vydání** (etapa 9): návrhy upstreamu, runbook (Cílový stack, „Upstream a přestavba“, vše,
co při přestavbě nesedělo), zavření issue.

## Kdy se zeptat Operátora

Jen když odpověď nenajdeš v runbooku, rozhodovacím registru, issue ani kódu, nebo když bez něj
nejde pokračovat bezpečně: přihlášení člověka, rozhodnutí mimo mandát (nové chování, které zadání
nepokrývá), nasazení mimo Ring 0, a selhání, které vyžaduje volbu mezi dvěma mechanismy. Ptej se
jednou a sdruženě.

## Handoff

Pro Operátora česky a lidsky: co se změnilo pro lidi na Environmentech, které funkce overlaye
zůstaly, které nahradil upstream a proč, co je ověřené v prohlížeči. Odkazy na PR, vydání a issue,
přesné SHA a verze, plán dalších vln a co zůstává otevřené.
4 changes: 4 additions & 0 deletions .agents/skills/lazurio-upstream-rebuild/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface:
display_name: "Lazurio Upstream Rebuild"
short_description: "Rebuild Lazurio T3 Code on a new upstream stable, end to end"
default_prompt: "Use $lazurio-upstream-rebuild to rebuild Lazurio T3 Code on the new upstream stable release."
76 changes: 76 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.git
.github
.repos
.vite-plus
.vite-hooks
.vite-hooks/
.worktrees
.bun
.bun/
.turbo
.turbo/
.astro
.astro/
.tanstack
.tanstack/
.vitest-*
.cache
.cache/
.pnpm-store
.pnpm-store/
.idea
.idea/
.DS_Store
.t3
.t3/
**/.t3
**/.t3/
.alchemy
.alchemy/
**/.alchemy
**/.alchemy/
.vercel
.vercel/
**/.vercel
**/.vercel/
.gstack
.gstack/
.plans
.plans/
.logs
.logs/
.env*
**/.env*
.npmrc
**/.npmrc
.netrc
**/.netrc
*.log
release
release/
release-mock
release-mock/
artifacts
artifacts/
build
build/
coverage
coverage/
squashfs-root
squashfs-root/
.electron-runtime
.electron-runtime/
.showcase
.showcase/
__screenshots__
__screenshots__/
**/__screenshots__
**/__screenshots__/
apps/web/.playwright
apps/web/.playwright/
apps/web/playwright-report
apps/web/playwright-report/
**/node_modules
**/dist
**/dist-electron
*.tsbuildinfo
81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/1-lazurio-t3-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Lazurio T3 Code problem
description: Report a problem with Lazurio T3 Code, the modified distribution of T3 Code in this repository.
labels:
- bug
body:
- type: markdown
attributes:
value: |
This repository is Lazurio T3 Code, a modified distribution of T3 Code for Lazurio
Environments. Report problems with it here, not to the T3 Code team. If the problem also
happens in upstream T3 Code, report it upstream too.

Do not report a security problem in a public issue. Report it privately: on this
repository's **Security** tab, choose **Report a vulnerability**.

- type: dropdown
id: area
attributes:
label: Area
description: Which part of Lazurio T3 Code is affected?
options:
- Environment browser (right panel, New tab, browser tools)
- Lazurio Folder project
- Lazurio shell (rail, app switcher)
- Name or look on a Lazurio Environment
- Prepared prompt from Lazurio
- Updates and releases
- Hosting (sign-in, pairing, session)
- Something else, or not sure
validations:
required: true

- type: textarea
id: what-happened
attributes:
label: What happened
description: What you did, what you expected, and what happened instead.
validations:
required: true

- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: |
1. Open Chat on the Environment
2. ...
validations:
required: true

- type: input
id: version
attributes:
label: Version
description: Settings → General shows it, and so does `t3 --version` on the Environment.
placeholder: 0.1.4-lazurio.1
validations:
required: true

- type: input
id: browser
attributes:
label: Browser and device
placeholder: Chrome on macOS

- type: dropdown
id: upstream
attributes:
label: Does it also happen in upstream T3 Code?
options:
- "No"
- "Yes"
- Not checked
validations:
required: true

- type: textarea
id: details
attributes:
label: Logs or screenshots
description: The most relevant part only. Remove secrets, tokens and private names first.
126 changes: 126 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Lazurio T3 Code

Lazurio T3 Code is a modified distribution of [T3 Code](https://github.com/pingdotgg/t3code) and
the Chat app of [Lazurio](https://github.com/Lazurio). It is T3 Code's server and web client, built
from upstream's stable releases with a Lazurio overlay on top, for Lazurio Environments.

It is not an official T3 Code release, and the T3 Code team does not support it. Report problems
with it here, not upstream (see [Reporting issues](#reporting-issues)).

## How it differs from T3 Code

### The browser works differently

This is the biggest difference.

In upstream T3 Code, the desktop app has its own preview browser, and the T3 Code server runs a
headless browser of its own for the web and mobile apps, in fresh contexts without your sign-ins.

In Lazurio T3 Code's web client, the browser is the **Environment browser**: one Chromium with one
persistent profile that runs on the Lazurio Environment itself. Every app, chat and agent of the
Environment shares it, and its sign-ins with it. On a Lazurio Environment the server's own browser
never starts, so the Environment browser is the web client's only browser.

- The right panel shows a thread's tabs in that browser. Each one is a live view of a remote tab,
which keeps running when you close the page. Every device shows the same tabs of a thread.
- A thread's agents work in their own window of that browser, through the `agent-browser` CLI or
T3 Code's own browser tools (`preview_open`, `preview_snapshot`, `preview_click` and the rest).
You can watch them and work in the same tab at the same time, for example to sign in or to
solve a CAPTCHA. Nothing is handed over.
- "+" opens a New tab page with an address bar, T3 Code's tools and an overview of the
Environment's open tabs.
- Closing a tab lets go of it for this thread, with an undo. The remote tab stays open while an
agent works in it or another place holds it. Archiving or deleting a thread lets go of its tabs.
- A link to a tab of another Lazurio Environment opens as a marked tab of that Environment.

The official desktop and mobile apps are upstream's and unmodified. Connected to a Lazurio
Environment, the desktop app keeps its own browser and the mobile app shows no browser.

### The Lazurio Folder project

On a Lazurio Environment, Chat starts in the Environment's Lazurio Folder. The server creates or
adopts the Folder as a project when it starts, new chats start in it, and a short welcome explains
it. Earlier conversations stay as history. The model the Environment recommends is the Lazurio
project's default model (Settings → General, with the Lazurio project selected); a model you choose
there stays yours.

### Other changes

- **The name and the look.** The app calls itself "T3 Code (Lazurio)", and its wordmark and icons
stay T3 Code's. On a Lazurio Environment, T3 Code's standard light theme takes the Lazurio
design system's colours, font and radii from tokens the Environment's shell declares. A theme
you pick and the dark theme stay T3 Code's own.
- **Lazurio shell.** The Environment rail, the app switcher at the top of the sidebar and Buddy
load at runtime from the Environment. Outside Lazurio, nothing extra renders.
- **Prepared prompts.** Lazurio can open Chat with a prepared prompt in a new thread's message
box. It is never sent on its own.
- **Signing in to Codex and Claude.** On a Lazurio Environment they sign in with their own CLIs from
the Environment's Getting started page, so the sign-in works for T3 Code, the terminal and every
agent alike. T3 Code's own ChatGPT sign-in is not offered there.
- **Pairing.** A Lazurio Environment pairs your browser itself: however you open Chat, a browser
without a session signs in without a pairing token and stays on the page you opened, and a
browser paired with an older release pairs again. **Settings → Connections** shows your
authorized clients; on an Environment in your tailnet you create pairing links there for the
desktop and mobile apps. The Environment's pairing never lets a browser manage T3 Connect.
- **Hosting behind a reverse proxy.** `T3CODE_EXTERNAL_ORIGIN` serves T3 Code at the root of its
own HTTPS hostname with a Secure session cookie, `T3CODE_CLIENT_SESSION_TTL` sets how long a
paired browser stays signed in, and `T3CODE_ENVIRONMENT_LABEL` names the Environment.
- **Buddy's chat.** With `T3CODE_LAZURIO_BUDDY=1`, a T3 Code server is Buddy's chat on a person's
Osobní Prostředí. Its provider instance `buddy` runs Buddy's Hermes Agent over ACP and gets only
what the person sends: their words, their attachments and the page they ask from, never T3
Code's own instructions. The web client is Buddy's one conversation: one thread with its days
beside it, no thread list, forks or rollbacks, and a message sent during a turn steers it. It
reads like a chat with a friend: what Buddy writes, and one quiet line while he works, never his
tool calls or reasoning, and a message box without access or mode controls. In Buddy's bubble it
talks to the page around it through the bubble's `lazurio.buddy.*` messages, and that page
travels with the person's message as a chip they can remove.
- **Updates from this repository.** The server offers the newest release of this repository and
installs it with the Update button, and `t3 update` and the install scripts take it from here
too. `T3CODE_RELEASE_REPOSITORY=owner/name` picks another repository's releases. After the
update, the `t3` command follows the version the server runs.

Apart from the name and the release repository, each change stays off until its setting is
present or the page runs on a Lazurio Environment. Without them, the server and the web client
behave like upstream T3 Code; agent processes and thread terminals still get an
`AGENT_BROWSER_SESSION` variable, which does nothing on its own, and a page served over HTTPS
without a session first asks its own origin whether Lazurio pairs it.

## Tracking upstream

`main` is an exact upstream stable release tag with the Lazurio overlay commits on top, and nothing
else. When upstream publishes a new stable release, a daily check opens an issue in this repository
that tracks the move: the overlay is rebuilt on the new release, one commit per change, and every
change upstream now covers is dropped. Changes that would help everyone are offered upstream.

## Releases

Releases are on this repository's [Releases](https://github.com/Lazurio/t3code/releases) page, and
Lazurio Environments install and update from there.

- **Stable:** `X.Y.Z-lazurio.N`, tagged `vX.Y.Z-lazurio.N`. `X.Y.Z` is the upstream release it is
built on, and `N` counts the releases on that base.
- **Preview:** `X.Y.Z-preview.YYYYMMDD.N`. A preview is a canary: it is never offered as an
update, and you install one on purpose with `t3 update <version>`.

Each release has CLI archives for `linux-x64` and `darwin-arm64`, a `SHA256SUMS` file, build
provenance attestations and the OCI image `ghcr.io/lazurio/t3code:<version>`.

## Reporting issues

Report problems with Lazurio T3 Code in this repository's
[issues](https://github.com/Lazurio/t3code/issues), especially anything about the Environment
browser, the Lazurio Folder or the other changes above. Please don't report them to the T3 Code
team. If a problem also happens in upstream T3 Code, report it upstream too.

Report security problems privately: on this repository's **Security** tab, choose
**Report a vulnerability**.

## Credit and license

Lazurio T3 Code is built on [T3 Code](https://github.com/pingdotgg/t3code) by T3 Tools Inc. and its
contributors. T3 Code is licensed under the MIT License, and so are the Lazurio changes: see
[LICENSE](../LICENSE), which keeps upstream's copyright notice. Every image and CLI archive ships
that licence. Upstream's own README is [README.md](../README.md).

Lazurio's brand assets are the exception: the MIT License does not cover the Lazurio symbol or
Buddy's character Mattyčus (see [their terms](../apps/web/src/lazurio/brand/README.md)).
10 changes: 10 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Security policy

This repository is Lazurio T3 Code, a modified distribution of T3 Code for Lazurio Environments
(see the [README](README.md)). Report security problems with it privately, here: on this
repository's **Security** tab, choose **Report a vulnerability**. Please do not disclose them
publicly until we have had a reasonable opportunity to investigate and fix them.

A problem in the Lazurio changes is ours to fix, so please don't send it to the T3 Code team. If
it also affects upstream T3 Code, report it to them too, under their policy below.

## Upstream T3 Code

Report security vulnerabilities affecting T3 Code or T3 Tools-operated infrastructure to
[security@ping.gg](mailto:security@ping.gg). Please do not disclose them publicly until we have had
a reasonable opportunity to investigate and remediate them.
Expand Down
Loading
Loading