Skip to content

CLI & sessions

The Hermes CLI is the primary interface for local work. Understanding sessions helps you work efficiently offline.

Starting a session

bash
# Default session
hermes

# From a project directory (loads context files)
cd ~/Projects/FDE/hermes-course/hermes-mastery-docs
hermes

# With a specific profile
hermes --profile work

Useful slash commands

CommandWhat it does
/model [name]Show or switch model mid-session
/personality [name]Switch personality
/memoryView or manage stored memory
/skillsSearch, install, list skills
/toolsManage tools
/compressSummarize history to reclaim context
/usageShow token usage vs. the context limit
/new (/reset)Start a fresh session
/clearClear the screen and start a new session
/reload-mcpReload MCP servers after a config change
/helpAll commands

/compress and /usage matter most with local models: small context windows fill up fast during multi-step agent work, and compressing in place beats losing your thread.

Session lifecycle

text
Start session → Hermes loads SOUL.md + context files + memory
             → You give tasks → Hermes uses tools
             → Session ends → Memory persists for next time

Memory and skills carry over. Conversation history is stored in ~/.hermes/sessions/.

Working across directories

text
Change to ~/Projects/FDE/hermes-course and list all markdown
files. Then read the README and summarize the project in 3 bullets.

Hermes can navigate the filesystem. Start sessions from the project root when possible so context files load automatically.

Multi-step tasks

For complex offline work, guide Hermes in stages:

text
Step 1: Scan docs/ and list all pages missing from the sidebar.
Wait for my OK before editing config.mts.

This prevents the agent from making too many changes at once, which matters more with slower local models.

Ending and resuming

Sessions persist. To resume recent work, use flags on launch:

bash
hermes --continue            # resume the most recent session (or -c)
hermes --continue <name>     # resume by name
hermes --resume <id>         # resume a specific session by id or title (or -r)

Inside a session, /resume <name> does the same thing.

Next: the learning loop.

Personal learning notes on Hermes Agent. Not affiliated with Nous Research. Verify against official docs.