How stanford-iris-lab/meta-harness works
Meta-Harness automates search over task-specific harnesses around a fixed base model. Its reference experiments expose two domain workflows: text-classification memory-system learning and Terminal-Bench harness evolution; the experimental Harbor harness adds a smaller evaluation path. The graph retains these distinct stages and major documented capabilities. Some wiring is supported only by the SOURCE INDEX or README; unsampled implementation details and uncertain links are omitted.
Main entry points: api.py Dataset Entry Points · memory_system.py Memory Interface · fewshot_memory.py Few-Shot Memory · llm.py LLM Client
Components 21
Harbor Framework
- Terminal Harness Agent
experimental/harbor_meta_harness/agents/terminal_harness.py - Harness Search
experimental/harbor_meta_harness/agents/meta_harness.py - Harbor Evaluator
experimental/harbor_meta_harness/controller.py - Harbor Runtime
Text Classification
- Task Data
reference_examples/text_classification/data/loaders.py - Dataset Entry Points
reference_examples/text_classification/data/api.py - Task Definitions
reference_examples/text_classification/data/constants.py - Prediction Evaluation
reference_examples/text_classification/data/evaluators.py - Learning Loop
reference_examples/text_classification/inner_loop.py - Memory Interface
reference_examples/text_classification/memory_system.py - Few-Shot Memory
reference_examples/text_classification/agents/fewshot_memory.py - All-Example Baseline
reference_examples/text_classification/agents/fewshot_all.py - No-Memory Baseline
reference_examples/text_classification/agents/no_memory.py - LLM Client
reference_examples/text_classification/llm.py - Text Harness Search
reference_examples/text_classification/meta_harness.py - Proposer Wrapper
reference_examples/text_classification/claude_wrapper.py
Terminal Bench
- Terminal Harness Search
reference_examples/terminal_bench_2/meta_harness.py - Proposer Wrapper
reference_examples/terminal_bench_2/claude_wrapper.py - Kira Agent
reference_examples/terminal_bench_2/agents/baseline_kira.py - Anthropic Cache
reference_examples/terminal_bench_2/anthropic_caching.py
Other components
- Coding Proposer
Connections 20
- Coding Proposer → Harness Search: proposes edits
- Harness Search → Harbor Evaluator: evaluates candidates
experimental/harbor_meta_harness/agents/meta_harness.py - Harbor Evaluator → Harbor Runtime: launches child
experimental/harbor_meta_harness/controller.py - Terminal Harness Agent → Harbor Runtime: runs task
- Learning Loop → Dataset Entry Points: loads splits
reference_examples/text_classification/inner_loop.py - Learning Loop → Memory Interface: learns and predicts
reference_examples/text_classification/inner_loop.py - Dataset Entry Points → Task Data: loads examples
reference_examples/text_classification/data/api.py - Dataset Entry Points → Task Definitions: uses task lists
reference_examples/text_classification/data/api.py - Dataset Entry Points → Prediction Evaluation: selects evaluator
reference_examples/text_classification/data/api.py - Few-Shot Memory → Memory Interface: implements
reference_examples/text_classification/agents/fewshot_memory.py - All-Example Baseline → Few-Shot Memory: reuses variant
reference_examples/text_classification/agents/fewshot_all.py - No-Memory Baseline → Memory Interface: implements
reference_examples/text_classification/agents/no_memory.py - Memory Interface → LLM Client: calls model
reference_examples/text_classification/memory_system.py - Few-Shot Memory → LLM Client: uses client
reference_examples/text_classification/agents/fewshot_memory.py - No-Memory Baseline → LLM Client: uses client
reference_examples/text_classification/agents/no_memory.py - Text Harness Search → Proposer Wrapper: calls wrapper
reference_examples/text_classification/meta_harness.py - Coding Proposer → Text Harness Search: proposes edits
- Terminal Harness Search → Proposer Wrapper: calls wrapper
reference_examples/terminal_bench_2/meta_harness.py - Coding Proposer → Terminal Harness Search: proposes edits
- Kira Agent → Anthropic Cache: uses cache
reference_examples/terminal_bench_2/agents/baseline_kira.py