feat(droid): add Factory AI Droid support#912
Open
skrabe wants to merge 1 commit intortk-ai:developfrom
Open
Conversation
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
PreToolUsehook system with the samehookSpecificOutputJSON format as Claude Code, with the shell tool namedExecuteinstead ofBashRTK.md+@RTK.mdinAGENTS.md+settings.jsonpatchingChanges
New files:
hooks/droid/rtk-rewrite.sh— Shell hook script (delegates tortk rewrite, same JSON protocol as Claude Code)hooks/droid/rtk-awareness.md— Slim RTK awareness instructions for hook-based usagehooks/droid/README.md— Integration docsModified files:
src/main.rs— Added--droidflag toInitcommand, dispatch torun_droid(), wired intouninstall()src/hooks/init.rs— Addedrun_droid(),patch_droid_settings(),uninstall_droid(),resolve_droid_dir()README.md— Added Factory AI Droid to supported tools table and Quick StartInstall flow (
rtk init -g --droid)~/.factory/hooks/rtk-rewrite.sh(chmod 755)RTK.mdto~/.factory/RTK.md@RTK.mdreference to~/.factory/AGENTS.md(creates if missing, preserves existing content)~/.factory/settings.jsonwithPreToolUsehook entry (Executematcher)Uninstall flow (
rtk init -g --droid --uninstall)~/.factory/hooks/rtk-rewrite.sh~/.factory/RTK.md@RTK.mdline from~/.factory/AGENTS.md(preserves other content)~/.factory/settings.jsonTest plan
cargo fmt --all --checkpassescargo clippy --all-targets— no new warningscargo test— 1138 passed, 0 failedrtk init -g --droid --auto-patchinstalls all artifacts correctly@RTK.mdor settings entryrtk init -g --droid --uninstallremoves all RTK artifactsAGENTS.mdcontent andsettings.jsoncustom models preserved through install/uninstall cycle