agentleFS
kohojkohoj/skills/hermes-agent-dissect/SKILL.md

hermes-agent-dissect

Skill1 starsChanged 7 months agoMITView on GitHub

Navigate and extract reusable design patterns from the Hermes Agent source code for application in our project. It covers ten subsystems: bootstrap/CLI, conversation engine, prompt/context, tool system, gateway/messaging, skills, terminal backends, memory/persistence, RL training, and integrations (ACP/MCP/plugins).

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Locate the source root: search the project for hermes-agent/run_agent.py using Glob.

    line 29
  2. Distinctive:

    If the topic spans multiple areas, read the primary reference first, then follow its Neighbors section to related files.

    line 51
  3. Distinctive:

    If no topic matches, grep the source root for relevant keywords before giving up.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hermes Agent Source Dissection

Setup

The Hermes Agent source tree lives at hermes-agent/ in the project root. Auto-discover the source root by searching for hermes-agent/run_agent.py using Glob. The directory containing it is SOURCE_ROOT. All file paths in the reference files are relative to this SOURCE_ROOT.

How to use this skill

  1. Locate the source root: search the project for hermes-agent/run_agent.py using Glob. The parent directory of run_agent.py is SOURCE_ROOT.
  2. Identify the topic from the user's request
  3. Read the matching reference file from references/ below
  4. Read the actual source files listed in the reference — prepend SOURCE_ROOT/ to each path
  5. Present your findings using the output format at the bottom

Routing Table

TopicReference FileCovers
Startup, CLI, config, profiles, auth, credentialsreferences/bootstrap.mdEntry points, config.yaml, credential pool, constants, setup wizard
Conversation loop, tool calling, streaming, multi-turnreferences/engine.mdAIAgent main loop, tool dispatch, parallelization, budget, Honcho
System prompt, SOUL.md, context compression, cachingreferences/context.mdPrompt assembly, context files, compressor, cache strategy, tokens
Tool definition, registry, toolsets, execution, dispatchreferences/tools.mdTool interface, registry singleton, toolset composition, async bridge
Gateway, platforms, messaging, Telegram, Discord, Feishureferences/gateway.mdGatewayRunner, 14 platform adapters, sessions, delivery, interrupts
Skills, SOUL.md parsing, skill hub, security scanningreferences/skills.mdProgressive disclosure, hub lifecycle, guard patterns, slash commands
Terminal execution, Docker, SSH, Modal, local, sandboxreferences/terminals.mdBackend abstraction, persistent shell, approval, dangerous commands
Memory, sessions, persistence, checkpoints, todoreferences/memory.mdMemory tool, session storage, Honcho integration, checkpoint system
RL training, environments, benchmarks, trajectoryreferences/training.mdAtropos base env, OPD, web research, batch runner, compression
ACP, MCP, plugins, delegation, model routingreferences/integrations.mdACP server, MCP tool bridge, plugin system, subagent delegation

If the topic spans multiple areas, read the primary reference first, then follow its Neighbors section to related files.

If no topic matches, grep the source root for relevant keywords before giving up.

Output Format

Structure your response like this:

Pattern: one-line name Why it exists: 2-3 sentences on the problem it solves Data flow:

ASCII diagram showing runtime flow

Key code (from the source, simplified):

# The core abstraction, stripped to essentials

Files read: list with line numbers for critical sections Design tradeoffs: what was gained, what was sacrificed How to adapt: what to keep, what to change for our project

Architecture Overview

For orientation, here's how the 10 subsystems connect:

User Input (CLI / TUI / Gateway / ACP)
    |
[bootstrap] -> config.yaml, credentials, profile selection
    |
[engine] -> AIAgent loop: message -> LLM -> stream -> tool calls -> continue/end
    |                                    |
[context] -> prompt assembly        [tools] -> registry -> dispatch -> async bridge
    |           |                       |              |
[memory] <- compression          [skills] <--- [terminals] <- backends
    |                               |              |
    +-- persistence            [training] <- RL environments, benchmarks
                                    |
                          [integrations] -> ACP, MCP, plugins, delegation
                                    |
                            [gateway] -> 14 platforms, sessions, delivery

Each reference file contains: architecture knowledge, key abstractions, reading order, file table with line counts, and neighbor cross-references.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.