Add --code flag to note plugin | Generated by AI
Done. Updated ~/.hermes/plugins/note/__init__.py:
- Added
--codeflag parsing - When
--codeis set: callswrap_code_snippets()on the assistant response content before enqueuing, and stores"code": truein the queue entry - Updated docstring and
args_hint
Usage:
/note --code # save last response with code wrapping
/note 3 --code # save 3rd response with code wrapping
/note --title "Foo" --code
The queue entry flows through ww note watch / ww note process as usual — the content is already wrapped at enqueue time, same as the CLI path.