Skip to content

feat: implement Two Friends Model (Hermes Bridge)#9

Open
siddhijadhav27 wants to merge 6 commits into
OpenScanAI:masterfrom
siddhijadhav27:issue-7-hermes-bridge
Open

feat: implement Two Friends Model (Hermes Bridge)#9
siddhijadhav27 wants to merge 6 commits into
OpenScanAI:masterfrom
siddhijadhav27:issue-7-hermes-bridge

Conversation

@siddhijadhav27

@siddhijadhav27 siddhijadhav27 commented May 23, 2026

Copy link
Copy Markdown

Problem

Paperclip agents (CEO/CTO/Founding Engineer) cannot execute code, run builds, or modify files. Hermes (AI assistant) can execute but lacks project management capabilities. They need to work together as a team.

What Changed

1. Hermes Bridge Script

  • scripts/hermes-bridge.ts — Background daemon that polls GitHub issues
    • Monitors issues labeled hermes-execution
    • Posts [IN_PROGRESS] / [DONE] / [FAILED] status comments
    • Updates issue labels (removes hermes-execution, adds hermes-done)
    • Sends Telegram notifications to user
    • Maintains state file to prevent duplicate execution
    • Supports multi-project (multiple bridge instances)

2. Hermes Executor Skill

  • skills/hermes-executor/SKILL.md — Documentation for Hermes execution
    • When to use Hermes execution vs Paperclip planning
    • Communication protocol (Paperclip <-> Hermes via GitHub issues)
    • Multi-project support setup
    • Safety controls and approval gates

3. Paperclip Create Agent Skill Update

  • skills/paperclip-create-agent/SKILL.md — Added Hermes execution labeling step
    • Label issue for Hermes when code execution is needed
    • Hermes picks up, executes, reports back

4. Environment Config

  • .env updated with bridge configuration:
    • BRIDGE_LABEL=hermes-execution
    • BRIDGE_POLL_INTERVAL=300000
    • BRIDGE_STATE_FILE=.hermes-bridge-state.json

How It Works (Two Friends Model)

Step 1: Paperclip detects bug

Step 2: Hermes Bridge polls and finds issue #100

Step 3: Paperclip sees comment

Step 4: Telegram notification sent to user

Step 5: User reviews PR

  • Approves and merges
  • Done!

Division of Responsibilities

Task Paperclip Hermes User
Detect bugs Yes No No
Create issues Yes No No
Plan solution Yes Yes (Review) No
Write code No Yes No
Test changes No Yes No
Create PR Yes (Description) Yes (Push/Branch) No
Track progress Yes Yes (Updates) No
Notify Yes Yes No
Review & merge No No Yes

Usage

# Run once
npx tsx scripts/hermes-bridge.ts --repo OpenScanAI/xShorts.News --once

# Run continuously (production)
npx tsx scripts/hermes-bridge.ts --repo OpenScanAI/xShorts.News --poll

# Or use systemd
systemctl --user start hermes-bridge

Files Changed

File Type Description
scripts/hermes-bridge.ts New Bridge daemon for Paperclip-Hermes communication
skills/hermes-executor/SKILL.md New Skill documentation for Hermes execution
skills/paperclip-create-agent/SKILL.md Modified Added Hermes execution labeling step
.env Modified Added bridge configuration

Related Issue

Closes #7

…s collaboration

- New script: scripts/hermes-bridge.ts — Polls GitHub issues labeled 'hermes-execution'
  - Posts IN_PROGRESS/DONE/FAILED status comments
  - Updates issue labels (removes hermes-execution, adds hermes-done)
  - Sends Telegram notifications to user
  - Maintains state file to prevent duplicate execution
  - Supports multi-project (multiple bridge instances)

- New skill: skills/hermes-executor/SKILL.md — Documentation for Hermes execution
  - When to use Hermes execution
  - Communication protocol (Paperclip <-> Hermes)
  - Multi-project support setup
  - Safety controls and approval gates

- Update: skills/paperclip-create-agent/SKILL.md — Added Hermes execution labeling step
  - Label issue for Hermes when code execution is needed
  - Hermes picks up, executes, reports back

- New service: systemd hermes-bridge.service for background polling
- Env config: BRIDGE_LABEL, BRIDGE_POLL_INTERVAL, BRIDGE_STATE_FILE

Usage:
  npx tsx scripts/hermes-bridge.ts --repo OpenScanAI/xShorts.News --once
  npx tsx scripts/hermes-bridge.ts --repo OpenScanAI/xShorts.News --poll
  systemctl --user start hermes-bridge

Closes OpenScanAI#7
Siddhi Jadhav added 5 commits May 23, 2026 21:51
…odel

- Add server/src/routes/hermes.ts to proxy CTO requests to Hermes API
- Mount hermesRoutes() in app.ts under /api/hermes/*
- Update .env with HERMES_INTERNAL_URL and HERMES_API_KEY
- Add skills/cto-hermes-executor/SKILL.md for CTO agent

This enables Paperclip CTO to execute tasks via Hermes API on port 8080,
completing the Two Friends Model collaboration pipeline.

Refs: OpenScanAI#7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two Friends Model - Paperclip + Hermes Collaboration

1 participant