Gormes

Cross-Project Synthesis Plan

Cross-Project Synthesis Plan

Date: 2026-04-30 Scope: Synthesis of 12 opensource projects analyzed in workspace-mineru Goal: Identify adoptable features, reference implementations, and roadmap additions for Gormes-Agent


Projects Analyzed

ProjectLanguageLinesWhat It IsGormes Relevance
hermes-agentPython1.2M+Upstream agent (Gormes parity target)Canonical feature set to port
honchoPython~15KMemory/session platform (Honcho)Memory architecture patterns
gbrainTypeScript~25KKnowledge graph runtimeAuto-wiring, search, job queue
browser-harnessPython~5KBrowser automation (CDP)Browser tool parity reference
go-browser-harnessGo~3KGo browser automation portDirect code donor
mercury-agentTypeScript~8KSoul-driven CLI/Telegram agentSafety, memory, loop detection
space-agentJavaScript~12KBrowser-first agent frameworkSkill metadata, web UI
picoclawGo~20KUltra-lightweight agentChannel adapters, provider patterns
go-agent-os refsGo~50K8 donor repos (adk-go, nanobot, etc.)Reusable patterns, interfaces

Top 20 Features to Adopt (Priority Order)

P0 — Critical Path (Blocks Dogfood Milestone)

#FeatureSourceGormes PhaseEffortRationale
1Permission-hardened shellMercury5.A (Tool Registry)MediumZero safety today; 36+ blocklist patterns, cwdOnly, filesystem scoping
2Native prompt builderHermes4.CLargeagent/prompt_builder.py (1,122 lines) — critical for Python-free turn
3Context compression reconciliationHermes4.BMediumUpstream 5006b220 drift; tool-result pruning, head/tail invariants
4Provider fallback chainMercury + Picoclaw4.ASmallDeepSeek → OpenAI → Anthropic → Grok → Ollama resilient routing
5Loop detection (5-type)Mercury5.AMediumHard loop, failing loop, text repetition, no-action, same-tool

P1 — High Impact (Next 90 Days)

#FeatureSourceGormes PhaseEffortRationale
6Structured memory (typed)Mercury + Honcho6Large6 types: identity, preference, goal, habit, episode, reflection
7Skill metadata placementSpace-agent6Smallmetadata.when, metadata.loaded, metadata.placement in SKILL.md
8Browser harness doctorgo-browser-harness5.BSmallgo-browser-harness doctor subcommand — production readiness
9Retry-After parsing + backoffPlandex (ref)4.HSmallplandex/model_error.go pattern — classify + extract retry timing
10Tool result truncationNanobot (ref)5.ASmall50 KiB cap, persist oversized output, sanitize paths
11Token budget trackerAxe (ref) + Mercury5.QMediumDaily mutex-protected counter, auto-concise at 70%
12Zero-LLM knowledge graph wiringGBrain6LargeRegex-based auto-links, brain-first 5-step lookup

P2 — Medium Term (6 Months)

#FeatureSourceGormes PhaseEffortRationale
13Credential + OAuth (XDG)Hermes + goclaw (ref)4.GMediumXDG-scoped token storage, Google OAuth PKCE
14Deterministic write queueEngram (ref)3/6SmallSerialized MCP/GONCHO writes, bounded channel, panic recovery
15Minions job queueGBrain5/6LargePostgres-native BullMQ-inspired, DAGs, stall detection
16Image token estimationNanobot (ref)4.DSmallDimension-based token counting for image routing
17State machine transitionsAgentControlPlane (ref)4.IMediumTurn lifecycle: admitted → planning → building → tool_calls → final

P3 — Long Term (12 Months)

#FeatureSourceGormes PhaseEffortRationale
18Cathedral II code navigationGBrain5.JLargeCall-graph edges, two-pass retrieval, 5 code commands
19Soul/personality systemMercury6Mediumsoul.md (heart), persona.md (face), taste.md (palate), heartbeat.md
20Web dashboard (React)Hermes + Space5.QLargeHermes has 191K-line TUI gateway; Space has browser-first widgets

Reference Implementation Quick Lookup

When implementing a row, consult these donor files before writing from scratch:

PatternDonor FileGormes TargetLicense
OAuth PKCEgoclaw/internal/oauth/openai.gointernal/oauth/CC BY-NC 4.0 (Juan-permitted)
Retry-After parseplandex/app/server/model/model_error.gointernal/hermes/retry.goApache 2.0
Tool truncationnanobot/pkg/agents/truncate.gointernal/tools/truncate.goApache 2.0
Token budgetaxe/internal/budget/budget.gointernal/hermes/budget.goApache 2.0
Write queueengram/internal/mcp/write_queue.gointernal/goncho/writequeue.goApache 2.0
SQLite/FTS5 schemaengram/internal/store/store.goGONCHO enhancementApache 2.0
State machineagentcontrolplane/acp/internal/controller/task/state_machine.goTurn lifecycleApache 2.0
Tool declarationtrpc-agent-go/tool/tool.gointernal/tools/tool.goApache 2.0
Await-user-replytrpc-agent-go/agent/await_user_reply.gointernal/gateway/routing.goApache 2.0
Provider error vocabgoclaw/internal/oauth/openai_quota.gointernal/hermes/errors.goCC BY-NC 4.0 (Juan-permitted)

Hermes Parity Gap Register

Critical Gaps (Blocking Dogfood)

Hermes FileLinesGormes StatusAction
agent/prompt_builder.py1,122Not startedPort to internal/hermes/prompt_builder.go
agent/context_compressor.py1,414PartialReconcile upstream 5006b220
tools/terminal_tool.py2,307BasicAdd PTY, shell blocklist, cwdOnly
tools/code_execution_tool.py1,609Not startedSandboxed execution policy
tools/mcp_tool.py + OAuth3,140 + 22KPartialFull MCP client + OAuth flow
hermes_cli/auth.py4,744PartialXDG token storage, OAuth flows

Large Gaps (Post-Dogfood)

Hermes FileLinesGormes StatusAction
tools/file_operations.py50,764~200 linesMajor expansion needed
tools/web_tools.py89,105PartialWeb scraping parity
tools/vision_tools.py31,333Not startedVision pipeline
tools/voice_mode.py38,753PartialFull voice mode
tools/process_registry.py61,200BasicProcess lifecycle
tools/checkpoint_manager.py31,551BasicCheckpoint/restore
gateway/run.py12,215PartialGateway runtime
gateway/session.py54,707PartialSession management

Massive Gaps (Long Term)

Hermes FileLinesGormes StatusAction
tools/skills_hub.py118,874BasicFull skills hub
tui_gateway/server.py191,064MinimalTUI gateway server
gateway/platforms/discord.py173,474BasicFull Discord parity
gateway/platforms/telegram.py141,434BasicFull Telegram parity
cron/scheduler.py58,318BasicFull scheduler
cli.py519,989PartialCLI parity

Suggested New Progress.json Rows

Based on cross-project analysis, the following rows should be added to progress.json:

Phase 4 — Brain Transplant

4.J Permission-Hardened Tool Execution

  • contract: Shell blocklist, filesystem scoping, permission approval UX
  • source_refs: mercury-agent/src/core/permissions.ts, hermes-agent/tools/path_security.py
  • write_scope: internal/tools/permissions.go, internal/tools/shell_blocklist.go
  • test_commands: go test ./internal/tools -run TestPermission -count=1
  • acceptance: 36+ shell blocklist patterns, folder-level read/write scopes, inline y/n/always approval

4.K Provider Fallback Chain

  • contract: DeepSeek → OpenAI → Anthropic → Grok → Ollama resilient routing
  • source_refs: mercury-agent/src/core/providers.ts, picoclaw/pkg/providers/
  • write_scope: internal/hermes/fallback_chain.go
  • test_commands: go test ./internal/hermes -run TestFallback -count=1

Phase 5 — Final Purge

5.R Loop Detection

  • contract: 5-type loop detector (hard, failing, text repetition, no-action, same-tool)
  • source_refs: mercury-agent/src/core/loop_detection.ts
  • write_scope: internal/agent/loop_detector.go
  • test_commands: go test ./internal/agent -run TestLoopDetection -count=1

5.S Browser Harness Doctor

  • contract: go-browser-harness doctor subcommand with endpoint health checks
  • source_refs: go-browser-harness/docs/parity-matrix.md
  • write_scope: go-browser-harness/cmd/doctor.go
  • test_commands: go test ./go-browser-harness -run TestDoctor -count=1

Phase 6 — Learning Loop

6.D Structured Memory Types

  • contract: 6 typed memory categories with confidence/durability scoring
  • source_refs: mercury-agent/src/core/memory.ts, honcho/src/models.py
  • write_scope: internal/goncho/typed_memory.go
  • test_commands: go test ./internal/goncho -run TestTypedMemory -count=1

6.E Skill Metadata Placement

  • contract: metadata.when, metadata.loaded, metadata.placement in SKILL.md schema
  • source_refs: space-agent/src/skills/schema.js
  • write_scope: internal/skills/metadata.go
  • test_commands: go test ./internal/skills -run TestMetadata -count=1

6.F Zero-LLM Knowledge Graph

  • contract: Regex-based auto-link extraction, brain-first 5-step lookup
  • source_refs: gbrain/src/core/link-extraction.ts, gbrain/src/core/search/hybrid.ts
  • write_scope: internal/goncho/auto_link.go, internal/goncho/brain_first.go
  • test_commands: go test ./internal/goncho -run TestAutoLink -count=1

FeatureSourceWhy Not
Browser-first runtimeSpace-agentFundamentally different model (agent in browser vs Go backend)
WebLLMSpace-agentRequires browser runtime; Gormes is Go-native
Ultra-lightweight (<10MB)PicoclawDifferent target (server deployment vs $10 hardware)
Kubernetes ACP controllersAgentControlPlane (ref)Use local state machine first
Full TUI gateway server (191K lines)HermesToo large; build incrementally
Telegram org modelMercuryGormes gateway channels are different abstraction

Success Metrics

HorizonMetricTarget
30 daysPermission hardening36+ blocklist patterns, filesystem scoping shipped
30 daysProvider parity>80% of Hermes providers implemented
30 daysBrowser harness doctorgo-browser-harness doctor works
90 daysLoop detection5-type detector with tests
90 daysStructured memory6 typed categories with confidence scoring
90 daysSkill metadatametadata.when/loaded/placement in SKILL.md
90 daysNative prompt builderinternal/hermes/prompt_builder.go shipped
6 monthsContext compressionReconciled with upstream 5006b220
6 monthsGBrain patternsAuto-links + brain-first lookup working
6 monthsToken budgetDaily budget + auto-concise at 70%
12 monthsCathedral IICode navigation with call-graph edges
12 monthsMinions queuePostgres-native job queue with DAGs
12 monthsSoul systemPersonality files (soul.md, persona.md, etc.)
12 monthsWeb dashboardReact-based session/skills/chat UI

Current parity: ~20-30% → Target: 80%+ within 12 months


Next Actions

  1. Run gormes-planner to add the suggested rows above to progress.json
  2. Run gormes-parity-auditor on Hermes agent/prompt_builder.py, tools/terminal_tool.py, tools/code_execution_tool.py
  3. Start builder pass on 4.J Permission-Hardened Tool Execution (highest impact, smallest scope)
  4. Update completion-plan.md with cross-project synthesis as a reference surface