Skip to content

feat(init): add Swival agent support#1106

Open
jedisct1 wants to merge 1 commit intortk-ai:developfrom
Swival:feat/swival-agent-support
Open

feat(init): add Swival agent support#1106
jedisct1 wants to merge 1 commit intortk-ai:developfrom
Swival:feat/swival-agent-support

Conversation

@jedisct1
Copy link
Copy Markdown

@jedisct1 jedisct1 commented Apr 9, 2026

Summary

  • Add support for the Swival agent.
  • rtk init --agent swival installs a Python middleware adapter and patches swival.toml to use it
  • --global writes to ~/.config/swival/ instead; --uninstall cleans up both.

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

This adds support for initializing `rtk` for use with Swival.

Swival's `command_middleware` config key accepts a path to a
subprocess that intercepts shell commands as JSON on `stdin` and
returns an allow/deny/rewrite decision on `stdout`.

`rtk init --agent swival` writes a Python adapter to `.rtk/` (or
`~/.config/swival/` with `--global`) and patches `swival.toml` to
point `command_middleware` at it.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 9, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants