All skills
himalaya-mailHermes Agent

A tidy inbox

A skill for Hermes Agent and Claude Code that reads new email, files it into folders and saves reply drafts. It never sends or deletes mail.

Why I made it

My agent in Hermes runs around the clock, and I wanted it to keep an eye on my mail too. Hermes has a built-in himalaya skill, but it describes an old version of the program, so the agent kept typing commands that didn't work. I wrote my own skill and tested every command on himalaya 3.

What it does

  • Reads new email without marking it as read.
  • Creates folders and moves mail into them.
  • Saves reply drafts in the Drafts folder. You send them yourself, from your own mailbox.
  • Can check the inbox every hour and send you a short summary, for example on Telegram.
  • Learns from your corrections. When you move an email to another folder or edit a draft before sending, it writes down short rules for next time.

The skill never sends or deletes mail. It treats email content as data, not as instructions: an email that tries to give the agent orders gets flagged as suspicious and reported. In drafts it doesn't invent facts and leaves gaps for you to fill in.

What you need

  • Hermes Agent on a server or a computer.
  • Himalaya version 3 and a mail account with IMAP access. The steps are below.
  • The python3 and jq programs on the same server. The skill uses them to log its decisions and learn from your corrections. Most Linux servers already have python3, and you install jq with sudo apt install jq (Ubuntu and Debian) or brew install jq (macOS).

The skill also works in Claude Code. It's in the same plugin as my other skills, so once you install the plugin in Claude Code you have it right away.

What you get

  • A tidy inbox with no risk that the agent sends or deletes anything.
  • Reply drafts waiting for you in Drafts.
  • A short summary after every check, in a fixed layout that reads well on Telegram.

The Agent 24/7 pack is an extra, not a requirement, the skill works without it. The pack has a guide to setting up an agent like this in Hermes from scratch and 10 tasks you can give it to start with. You get it when you join the list, in the panel at the bottom of the page.

How to start

  1. Install himalaya on the server

    Himalaya is a free program the agent uses to read mail. The skill needs version 3. Run the command for the system Hermes runs on, then log in to the server again so the system finds it.

    Linux
    curl -sSL https://raw.githubusercontent.com/pimalaya/himalaya/master/install.sh | PREFIX=~/.local sh
    macOS
    brew install himalaya
  2. Add your mail account

    Himalaya reads the account from the file ~/.config/himalaya/config.toml. The first command creates the folder and opens this file in nano, a simple editor. Paste the second block into it and put in your address and your mail provider's IMAP server. Save with Ctrl+O and Enter, then exit with Ctrl+X. There is no SMTP section on purpose: without it the agent has nothing to send mail with.

    Terminal
    mkdir -p ~/.config/himalaya && nano ~/.config/himalaya/config.toml
    config.toml
    [accounts.agent]
    default = true
    email = "your-address@example.com"
    display-name = "Agent"
    imap.server = "imaps://imap.example.com:993"
    imap.sasl.plain.username = "your-address@example.com"
    imap.sasl.plain.password.command = "cat ~/.config/himalaya/.password"
    Servers and logins of popular mail providers
  3. Save the password and check the connection

    You type the password yourself, on the server, never in the chat with the agent. With Gmail and iCloud your normal password won't work: you need an app password, created in your account settings (in Gmail, after you turn on 2-step verification). Outlook and Microsoft 365 don't accept passwords at all and need an OAuth2 token, described in the examples in the repo. The first command asks for the password and saves it in a file only you can read. The password stays hidden while you type. The second command checks the connection: imap: OK means it works.

    Terminal
    printf 'Password: '; stty -echo; read -r H; stty echo; echo; printf '%s' "$H" > ~/.config/himalaya/.password; unset H; chmod 600 ~/.config/himalaya/.password ~/.config/himalaya/config.toml
    Terminal
    himalaya account check
  4. Install the skill in Hermes

    One command on the server where Hermes runs.

    Terminal
    hermes skills install MikolajKopec/skills/skills/hermes/himalaya-mail --category email
  5. Say what you need

    Message your agent in plain words, for example:

    Message your agent
    Check new mail and draft replies to questions from clients.

For technical folks

Install the skill in Hermes with one command:

Terminal
hermes skills install MikolajKopec/skills/skills/hermes/himalaya-mail --category email

Requirements from the repo: Needs himalaya 3.x on PATH and an IMAP account in ~/.config/himalaya/config.toml. Works as a Hermes Agent skill and as a Claude Code skill.

Skill source on GitHub
The Agent 24/7: start pack. A guide and tool icons stick out of an orange box.

After you sign up, you get the “Agent 24/7: start” pack

  • A 25-page PDF guide: the install step by step, a security checklist and a page on what to do when something doesn't work.
  • PROMPT.md for Claude Code: paste it in and it walks you through installing your agent in about an hour.
  • 10 ready-made tasks, each with a schedule, a risk level and a prompt to copy.

This is a signup to my newsletter. After the pack, you get what I'm working on, before it goes on the site. You can unsubscribe with one click. Details in the Privacy Policy.