Skip to content

2.6.0 - Kiro threads load t3-pstack

Choose a tag to compare

@chhoumann chhoumann released this 21 Nov 11:17
· 5 commits to main since this release
3f15426

T3 threads on the Kiro provider now load t3-pstack: its skills, as plain Kiro skills, and the session-start hook that routes work to poteto-mode.

Kiro is a fourth host. Kiro loads a skill from <home>/skills/<name> and a hook from any file in <home>/hooks, where the home is $KIRO_HOME, else ~/.kiro. t3-pstack reaches it as plain skills, with no Kiro manifest. Kiro names no plugin root to a hook, so session-start.sh takes a kiro mode whose second argument is the root. That mode prints the routing text, then a paragraph for Kiro. The paragraph says that skills there have bare names, so t3-pstack:<name> is the <name> skill and /t3-pstack:<name> is /<name>. It names the plugin root, which a skill's path does not lead to, since each skill is a link. It also says to load delegate_task and T3's other tools with the tool-loading tool before the first call, since Kiro can defer the t3-code MCP server's tools. A sheet that turns the hook off makes the mode print nothing. Neither pinned hooks file changes.

The skill text names Kiro's forms. Where the hosts differ, the text now gives Kiro's form too: /poteto-mode for a skill's name, ${KIRO_HOME:-~/.kiro}/t3-pstack/ for poteto-agent's plugin lookup, and .kiro/skills and ~/.kiro/skills for the skills directory. Each comes from a Kiro clause in an existing host-naming rule in tools/substitutions.json, so a sync keeps it. poteto-help's install sentences name no host. They say the installer installs t3-pstack in every home T3 can run.

The installer fills each Kiro home T3 runs. T3 starts a kiro instance on kiro-cli, or the instance's config.binaryPath, with the instance's environment over its own. It passes the instance's KIRO_HOME as written, with no ~ expansion. An instance with no KIRO_HOME of its own inherits the one the installer runs with, and so does T3's built-in kiro instance. Kiro reads that value only when it is an absolute path that does not hold the home folder. For an empty value, a relative one such as ~/.kiro-work, or one that holds the home folder, such as /, Kiro reads ~/.kiro. The installer resolves each KIRO_HOME the same way, the shell's included, and doctor warns of each value Kiro ignores. An instance whose KIRO_HOME is a T3 secret gets no home, since T3's settings file does not hold the value, and doctor warns with the --kiro-home <dir> fix. The installer finds each kiro instance in T3's settings, disabled ones included. It also finds T3's built-in kiro instance when a project turns it on without a settings entry, the shell's KIRO_HOME, and each --kiro-home <dir>. A machine where nothing names a Kiro home gets no Kiro row. In each home, install and update copy the plugin to <home>/t3-pstack, swapping the whole tree in by rename as for Antigravity. The copy holds .t3-pstack-install.json, which records the version, every file the installer put there, and the hashes of the hooks text it writes and of the earlier release's hooks file it replaces. They link each skill from <home>/skills/<name> to the copy and write <home>/hooks/t3-pstack.json, which runs the hook at SessionStart and PostCompact. Kiro has no skill namespace, so an entry of a plugin skill's name that the installer did not make keeps that skill from loading. That entry can be a user's own skill, a plain copy, or a link into another checkout. The installer leaves it as it is and links the other skills. A tree at <home>/t3-pstack with no record from the installer, such as a clone or a hand copy of the plugin, is left whole too, with no links or hooks file pointing into it, and doctor names it. So is a copy that holds a file the record does not list. update repairs a copy of its own that lost its manifest. A run repoints a link of its own at the wrong target, unlinks a skill the release dropped, and rewrites the hooks file an earlier release wrote, and a second run changes nothing. It leaves a hooks file it did not write, and doctor names it. doctor checks the copy's version and files, every skill link, each colliding entry by name with its kind and fix, and the hooks file. The hooks file runs sh, so a Kiro home on Windows gets no session-start routing. Kiro trusts no hook by hash, so the file has no pin in tools/frozen-hooks.json.

On Kiro CLI 3.5, the installer filled a throwaway home from T3 settings that name a kiro instance. A session started there as T3 starts one, kiro-cli acp --agent-engine=v3 --auth-method=cli with T3's opt-in to hooks files, listed all 66 plugin skills as skill commands. It reported both hooks registered and active, at SessionStart and PostCompact, and the command it registered printed the routing text and the Kiro paragraph. That check needs no account, and the end-to-end test runs it. In a signed-in kiro-cli chat --v3 session on such a home, with a space in its path, the hook's whole output reached the model, which found poteto-mode among its skills and named the plugin root the paragraph gives.

This is a port release. It syncs nothing from upstream, so all three components stay pinned at cursor/plugins 0b46ec3, as in 2.5.3. It is a minor release, since it adds a harness. Run npx -y github:chhoumann/t3-pstack update after it, as after every release, so Codex trusts the hook again and each Kiro home gets its copy.