cyborg-harness
Installation
SKILL.md
Implementing a Game Harness
The harness is a background daemon thread that monitors the game and consults the LLM when triggers fire. It builds context, calls the LLM, and parses the response into a Directive the brain can follow.
Base Class
Subclass framework.base_harness.BaseHarness and implement four methods:
from framework.base_harness import BaseHarness
from framework.base_memory import GameMemory
from framework.types import Directive
class MyGameHarness(BaseHarness):
def parse_directive(self, data: dict, tick: int) -> Directive:
"""Parse LLM JSON response into a Directive."""