the-teacher/active_harness

AI framework for Ruby/Rails developers

89Stars on the repository
12Mods indexed here, across every type
23d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

the-teacher/active_harness

Agent

ActiveHarness divides errors into two categories: retryable and non-retryable. Retryable errors trigger automatic retries with exponential backoff, then move to the next fallback model. Non-retryable errors abort the entire chain immediately.

89 23d ago A 0 tokens original MIT

agent_hooks

02

the-teacher/active_harness

Agent

All hooks are registered with on, before, after, or callback at the class or instance level.

89 23d ago A 0 tokens original MIT

audio_transcription

03

the-teacher/active_harness

Agent

ActiveHarness agents can transcribe audio natively via OpenAI's or OpenRouter's speech-to-text endpoints. Enable it with transcribe true and use the same model/fallback DSL as any other agent.

89 23d ago A 0 tokens original MIT

image_generation

05

the-teacher/active_harness

Agent

ActiveHarness agents can generate images natively — no customllmbackend/RubyLLM required. Enable it with image true and use the same model/fallback DSL as any other agent.

89 23d ago A 0 tokens original MIT

normalize_input

06

the-teacher/active_harness

Agent

Before every call, ActiveHarness automatically normalizes @input by stripping leading and trailing whitespace and collapsing internal whitespace sequences to a single space.

89 23d ago A 0 tokens original MIT

pricing

07

the-teacher/active_harness

Agent

ActiveHarness automatically calculates the monetary cost of every LLM call and attaches it to the Result object.

89 23d ago A 0 tokens original MIT

retry_policy

08

the-teacher/active_harness

Agent

When a model returns a transient error (TimeoutError, RateLimitError, ServerError, ProviderUnavailableError), ActiveHarness automatically retries the same model with exponential backoff before moving to the next fallback.

89 23d ago A 0 tokens original MIT

token_usage

09

the-teacher/active_harness

Agent

When a provider returns token counts, they are available on the Result object under #usage. Not all providers return usage — the value is nil for streaming calls and some free-tier models.

89 23d ago A 0 tokens original MIT

validation_proposal

10

the-teacher/active_harness

Agent

Right now, "is this agent going to work?" can only be answered by actually calling it. Validation is scattered and inconsistent.

89 23d ago A 0 tokens original MIT

vision

11

the-teacher/active_harness

Agent

ActiveHarness could let agents accept images as input alongside a text prompt — "look at this and tell me X" — reusing the model chain, hooks, retry/fallback, and systemprompt machinery that already exists for text agents.

89 23d ago A 0 tokens original MIT