Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# T3 Code

T3 Code is a minimal web GUI for coding agents (currently Codex, Claude, and OpenCode, more coming soon).
Expand Down Expand Up @@ -40,6 +41,33 @@ brew install --cask t3-code
yay -S t3code-bin
```

#### NixOS (Flakes)

```nix
# /path/to/your/flake.nix
{
inputs = {
# This flake is pinned to nixpkgs stable
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";

t3code-flake.url = "github:pingdotgg/t3code";
# Or pin a version: "github:pingdotgg/t3code?ref=v0.0.23"
t3code-flake.inputs.nixpkgs.follows = "nixpkgs";
};
}
```

```nix
# /path/to/your/configuration.nix
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = [
pkgs.appimage-run
inputs.t3code-flake.packages.${system}.default
];
}
Comment on lines +64 to +68
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Low README.md:64

The configuration.nix example includes pkgs.appimage-run (line 65), which is unnecessary because the flake builds t3code natively without the AppImage wrapper. Users copying this verbatim will install an unused dependency. Consider removing pkgs.appimage-run from the example.

Suggested change
environment.systemPackages = [
pkgs.appimage-run
inputs.t3code-flake.packages.${system}.default
];
}
environment.systemPackages = [
- pkgs.appimage-run
inputs.t3code-flake.packages.${system}.default
];
🤖 Copy this AI Prompt to have your agent fix this:
In file README.md around lines 64-68:

The `configuration.nix` example includes `pkgs.appimage-run` (line 65), which is unnecessary because the flake builds t3code natively without the AppImage wrapper. Users copying this verbatim will install an unused dependency. Consider removing `pkgs.appimage-run` from the example.

```

## Some notes

We are very very early in this project. Expect bugs.
Expand Down
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 75 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
Comment thread
macroscopeapp[bot] marked this conversation as resolved.
Comment thread
macroscopeapp[bot] marked this conversation as resolved.
description = "T3 Code - A harness for coding agents";

# ===== MAINTENANCE NOTES FOR MAINTAINERS =====
#
# let
# releaseTag = "v0.0.24";
# version = lib.removePrefix "v" releaseTag;
# appimageHash = "sha256-t8KYAtaQKWmCVOOwvHByosYoqb0Ji35Qe4m+8Gtp/+k=";
# in
# {
# . . .
# };
#
# To update to a new release:
# 1. Update `releaseTag` to the new version (e.g., "v0.0.25")
# 2. Update `appimageHash`:
# nix-prefetch-url https://github.com/pingdotgg/t3code/releases/download/v0.0.25/T3-Code-0.0.25-x86_64.AppImage
# ==============================================

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
};

outputs =
{ self, nixpkgs }:
let
lib = nixpkgs.lib;

releaseTag = "v0.0.24";
version = lib.removePrefix "v" releaseTag;
appimageHash = "sha256-t8KYAtaQKWmCVOOwvHByosYoqb0Ji35Qe4m+8Gtp/+k=";

supportedSystems = [ "x86_64-linux" ];

pkgs = import nixpkgs { system = "x86_64-linux"; };

appimage = pkgs.fetchurl {
url = "https://github.com/pingdotgg/t3code/releases/download/${releaseTag}/T3-Code-${version}-x86_64.AppImage";
sha256 = appimageHash;
};
in
{
packages.x86_64-linux = {
default = pkgs.stdenv.mkDerivation {
pname = "t3code";
inherit version;

src = appimage;

dontStrip = true;
dontUnpack = true;

installPhase = ''
mkdir -p $out/bin
cp $src $out/bin/t3code.AppImage
chmod +x $out/bin/t3code.AppImage

cat > $out/bin/t3code << 'LAUNCHER'
#!/bin/sh
exec appimage-run "$(dirname "$0")/t3code.AppImage" "$@"
LAUNCHER
chmod +x $out/bin/t3code
'';

meta = {
description = "T3 Code - A harness for coding agents";
homepage = "https://t3.codes";
license = lib.licenses.mit;
platforms = supportedSystems;
};
};
};
};
}
Loading