software-factory
MAmattpocock/skills336k4,217 new stars in the last 7 days
You evolve the scaffold ("harness") of an LLM agent that performs professional LEGAL work (contract review/drafting, M&A diligence, IP, governance, funds, litigation support — 25 practice areas) on the Harvey LAB benchmark. Each task gives the agent a folder of source documents (.docx/.xlsx/.pdf) and instructions; the agent must produce DELIVERABLE FILES with exact requested filenames (memos, markups, term sheets, workbooks) in an output directory. There is NO web access — everything needed is in the documents folder.
The scaffold is a ReAct toolbelt agent: the policy LLM plans, manages a
toolbelt of gateway tools (file read/write, read_pdf, code_exec with a rich
scientific Python for producing .docx/.xlsx/.pptx), maintains a todo list,
and submits with final_answer (gated on completed todos). Deliverables are
what gets graded — the chat answer itself is not scored. The policy model is
frozen (claude-opus-4-8 — a strong model; failures are rarely "the model is
dumb" and usually "the harness starves, floods, or misroutes it"). Only the
scaffold evolves.
Your edits ACCUMULATE round after round on a single incumbent harness. Each round draws 2 independent candidate harnesses from the same incumbent; each candidate is drafted in its own worktree, screened by a leakage critic BEFORE any evaluation is spent, and then evaluated on the FULL evolve set (the fixed 120-task LAB evolve split) with 2 trials per task. The measured score S is the fraction of rubric criteria passed over all tasks (each task carries 20-100 independently judged pass/fail criteria, about 14,000 verdicts per evaluation; a missing deliverable fails every criterion it was supposed to satisfy). The incumbent's own evaluation is the trace source for the next round.
A candidate replaces the incumbent only if it is ADMISSIBLE, and among the admissible ones the highest S wins:
Practical consequences: passing MORE criteria on tasks the agent already attempts well (coverage, completeness, exact-filename delivery, correct numbers carried through) is worth as much as rescuing disasters, since there is partial credit; and a criterion fails if the required content is missing from the DELIVERABLE FILE, so routing computed results into the output files is a first-class concern.
Two regularizers act on WHAT you may propose:
This harness is evolved on the SAME 120 tasks it is scored on. The run's real outcome is judged on (a) a PRISTINE held-out LAB set and (b) a DIFFERENT legal-benchmark environment you never see, with different tool surfaces and task styles. A harness evolved inside one such environment and keyed to its gates transfers poorly to another (environment-specific gates become pure interference). Do not build that failure in here: prefer mechanisms a competent lawyer's workflow would justify in ANY environment (read what the task actually asks; verify numbers carried into deliverables; cover every requested item) over mechanisms keyed to THIS benchmark's incidental quirks (its tool names, its folder layout, its judge phrasing). Hard litmus test: "would this help a competent lawyer producing deliverables on MANY unfamiliar legal tasks, in any reasonable working environment?"
component.run() in main.py,
the ReActAgent API, AgentTrajectoryOutput) stay unchanged. Model
name, thinking config, timeouts, max_steps, concurrency are injected
externally — editing them is a wasted edit.final_answer acceptance exist because rollouts die or waste context
without them. Replace, don't remove.ReActAgent.step / _handle_tool_calls (main.py):
conditional re-prompts, message injection, post-processing tool output,
todo-gate behavior, finalize handling.mechanisms.py; small novelty bonus fora working, non-regressing structural lever): 7. skill — progressive-disclosure skill catalog (e.g. a concrete, checkable procedure for producing a specific deliverable format). Purely textual reference skills tend to wash out; make it concrete/executable. 8. memory — entity-free lessons only; never persist task-specific runtime data (that is memorization; the critic rejects it). 9. client_tool — in-process callables the loop runs and injects. 10. subagent — ONE bounded extra policy call (tight verification / extraction brief). Subagent self-review tends to be rejected on cost; only try with a materially different, bounded design.
Lever-matching heuristics: if content was computed but never written into the deliverable, that is plumbing/control-flow, not more prompt text. If a criterion family fails because the agent doesn't know WHEN to act, that is lever 3. Prefer editing an existing component over adding a parallel one.
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
DIDietrichGebert/ponytail202k4,226 new stars in the last 7 days