Hermes Dev Engineer
The complete engineering system for Hermes Agent: scaffold large projects, orchestrate parallel subagents, enforce quality gates, and evolve skills through every build.
Core Philosophy
Engineer smart, learn continuously. Every project built with this skill becomes a learning signal. After complex builds (5+ tool calls), Hermes auto-generates derived skills capturing the architecture patterns, pitfalls, and workflow refinements discovered. The more you build, the smarter the agent becomes.
Key principles:
- Fresh context per task: delegate independent work to isolated subagents
- Architecture-first: define interfaces and contracts before implementation
- Quality gates: no code lands without review, tests, and verification
- Progressive complexity: spike first, then build with confidence
- Memory-driven: project knowledge persists across sessions via MEMORY.md/USER.md
Quick Reference
| Pattern | Command/Trigger | Tool |
|---|---|---|
| Initialize project | "Scaffold a Python microservice" | execute_code + templates |
| Parallel module build | Delegate tasks via subagents | delegate_task |
| Quality gate | "Review before commit" | requesting-code-review skill |
| TDD cycle | "Write tests first" | test-driven-development skill |
| Architecture decision | "Design the data flow" | spike skill + subagent |
| Learn from build | Auto-triggered after 5+ tool calls | skill_manage |
When to Use
Activate this skill when:
- Building any software project with 3+ files or services
- Starting new repositories or microservices from scratch
- Refactoring existing codebases with cross-file dependencies
- Creating full-stack apps (frontend + backend + database)
- Engineering tasks requiring parallel workstreams
- User mentions "build", "create", "scaffold", "engineer", "develop"
- Tasks expected to exceed 5 tool calls or require quality enforcement
Skip when: One-off scripts (< 50 lines), documentation-only changes, or trivial file edits.
Workflow: Large Project Engineering
Phase 1 — Discovery & Planning (Parent Agent)
Goal: Understand requirements and produce a written implementation plan.
- Gather context — Read existing project files, understand constraints
- Run spike if uncertain — Use
spikeskill for throwaway experiments when architecture is unclear - Write plan — Use
writing-plansskill to create.hermes/plans/<plan-name>.md:- Task breakdown (bite-sized, independently delegable)
- File/module map
- Interface contracts (APIs, data models, function signatures)
- Dependency graph between tasks
- Verification criteria per task
Rule: No implementation starts without a written plan. Plans prevent scope creep and enable parallel execution.
Phase 2 — Scaffold & Foundation (Parent Agent)
Goal: Create project skeleton and shared infrastructure.
- Run init script — Execute
scripts/init_project.pywith project type and name:
Supported types:python3 scripts/init_project.py --type python-service --name my-service --path ./python-service,react-frontend,fullstack-app,microservice,cli-tool,python-lib - Set up shared code — Core models, utilities, configuration
- Create directory structure — Follow templates in
references/project-templates.md - Initialize version control —
git init,.gitignore, initial commit - Install dependencies — Based on project type requirements
Rule: The scaffold must compile/run before any feature implementation begins.
Phase 3 — Parallel Implementation (Subagent Orchestration)
Goal: Execute independent tasks in parallel using delegate_task.
When to delegate vs. direct execution:
| Scenario | Approach | Why |
|---|---|---|
| Independent modules | delegate_task parallel batch |
Fresh context, no interference |
| Sequential dependencies | Direct execution or chained subagents | Order matters |
| Mechanical batch ops | execute_code |
Cheaper, no reasoning needed |
| Complex reasoning per task | delegate_task with full context |
Fresh perspective finds bugs |
Parallel delegation pattern:
delegate_task(tasks=[
{
"goal": "Implement API routes: users, auth, billing",
"context": "Project at {project_path}. FastAPI app in src/api/. "
"Use pydantic models from src/models/. "
"Follow patterns in references/architecture-patterns.md",
"toolsets": ["terminal", "file"]
},
{
"goal": "Implement database layer: models, migrations, CRUD",
"context": "Project at {project_path}. SQLAlchemy in src/db/. "
"Schema defined in plan. Alembic for migrations.",
"toolsets": ["terminal", "file"]
},
{
"goal": "Implement frontend components: login, dashboard, settings",
"context": "Project at {project_path}. React app in frontend/src/. "
"Use shadcn/ui components. API client in frontend/src/api/.",
"toolsets": ["terminal", "file"]
}
])
Subagent context packing — critical: Every subagent starts with ZERO context. Pack everything it needs:
- File paths for all relevant code
- Interface contracts and type definitions
- Error messages (if fixing bugs)
- Testing commands to run after changes
- Constraints: "Do NOT modify X", "Use Y pattern"
Max concurrency: Default 3 parallel subagents. Raise via config.yaml for large projects:
delegation:
max_concurrent_children: 5
Phase 4 — Integration & Quality Gates (Parent Agent)
Goal: Merge subagent outputs, verify integration, enforce quality.
- Merge code — Review all files modified by subagents
- Run integration tests — Verify modules work together
- Apply quality gates — Trigger
requesting-code-reviewskill:- Security scan (check for secrets, injection risks)
- Static analysis (lint, type check)
- Code review via subagent (fresh context reviewer)
- Auto-fix loop for found issues
- Fix integration issues — Delegate fixes if complex, direct edit if simple
- Update documentation — README, API docs, architecture decisions
Quality gate checklist:
- All tests pass (
pytest,npm test, etc.) - Lint/type check passes (
ruff,mypy,tsc --noEmit) - Security scan clean (no secrets, no SQL injection, no XSS)
- Code review passed (independent subagent review)
- Integration verified (end-to-end smoke test)
Phase 5 — Learning & Evolution (Auto-Triggered)
Goal: Capture learnings and evolve skills for future builds.
After complex builds (5+ tool calls), Hermes automatically triggers the learning loop:
- Analyze build patterns — What worked? What failed? What was novel?
- Extract reusable patterns — Architecture decisions, design patterns, workflow optimizations
- Auto-generate skill — Hermes writes derived skill to
~/.hermes/skills/viaskill_manage:skill_manage( action="create", name="<project-type>-pattern", instructions="...captured workflow..." ) - Update MEMORY.md — Project context persists across sessions:
# Project: <name> - Type: <type> - Stack: <tech stack> - Patterns: <key architectural decisions> - Pitfalls: <issues encountered and solutions> - Update USER.md — Developer preferences learned:
# Preferences - Prefers <testing framework> for <language> - Default architecture: <pattern> - Quality gates: <enforced checks>
Manual learning triggers:
- "Save this pattern for next time"
- "Remember this architecture decision"
- "Turn this workflow into a reusable skill"
- "Learn from this build"
Architecture Patterns
Load references/architecture-patterns.md when making architectural decisions.
Key patterns:
- Layered Architecture — Presentation / Business / Data layers
- Microservices — Independent deployable services with API contracts
- Modular Monolith — Internal modules with clear boundaries, single deploy
- Event-Driven — Async communication via message queue
- CQRS — Separate read/write models for complex domains
- Ports & Adapters — Domain logic isolated from external concerns
Project Templates
Load references/project-templates.md for directory structures, config files,
and boilerplate per project type. Templates include:
- Python service (FastAPI + SQLAlchemy + Alembic + pytest)
- React frontend (Vite + TypeScript + shadcn/ui + React Query)
- Full-stack app (combined Python backend + React frontend)
- Microservice (gRPC/HTTP + Docker + k8s manifests)
- CLI tool (Click/Typer + config management + logging)
- Python library (src layout + poetry + pytest + docs)
Tool Integration Matrix
| Task | Primary Tool | Supporting Tools |
|---|---|---|
| Project init | execute_code (init script) |
file (write configs) |
| Code generation | delegate_task (subagents) |
execute_code (scaffold) |
| Testing | terminal (pytest/npm test) |
delegate_task (parallel test suites) |
| Code review | delegate_task (reviewer subagent) |
terminal (lint, security scan) |
| Documentation | file (write docs) |
web_search (lookup APIs) |
| Dependency mgmt | terminal (pip/npm/poetry) |
execute_code (parse lockfiles) |
| Deployment | terminal (docker/kubectl) |
file (write manifests) |
| Quality gates | requesting-code-review skill |
test-driven-development skill |
Subagent Orchestration Best Practices
Context Isolation Is a Feature
Subagents know NOTHING of the parent. Use this deliberately:
- Reviewer subagent — Fresh eyes catch bugs the author missed
- Research subagent — Unbiased exploration without parent hypothesis bias
- Implementation subagent — Clean slate, no confusion from prior attempts
Context Packing Checklist
Before delegating, verify the context includes:
- Project root path
- Relevant file paths (read/write targets)
- Interface contracts (types, schemas, APIs)
- Error context (for debugging tasks)
- Success criteria (how to verify completion)
- Constraints (what NOT to do)
- Test command (how to validate)
Anti-Patterns to Avoid
- The leaking abstraction — Don't delegate tasks that need continuous user clarification
- The chatty parent — Don't micro-manage subagents; give complete context upfront
- The merge conflict — Never have two subagents edit the same file simultaneously
- The infinite loop — Set max_iterations for subagents; default 50, lower for simple tasks
- The orphaned work — Subagents are synchronous; if parent is interrupted, children die
Continuous Evolution Setup
Auto-Evolution Configuration
Add to ~/.hermes/config.yaml to optimize learning:
# Learning loop optimization
skills:
auto_create: true # Auto-generate skills after complex tasks
min_tool_calls: 5 # Threshold for auto-skill creation
# Delegation tuning for large projects
delegation:
max_concurrent_children: 5 # Raise for more parallelism
max_spawn_depth: 2 # Enable orchestrator subagents
model: "google/gemini-flash-2.0" # Cheaper model for subagents
# Prompt cache preservation (keep system prompt stable)
# Avoid changing model mid-session
# Use /compress before hitting context limits
Project Memory Persistence
After each build, update MEMORY.md with:
- Architecture decisions and rationale
- Technology choices and versions
- Known issues and workarounds
- Performance characteristics
- Security considerations
This enables cross-session continuity: "Add a feature to the project we built last week" — Hermes recalls the context from MEMORY.md and continues seamlessly.
Pitfalls
- Scope creep: Without a written plan, projects grow indefinitely. Always use
writing-plansfirst. - Merge conflicts: Parallel subagents editing the same file corrupt code. Partition work by file/module.
- Context overflow: Long-running parent sessions hit token limits. Use
/compressperiodically. - Cache invalidation: Changing model or system prompt mid-session breaks prompt cache and increases cost.
- Subagent starvation: Under-specified context leads to poor subagent output. Pack context completely.
- Missing quality gates: Skipping review leads to bugs in production. Always run quality gates.
- No test coverage: Code without tests rots. Enforce TDD via
test-driven-developmentskill.
Verification
After each build phase, verify:
- Project scaffold compiles/runs without errors
- All delegated tasks completed with summaries
- Quality gates passed (tests, lint, security, review)
- Integration smoke test succeeds
- Documentation reflects current state
- New patterns captured in skills or memory



