Repository navigation
feat(skills): ship built-in tmux skill via seed-if-absent - #890
Merged
Merged
Conversation
Embed curated skills in the binary and seed them into ~/.infer/skills on `infer init` (seed-if-absent), starting with a `tmux` skill that teaches the agent to drive interactive terminal programs. The skill directs the agent to reuse the current tmux session and split a pane the user can watch, falling back to a detached session only when not already inside tmux. - internal/services/skills/builtins.go: //go:embed + SeedBuiltins(destDir, overwrite) - cmd/init.go: seed into ~/.infer/skills in the home-init path - config/prompts.go: point the subagent screen/input tools at the tmux skill for non-subagent programs - tests/e2e/tmux_tui_test.go: drive the chat TUI via tmux against the mock - docs/skills.md, AGENTS.md, CLAUDE.md: document built-ins; the tmux skill is the single source of truth for the TUI-driving recipe
edenreich
commented
Jul 12, 2026
Co-authored-by: Eden Reich <[email protected]>
Contributor
|
🎉 This PR is included in version 0.144.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #827.
Ships built-in skills embedded in the binary and seeded into
~/.infer/skills/<name>/oninfer init(seed-if-absent, so user editssurvive), reusing the existing skills loader end-to-end — no new scope, no new
config. First built-in is a
tmuxskill teaching the agent to driveinteractive terminal programs.
Behavior
tmuxskill directs the agent to reuse the current tmux session andsplit a pane the user can watch when
$TMUXis set, and to start a detachedsession only when not already inside tmux.
project-scope shadow,
disabled_skills,init --overwritereset.ReadSubagentScreen/SendSubagentInputdescriptions now point at the skillfor non-subagent programs (orthogonal to the CLI-managed interactive-subagent
panes).
Consolidation
AGENTS.md"Driving the chat TUI via tmux" is trimmed to repo/mock-gatewayglue + a pointer to the skill (single source of truth).
CLAUDE.mdupdated tomatch. New
tests/e2e/tmux_tui_test.godrives the real chat TUI the same way.Tests
SeedBuiltinsunit tests: seed-when-missing (validates via the loader),not-overwritten, overwrite-resets.
TestChatTUIViaTmux(skips cleanly iftmuxis not on PATH).task test+task lintgreen.Follow-ups (not in this PR)
infer initwon't re-seed over analready-initialized home, so refreshing a single built-in after an update
needs a manual file replace or
init --overwrite. ALoad()-time seed (theissue's original suggestion) would make "delete the dir + run any command"
reseed cleanly — worth a follow-up.
tmuxis installed (flox/CI env wouldneed it added + a relock).
[DOCS]ticket forinference-gateway/docson built-in skills.