Skip to content

Automation Scripts

Utility scripts for maintaining and growing the Hermes ecosystem.

Scripts

discover.py - Ecosystem Discovery Engine

Scans GitHub for new Hermes-compatible repositories across multiple search queries. Scores repos by relevance (stars, activity, topic match) and outputs a ranked list. Used by the Ecosystem Discovery Engine.

Usage:

python3 discover.py                    # Full discovery run
python3 discover.py --dry-run          # Show what would be added
python3 discover.py --score-only REPO  # Score a single repository

install-agent-stack.sh - One-Command Setup

Installs the complete Hermes Agent stack on a fresh Linux machine: Node.js, Python dependencies, Playwright browsers, and the Hermes CLI. Used by the Setup Guide.

Usage:

curl -sL https://raw.githubusercontent.com/CorpusIQ/corpusiq-docs/main/hermes/scripts/install-agent-stack.sh | bash

process_submissions.py - Community Submission Scorer

Validates a community-submitted repository, skill or MCP server: checks for duplicates, validates metadata, and returns an approve/reject outcome. The scorer is complete. The GitHub Issues loop around it is not wired up yet, so the script runs the scoring path against a built-in sample rather than pulling live submissions.

Usage:

# the script reads its stores (approved_repos.json, contributors.json) from a checkout at /tmp/corpusiq-docs/hermes
git clone https://github.com/CorpusIQ/corpusiq-docs /tmp/corpusiq-docs

python3 process_submissions.py --test sample   # Score the sample submission end to end

Run without arguments and the script only prints its ready status with a "Connect to GitHub Issues API for full automation" note. There is no per-issue selector on the command line yet.

promote_submission.py - Human-Judgement Promotion

The submission scorer reads only a repository's name, description, and topics, so a repo that genuinely works with Hermes but never names it in metadata scores low and is rejected. This is the manual path that closes that gap: it takes a repo already in the review queue, records why it was promoted, and rewrites every downstream file in one transaction.

Usage:

python3 promote_submission.py --repo owner/name --note "why this was promoted by hand"
python3 promote_submission.py --repo owner/name --note "reason" --category tools --dry-run

integrate_approved.py - Publish Auto-Approved Repos

discover.py auto-approves repos into data/approved_repos.json but never writes the directory page. This script finds approved repos that are missing from the directory and writes them into ecosystem/index.md, star-sorted, using the same block builder as promote_submission.py.

Usage:

python3 integrate_approved.py                  # Write all missing approved repos
python3 integrate_approved.py --dry-run        # Show what would be written
python3 integrate_approved.py --limit 20       # Cap the number of entries written

finish_promotion.py - Complete a Partial Promotion

promote_submission.py writes the JSON stores first and the files last. If the file phase fails, this completes it from the approved row. Safe to rerun: both writers skip work that is already done.

Usage:

python3 finish_promotion.py            # Finish the default pending promotion
python3 finish_promotion.py owner/name # Finish a specific repo

Integration

These scripts are referenced by the Infrastructure and Governance documentation. See the Setup Guide for installation patterns.


← Templates | Hermes Home →

↑ Scripts Home

AI answers on your data. See where every number comes from.

Connect your tools and ask in ChatGPT, Claude, or Perplexity. Enterprise-grade answers in minutes. From $29.95/month.

Start free, no credit card
Contact Terms Privacy Pricing