Skip to content

feat(skills): ship built-in tmux skill via seed-if-absent - #890

Merged
edenreich merged 2 commits into
mainfrom
feat/827-builtin-tmux-skill
Jul 12, 2026
Merged

edenreich merged 2 commits into
mainfrom
feat/827-builtin-tmux-skill

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

Closes #827.

Ships built-in skills embedded in the binary and seeded into
~/.infer/skills/<name>/ on infer init (seed-if-absent, so user edits
survive), reusing the existing skills loader end-to-end — no new scope, no new
config. First built-in is a tmux skill teaching the agent to drive
interactive terminal programs.

Behavior

  • The tmux skill directs the agent to reuse the current tmux session and
    split a pane the user can watch
    when $TMUX is set, and to start a detached
    session only when not already inside tmux.
  • Customization is free via existing knobs: edit-in-place (never re-seeded),
    project-scope shadow, disabled_skills, init --overwrite reset.
  • ReadSubagentScreen / SendSubagentInput descriptions now point at the skill
    for 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-gateway
    glue + a pointer to the skill (single source of truth). CLAUDE.md updated to
    match. New tests/e2e/tmux_tui_test.go drives the real chat TUI the same way.

Tests

  • SeedBuiltins unit tests: seed-when-missing (validates via the loader),
    not-overwritten, overwrite-resets.
  • e2e TestChatTUIViaTmux (skips cleanly if tmux is not on PATH).
  • task test + task lint green.

Follow-ups (not in this PR)

  • Seeding is init-triggered; a plain infer init won't re-seed over an
    already-initialized home, so refreshing a single built-in after an update
    needs a manual file replace or init --overwrite. A Load()-time seed (the
    issue's original suggestion) would make "delete the dir + run any command"
    reseed cleanly — worth a follow-up.
  • CI: the e2e tmux test only runs where tmux is installed (flox/CI env would
    need it added + a relock).
  • [DOCS] ticket for inference-gateway/docs on built-in skills.

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
edenreich requested a review from a team as a code owner July 12, 2026 15:30
Comment thread cmd/init.go Resolved
@edenreich
edenreich merged commit a32c94b into main Jul 12, 2026
1 check passed
@edenreich
edenreich deleted the feat/827-builtin-tmux-skill branch July 12, 2026 15:37
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.144.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Ship built-in skills with the CLI (seed-if-absent) with a tmux starter skill

1 participant