You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Host integration for declaratively managed machines: one place for the seams NixOS-style hosts need
#38143
On machines that are configured declaratively (NixOS and Home Manager here; systemd credentials, agenix or sops elsewhere), T3 needs a handful of seams into host tooling. Today each one is either missing, an environment variable, or a hard-coded default, so we carry them as patches in a fork. I'd like to agree on a direction before proposing any of them as separate changes: one documented host-integration section with fixed contracts, settable from settings.json by the user or pinned by managed policy (#31900), with no knowledge of any particular host tool inside T3.
Reading secrets the host already decrypted. Proposed separately in #35285: a file secret provider that reads owner-only files under a configured root, so provider keys can point at /run/user/1000/agenix/... instead of being pasted per machine.
Writing secrets into the host's store. This one is new. An agent asks for a token with request_secret, and the value has to end up in the host's encrypted store (agenix in our case), not in T3. With delivery: "file" that took two steps: T3 wrote an owner-only file, and host tooling picked it up later. On 2026-11-17 T3's sweep removed the file before the second step ran, and the token had to be created and pasted again.
What we run now is a delivery mode that keeps the T3 card as the entry surface and drops the second step:
The card names a configured store and shows the target fields the agent asked for.
On save, the server runs the store's argv from settings, with the fields as --key=value arguments and the value on stdin only. Nothing goes in argv, env, a file or a log, and T3 keeps no copy.
The command prints one JSON object. Only that object (for us: path, commit, verify and rekey state) reaches the agent and the turn item.
A non-zero exit shows its message on the card, which stays open to retry or decline.
An unconfigured store refuses the request when the agent asks.
Our version still names agenix in the schema. A generic secretStores.<id> = { label, command, fields } would fit #38103 and the other secret-provider ideas better.
Resource policy owned by the host.#24757 asks for a host-managed mode for the agent slice limits. #37876 reports that one tool's OOM kill stops the whole agent. We patch the OOM half: every agent scope uses OOMPolicy=continue, so a killed tool fails its own call and the agent carries on. One agentResources: "host-managed" switch could cover both reports.
Declarative provisioning.#32336 asks for declarative desktop connections, and we run something close to it, plus t3 project import from a JSON batch and an environment self-description that works without a running server. A Home Manager module uses them to set up a fresh machine.
File locations. The desktop app keeps its Electron data under XDG_CONFIG_HOME. Moving it means overriding XDG_CONFIG_HOME, which also hides the user's mimeapps.list from everything the app starts. We added T3CODE_DESKTOP_APP_DATA_DIR for the Electron data directory alone; #19591 asks for the same kind of split.
What I'm asking
Is a host-integration section, with these as its first entries, a direction you'd consider? Or would you rather see each one as its own small setting?
Should these live in settings.json, in managed policy, or in both (policy pins, the user sets)?
For writing secrets: is a configured command with a stdin-only, JSON-result contract acceptable at all, or should T3 stay read-only toward host secret stores?
I won't open PRs for any of this without a go-ahead on its scope. I'm happy to split this into separate Ideas if that's easier to discuss.
Drafted with Claude Opus 5.5 (Claude Code). The fork changes it describes were written with coding agents.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
On machines that are configured declaratively (NixOS and Home Manager here; systemd credentials, agenix or sops elsewhere), T3 needs a handful of seams into host tooling. Today each one is either missing, an environment variable, or a hard-coded default, so we carry them as patches in a fork. I'd like to agree on a direction before proposing any of them as separate changes: one documented host-integration section with fixed contracts, settable from
settings.jsonby the user or pinned by managed policy (#31900), with no knowledge of any particular host tool inside T3.The seams we run today
All of these run as patches on our NixOS machines. The fork is public at https://github.com/caniko/t3code (branch
canix).Reading secrets the host already decrypted. Proposed separately in #35285: a
filesecret provider that reads owner-only files under a configured root, so provider keys can point at/run/user/1000/agenix/...instead of being pasted per machine.Writing secrets into the host's store. This one is new. An agent asks for a token with
request_secret, and the value has to end up in the host's encrypted store (agenix in our case), not in T3. Withdelivery: "file"that took two steps: T3 wrote an owner-only file, and host tooling picked it up later. On 2026-11-17 T3's sweep removed the file before the second step ran, and the token had to be created and pasted again.What we run now is a delivery mode that keeps the T3 card as the entry surface and drops the second step:
--key=valuearguments and the value on stdin only. Nothing goes in argv, env, a file or a log, and T3 keeps no copy.Our version still names agenix in the schema. A generic
secretStores.<id> = { label, command, fields }would fit #38103 and the other secret-provider ideas better.Resource policy owned by the host. #24757 asks for a host-managed mode for the agent slice limits. #37876 reports that one tool's OOM kill stops the whole agent. We patch the OOM half: every agent scope uses
OOMPolicy=continue, so a killed tool fails its own call and the agent carries on. OneagentResources: "host-managed"switch could cover both reports.Declarative provisioning. #32336 asks for declarative desktop connections, and we run something close to it, plus
t3 project importfrom a JSON batch and an environment self-description that works without a running server. A Home Manager module uses them to set up a fresh machine.File locations. The desktop app keeps its Electron data under
XDG_CONFIG_HOME. Moving it means overridingXDG_CONFIG_HOME, which also hides the user'smimeapps.listfrom everything the app starts. We addedT3CODE_DESKTOP_APP_DATA_DIRfor the Electron data directory alone; #19591 asks for the same kind of split.What I'm asking
settings.json, in managed policy, or in both (policy pins, the user sets)?I won't open PRs for any of this without a go-ahead on its scope. I'm happy to split this into separate Ideas if that's easier to discuss.
Drafted with Claude Opus 5.5 (Claude Code). The fork changes it describes were written with coding agents.
All reactions