Repository navigation
feat(hermes): add Hermes Agent support via rtk init --agent hermes - #1614
Conversation
📊 Automated PR Analysis
SummaryAdds first-class Hermes Agent support to RTK via Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
|
This commit looks good, should it be merged, so that we can use rtk in hermes agent? |
|
Hey @Kayphoon , Thanks for this new integrations, here are some first sight review to ensure conformity with codebase and proper integration. 1. Move plugin files to hooks/hermes/
2. Add uninstall support
3. Add discover integration
4. Improve Python plugin error reporting
4. Hermes config parsingCustom YAML config patching without a YAML library. Works for standard configs but has no test coverage for inline list formats (enabled: [a, b]). Worth adding edge case tests to confirm robustness. We prefer not adding a dependencies, but worth reviewing this part to ensure no futur issue with more complexe configurations. SummaryThanks for this PR, there is other opened PR for Hermes, i'm in favor of this one, awaiting for your answer for further review |
464ff48 to
ccd974e
Compare
Hey @aeppling,
Full local verification on ccd974e: cargo fmt --all --check, cargo clippy --all-targets -- -D warnings, cargo test --all (1848 passed, 0 failed), and python3 -m unittest discover -s hooks/hermes (18 passed). Happy to address any follow-up comments — thanks again for taking the time. |
|
Thanks for this. I spot-checked the latest PR head and found one config-patching issue to address before merge. Hermes serializes configs w/ PyYAML's default indentationless sequence style. So plugins:
disabled:
- google_meet
- spotify
enabled:
- disk-cleanup Running plugins:
disabled:
- google_meet
- spotify
enabled:
- rtk-rewrite
- disk-cleanup Hermes then fails to load the config with This also affects idempotency and uninstall: an existing same-indent Separate from that, I’d also recommend honoring |
82bd6c2 to
2a80c74
Compare
Thanks for catching this. I updated the Hermes config patching to handle PyYAML's indentationless sequence style for plugins.enabled. |
|
Hey @Kayphoon I've been testing Hermes with this RTK configuration, work well and saving tokens ! But i've come across some config errors while using, did not broke anything, but got some warning from Hermes agent when running. I did nothing special just installed and ran "rtk init --agent hermes -g" Invalid YAML when
|
2a80c74 to
8796d56
Compare
Hey @aeppling, thanks for giving it a real spin on Hermes and the clear repro. plugins:
enabled:
- fooThe latest PR head handles this shape. Instead of a hardcoded plugins:
enabled:
- foo
- rtk-rewriteI added an exact regression test for your repro input ( plugins:
enabled:
- fooAfter plugins:
enabled:
- foo
- rtk-rewriteAfter plugins:
enabled:
- fooNo Hermes warnings on load in that run. Separately, I added a |
|
@aeppling |
|
Hey @Kayphoon , you can cleanup here thanks :) then LGTM ! |
Signed-off-by: Kayphoon <[email protected]>
8796d56 to
f7c4bf6
Compare
Hey @aeppling, truly appreciate the thorough review on this one. The latest head is rebased on |
|
Thanks ! Will be available in next release :) |
…ion cleanup uninstall_omp now returns Result<()> and owns the user-facing summary, while uninstall_omp_at returns Result<Vec<String>> silently — matching the split established by uninstall_hermes_at and uninstall_codex_at (PR rtk-ai#1614). Removes the discarded return value at the caller and the duplicated println! channel inside _at. Also: complete dependency injection in resolve_omp_agent_dir_from_env so the PI_CONFIG_DIR branch is unit-testable; drop the misleading underscore prefix on rtkMissingWarned (TS convention reserves _ for unused bindings); restore the blank line between tests in discover::report. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Summary
rtk init --agent hermesterminaltool commands to RTK equivalents before executionrtk rewriteTest plan
cargo fmt --all --check && cargo clippy --all-targets && cargo testpython3 -m unittest discover -s hooks/hermes -p '*test*.py'(18 tests passed)rtk init --agent hermes→ verifiedgit statusrewrites tortk git status