the-teacher

12 mods across 1 repository, 89 stars between them.

the-teacher/active_harness

Instructions file

Instructions for the-teacher/active_harness, covering claude.md, what this is, commands, build gem artifact and bump patch version, sync, and release to rubygems.

89 22d ago A 2,354 tokens original MIT

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 22d ago A 0 tokens original MIT

agent_hooks

03

the-teacher/active_harness

Agent

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

89 22d ago A 0 tokens original MIT

audio_transcription

04

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 22d ago A 0 tokens original MIT

image_generation

06

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 22d ago A 0 tokens original MIT

normalize_input

07

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 22d ago A 0 tokens original MIT

pricing

08

the-teacher/active_harness

Agent

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

89 22d ago A 0 tokens original MIT

retry_policy

09

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 22d ago A 0 tokens original MIT

token_usage

10

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 22d ago A 0 tokens original MIT

validation_proposal

11

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 22d ago A 0 tokens original MIT

vision

12

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 22d ago A 0 tokens original MIT