Note Saving from Conversation History | Generated by AI

Home 2026.05

Done. Here’s what was implemented:

3 changes across 2 files:

  1. hermes_cli/commands.py — Added CommandDef("note", ...) next to the copy command
  2. cli.py — Added dispatch elif canonical == "note": in process_command()
  3. cli.py — Added _handle_note_command() method (58 lines) right after _handle_copy_command()

How it works:

The /note command does what ww note does — calls create_note_from_content() from the ww package — but instead of reading from the clipboard, it takes the last assistant response directly from self.conversation_history.

Usage:

/note                        # save last response as note (uses LLM to generate title)
/note 3                      # save 3rd assistant response
/note --title "My Title"     # save with a custom title (skips LLM title generation)
/note --dir ~/my-notes       # save to a custom directory (default: $BASE_PATH/notes)
/note 2 --title "Foo" --dir ~/notes

Key details:

To test: restart Hermes and run /note after getting a response. The ww package is already installed in your venv.


Back Donate