Skip to content

Decide whether to migrate off the T3CODE_* environment variables #340

Open

Description

@Jacksondr5

Decide whether to migrate off the T3CODE_* environment variables

J5 reads its base directory only from J5CODE_HOME (#68). But the code still uses about 105 other T3CODE_* variable names, such as T3CODE_PORT, T3CODE_HOST, T3CODE_NO_BROWSER, T3CODE_DEV_AUTH_TOKEN, and T3CODE_PORT_OFFSET. #68 deferred these to "the naming audit", which was never tracked.

Why migrate: Jackson's #68 ruling is that J5 never shares environment names with an installed T3 Code. A shell that sets T3CODE_PORT for T3 Code also steers J5. The same inheritance makes a J5 dev server take the live server's port when an agent runs inside J5 (AGENTS.md, "ways to hurt yourself").

The cost: almost all of these are read in upstream-owned files. Renaming them means edits across many upstream files, each carried through every upstream advance. That cuts against "upstream owns its product" and the fork's add-don't-modify rule.

Options:

  1. Rename all of them, with a J5CODE_* read and no T3CODE_* fallback. Consistent with Finish separating J5 from upstream T3 on disk: worktree .t3 → .j5code, T3CODE_HOME → J5CODE_HOME #68, but the largest fork surface.
  2. Rename only the ones where a collision with an installed T3 Code actually does harm (port, host, home-like paths, auth), and leave the rest.
  3. Leave them as upstream names, and scope Finish separating J5 from upstream T3 on disk: worktree .t3 → .j5code, T3CODE_HOME → J5CODE_HOME #68's ruling to on-disk locations.

Decision needed before any code.

Activity

  1. added
    jackson-direct
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jackson-direct

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions