# krishnavalliappan/t3code architecture

> Architecture diagram of the GitHub repository krishnavalliappan/t3code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/krishnavalliappan/t3code
- Repository: https://github.com/krishnavalliappan/t3code

## Overview

This repository customizes T3 Code by maintaining three ordered patches, reapplying them to upstream Nightly builds, and providing a local script for editing, saving, checking, and installing custom builds. The documented user workflow runs from editing a patched source tree to saving changes as patches, then either waiting for the automated build or building locally and installing. The patch descriptions document composer metrics, a Claude usage-limit fix, and a floating chat panel. Source excerpts were unavailable, so relationships below rely on the README only.

Main entry points: [`.github/workflows/custom-nightly.yml`](https://github.com/krishnavalliappan/t3code/blob/customize/.github/workflows/custom-nightly.yml) (Nightly patch and build), [`bin/t3code-customize`](https://github.com/krishnavalliappan/t3code/blob/customize/bin/t3code-customize) (Local customize commands), [`patches/0003-feat-web-floating-chat-panel-for-writing-in-your-voi.patch`](https://github.com/krishnavalliappan/t3code/blob/customize/patches/0003-feat-web-floating-chat-panel-for-writing-in-your-voi.patch) (Floating chat panel), [`patches/0001-feat-web-composer-status-bar-with-5h-weekly-usage-co.patch`](https://github.com/krishnavalliappan/t3code/blob/customize/patches/0001-feat-web-composer-status-bar-with-5h-weekly-usage-co.patch) (Composer status bar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customizations["App customizations"]
  node_composer["Composer status bar"]
  node_limits["Claude limits fix"]
  node_chat["Floating chat panel"]
  node_customized["Customized app"]
end

subgraph group_automation["Nightly delivery"]
  node_nightly_workflow["Nightly patch and build<br/>[custom-nightly.yml]"]
  node_published["Prerelease DMG"]
end

subgraph group_local["Local workflow"]
  node_customize_script["Local customize commands"]
  node_patched_source["Patched source tree"]
  node_patch_set["Saved patch set"]
  node_installed["Installed app"]
end

node_user(("Maintainer"))
node_upstream["Upstream Nightly"]
node_claude["Claude"]
node_connectors["Connectors and WebFetch"]

node_upstream -->|"provides nightly"| node_nightly_workflow
node_nightly_workflow -->|"applies patches"| node_composer
node_nightly_workflow -->|"applies patches"| node_limits
node_nightly_workflow -->|"applies patches"| node_chat
node_nightly_workflow -->|"builds and publishes"| node_published
node_user -->|"runs commands"| node_customize_script
node_customize_script -->|"creates edit tree"| node_patched_source
node_upstream -->|"provides nightly base"| node_patched_source
node_composer -->|"customizes"| node_patched_source
node_limits -->|"customizes"| node_patched_source
node_chat -->|"customizes"| node_patched_source
node_customize_script -->|"saves commits as"| node_patch_set
node_customize_script -->|"installs latest build"| node_published
node_customize_script -->|"builds locally"| node_customized
node_customized -->|"installs"| node_installed
node_chat -->|"runs chats with"| node_claude
node_chat -->|"uses"| node_connectors

click node_composer "https://github.com/krishnavalliappan/t3code/blob/customize/patches/0001-feat-web-composer-status-bar-with-5h-weekly-usage-co.patch"
click node_limits "https://github.com/krishnavalliappan/t3code/blob/customize/patches/0002-fix-server-Claude-usage-limits-on-CLI-2.1.30x-and-th.patch"
click node_chat "https://github.com/krishnavalliappan/t3code/blob/customize/patches/0003-feat-web-floating-chat-panel-for-writing-in-your-voi.patch"
click node_nightly_workflow "https://github.com/krishnavalliappan/t3code/blob/customize/.github/workflows/custom-nightly.yml"
click node_customize_script "https://github.com/krishnavalliappan/t3code/blob/customize/bin/t3code-customize"
click node_patch_set "https://github.com/krishnavalliappan/t3code/tree/customize/patches"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_composer,node_limits,node_chat,node_customized toneBlue
class node_nightly_workflow,node_published toneAmber
class node_customize_script,node_patched_source,node_patch_set,node_installed toneMint
class node_user,node_upstream,node_claude,node_connectors toneIndigo
```

## Components

### App customizations

- [Composer status bar](https://github.com/krishnavalliappan/t3code/blob/customize/patches/0001-feat-web-composer-status-bar-with-5h-weekly-usage-co.patch): `patches/0001-feat-web-composer-status-bar-with-5h-weekly-usage-co.patch`
- [Claude limits fix](https://github.com/krishnavalliappan/t3code/blob/customize/patches/0002-fix-server-Claude-usage-limits-on-CLI-2.1.30x-and-th.patch): `patches/0002-fix-server-Claude-usage-limits-on-CLI-2.1.30x-and-th.patch`
- [Floating chat panel](https://github.com/krishnavalliappan/t3code/blob/customize/patches/0003-feat-web-floating-chat-panel-for-writing-in-your-voi.patch): `patches/0003-feat-web-floating-chat-panel-for-writing-in-your-voi.patch`
- **Customized app**

### Nightly delivery

- [Nightly patch and build](https://github.com/krishnavalliappan/t3code/blob/customize/.github/workflows/custom-nightly.yml): `.github/workflows/custom-nightly.yml`
- **Prerelease DMG**

### Local workflow

- [Local customize commands](https://github.com/krishnavalliappan/t3code/blob/customize/bin/t3code-customize): `bin/t3code-customize`
- **Patched source tree**
- [Saved patch set](https://github.com/krishnavalliappan/t3code/tree/customize/patches): `patches`
- **Installed app**

### Other components

- **Maintainer**
- **Upstream Nightly**
- **Claude**
- **Connectors and WebFetch**

## Connections

- Upstream Nightly → Nightly patch and build: provides nightly (evidence: `README.md`)
- Nightly patch and build → Composer status bar: applies patches (evidence: `README.md`)
- Nightly patch and build → Claude limits fix: applies patches (evidence: `README.md`)
- Nightly patch and build → Floating chat panel: applies patches (evidence: `README.md`)
- Nightly patch and build → Prerelease DMG: builds and publishes (evidence: `README.md`)
- Maintainer → Local customize commands: runs commands (evidence: `README.md`)
- Local customize commands → Patched source tree: creates edit tree (evidence: `README.md`)
- Upstream Nightly → Patched source tree: provides nightly base (evidence: `README.md`)
- Composer status bar → Patched source tree: customizes (evidence: `README.md`)
- Claude limits fix → Patched source tree: customizes (evidence: `README.md`)
- Floating chat panel → Patched source tree: customizes (evidence: `README.md`)
- Local customize commands → Saved patch set: saves commits as (evidence: `README.md`)
- Local customize commands → Prerelease DMG: installs latest build (evidence: `README.md`)
- Local customize commands → Customized app: builds locally (evidence: `README.md`)
- Customized app → Installed app: installs (evidence: `README.md`)
- Floating chat panel → Claude: runs chats with (evidence: `README.md`)
- Floating chat panel → Connectors and WebFetch: uses (evidence: `README.md`)
