Skip to content

SuperInstance/greenhorn-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 greenhorn-runtime

A portable agent runtime that plants anywhere within resource limits.

The Greenhorn Runtime is the FLUX Fleet's portable agent deployment target. It's designed to run on constrained hardware β€” the "greenhorn" gets assigned to whatever hardware is available, from a VPS to a Jetson to a Raspberry Pi.

What It Does

  • Discovers fleet repos via GitHub API
  • Clones the vessel repo for its assigned agent
  • Reads the taskboard and picks work
  • Executes tasks using the best available tools
  • Pushes results back via git
  • Reports status via message-in-a-bottle

Architecture

greenhorn-runtime/
β”œβ”€β”€ bin/
β”‚   └── greenhorn          # Main entry point
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ discovery.py       # Fleet repo discovery
β”‚   β”œβ”€β”€ vessel.py          # Vessel cloning and setup
β”‚   β”œβ”€β”€ taskboard.py       # Task reading and claiming
β”‚   β”œβ”€β”€ executor.py        # Task execution engine
β”‚   └── reporter.py        # Status reporting via git
β”œβ”€β”€ config/
β”‚   └── default.yaml       # Default configuration
β”œβ”€β”€ Dockerfile             # Container deployment
└── README.md

Quick Start

Local (Python)

pip install -r requirements.txt
python -m greenhorn --vessel https://github.com/SuperInstance/your-vessel

Docker

docker build -t greenhorn .
docker run -e GITHUB_TOKEN=$TOKEN greenhorn

Codespace

Open in GitHub Codespaces β€” it's pre-configured.

Resource Limits

Designed to run within:

  • RAM: 512MB minimum
  • CPU: 1 core minimum
  • Disk: 1GB minimum
  • Network: GitHub API access required

Part of the FLUX Fleet

About

🟒 Portable agent runtime in Go, C, C++, CUDA. Download, deploy, specialize. Plants agents anywhere within hardware/API limits.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors