Let's define Hermes, a keyboard-driven, information-dense interface for power users interacting with LLMs and Agents, built on a foundation of simple, versatile primitives.
Hermes: The Oracle Canvas
Core Metaphor: Hermes reimagines your interaction as navigating and manipulating a dynamic, interconnected "Oracle Canvas" – a multi-dimensional spreadsheet or a live IDE where every cell can be an input, an output, a process, or an agent. It's a blend of a Unix shell, a spreadsheet, a REPL, and a highly customizable IDE.
Design Philosophy:
- Atomic Units: Everything is a "Cell."
- Composability: Primitives combine in infinite ways.
- Transparency: See the state and flow of information.
- Velocity: Minimal keystrokes, maximum action.
- Context: Explicitly define the LLM's world.
- Emergence: Simple rules lead to complex workflows.
The Primitives
-
The Cell ([ID] <Content>): The Universal Container
- Definition: The fundamental unit. A named, addressable block of information or state.
- Content: Can hold plain text, markdown, code, LLM output, agent state logs, even references to binary data (images, audio).
- Properties: Each cell has a unique, short, auto-generated
ID (e.g., c1a, d2f, sum4). Can also be assigned user-defined Aliases (e.g., my_summary, task_list).
- State: Can display status indicators (e.g.,
(active), (done), (error)).
- Visual: In a grid-like layout, cells are distinct, resizable blocks. They dynamically resize to content or user preference.
-
The Hermes Bar (:): The Command & Query Omnibar
- Definition: Your primary interaction point, always at the bottom or top. It's a powerful command line for the canvas.
- Functionality:
- Command Execution:
:<command> [args]
- LLM Query:
:<llm-model> <prompt>
- Agent Invocation:
:<agent-name> <parameters>
- Navigation: Jumps, searches, view changes.
- Syntax: Inspired by Vim's command mode, Unix pipes, and shell completion. Context-sensitive suggestions appear as you type.
-
The Reference (@): Pointers & Context
- Definition: Used to point to the content of a Cell, or a range/selection of Cells.
- Syntax:
@cellID: Content of a specific cell.
@alias: Content of a cell referred by its alias.
@selection: Content of currently selected cells.
@tag#: All cells tagged with #tag.
@lineN: Specific line within the active cell.
- Versatility: The core primitive for building complex prompts, linking data, and chaining operations.
-
The Pipe (|): Flow & Transformation
- Definition: Connects the output of one operation (or the content of a cell) to the input of another. Inspired by Unix pipes.
- Syntax:
@cellID | :<command> [args]
- Versatility: Enables chained transformations, iterative refinement, and multi-stage workflows without copy-ppasting.
-
The Scope ({...} or Indentation): Context Definition
-
The Tag (#): Organization & Filtering
- Definition: Lightweight metadata for cells.
- Syntax:
#project_alpha, #idea, #todo, #summary, #agent_log
- Cells can have multiple tags.
- Versatility: Filtering, grouping, search, and implicitly defining context for agents (e.g., an agent always processes cells tagged
#unprocessed_data).
-
The Macro (! ): Reusable Workflows
- Definition: A user-defined sequence of Hermes Bar commands, cell operations, and references.
- Syntax:
!save_and_summarize [source_cell_id]
- Defined using a simple declarative language, stored in special
!macro cells.
- Versatility: Automates repetitive tasks, encapsulates complex logic, and allows for shared best practices.
How Incredible Things Emerge Naturally
By combining these primitives, users can build incredibly sophisticated workflows:
-
Dynamic Prompt Engineering & Iteration:
- User writes a prompt in
[p1] and data in [d1].
:llm @p1 { @d1 } > @result (writes output to [result])
- User refines
[p1], then !re-run @result @p1 @d1 (a macro to re-execute the LLM query with new p1 and overwrite result).
- Add a new cell
[critique] and populate it with [result] | :llm "Critique this summary."
- Then,
[critique] | :llm "Based on this critique, refine @result"
-
Agent Orchestration & Debugging:
[task_goal] "Research market trends for AI interfaces."
:web_agent @task_goal > @search_results (Web agent populates [search_results])
@search_results | :summarizer_agent > @summary_c1
@summary_c1 | :llm "Extract key takeaways." > @takeaways
- User sees
[search_results] updating in real-time, can intervene, ask :web_agent "Go deeper on X from @search_results".
- Agent actions and internal thoughts could be logged to specific
#agent_log cells, making their processes transparent and debuggable.
-
Self-Improving Loops & Data Transformation Pipelines:
- A macro
!refine_document [doc_cell_id] could:
- Take
@[doc_cell_id]
- Pipe it to
:grammar_llm "Correct grammar and spelling."
- Pipe that output to
:tone_llm "Adjust tone to professional."
- Pipe that to
:summarizer_agent to create a #[doc_cell_id]_summary cell.
- Finally, overwrite
[doc_cell_id] with the refined content.
- This creates a complete, automated content pipeline with a single command.
-
Knowledge Base Building & Linking:
[concept1] "A new interface idea." #idea #AI
[concept2] "Hermes as a shell." #idea #design
@concept1 @concept2 | :llm "Compare and contrast these concepts." > @comparison_cell #analysis
- Search:
:find #idea or :find "interface idea" to quickly pull up relevant cells.
UI & Interaction Sketch (Keyboard-Driven)
- Canvas Layout: A grid of distinct cells. Think Tiling Window Manager meets Excel.
- Navigation:
hjkl (Vim-style cell navigation)
Ctrl+n/p (next/previous cell in order)
Ctrl+f/b (page up/down)
/<search_term> (fuzzy search cells, jump to match)
:goto <cellID/alias>
Tab (cycle focus within elements of a cell or the Hermes Bar suggestions)
- Cell Manipulation:
i (insert mode into active cell)
yy (yank cell content)
p (paste content as new cell)
dd (delete cell)
:mv @oldID @newID (move cell content)
:edit @cellID (open cell in internal editor or external EDITOR for larger content)
- Selection:
v (visual mode - select cells with hjkl)
V (select entire row/column if applicable)
- Views (Lenses):
:grid (default multi-column grid)
:flow (linear, chat-like but with cell IDs)
:tree (hierarchical view, e.g., for agents that break down tasks)
:graph (visual graph of cell dependencies/references, interact via keyboard)
- Switch between views instantly with hotkeys (e.g.,
Ctrl+g, Ctrl+f, Ctrl+t).
- Help & Discovery:
:? <command>: Detailed help for a command.
:commands: List all available commands, filterable.
- Auto-completion in Hermes Bar suggests commands, cell IDs, tags, macros, and agent names.
Hermes isn't just an LLM chat client; it's a computational workspace where the LLM is one of many powerful, composable tools. By boiling interaction down to cells, references, and pipes, it empowers power users to craft incredibly flexible, transparent, and reproducible AI-driven workflows that transcend the limitations of traditional chat interfaces. The "incredible" isn't pre-built features; it's the freedom to build anything.