Shayan Mousavi

Harnesses and loop engineering

A model answers once; a harness makes it useful every day. I build cross-product, cross-platform harnesses that let agents work across the whole lifecycle of life sciences tools, so teams ship faster without giving up the controls that regulated science needs.

Internal harnesses are described in general terms; their code stays with my employer. Open-source ones link to GitHub.

Lifecycle coverage

6 harnesses shown.

1. Product and scrumOpen source

ScrumScribe

Claude Code plugin

Turns Product Owner conversations into scoped, testable Jira tickets. Skills hold the team’s ticket conventions; nothing reaches Jira until the Product Owner approves the draft.

  1. Conversation
  2. Draft tickets
  3. PO approves
  4. Jira
2. ArchitectureInternal

Architecture decision harness

Skills and subagents

Turns scientific product requirements into draft architecture decision records, with options and trade-offs laid out for an architect to accept or revise.

  1. Requirements
  2. Options
  3. ADR draft
  4. Architect review
3. InfrastructureInternal

Infrastructure-as-code harness

Skills and hooks

Proposes Terraform changes that follow the organisation’s modules and policies, runs plan and policy checks, and stops for a person before anything is applied.

  1. Change request
  2. terraform plan
  3. Policy check
  4. Human applies
4. GenAI developmentInternal

Scientific GenAI scaffolding

Skills and templates

Encodes how the team builds retrieval and agent services for science: service layout, grounding checks and an evaluation suite in place before the first feature.

  1. Spec
  2. Scaffold
  3. Eval suite
  4. Code review
5. DeploymentInternal

Delivery pipeline harness

Skills and hooks

Generates and reviews CI/CD pipelines, container builds and tests, so a data science feature ships through the same gates as any other service.

  1. Feature
  2. Pipeline
  3. Tests
  4. Release gate
6. ProductionInternal

Production readiness loop

Agent loop

Checks a release against observability and GxP expectations: traces, drift and cost monitors, test evidence and human-in-the-loop fallbacks, collected into one evidence pack.

  1. Release
  2. Readiness checks
  3. Evidence pack
  4. QA sign-off

Anatomy of a loop

The same six parts in every harness I build. Each run feeds the next one through the trace.

  1. ContextWhat the agent reads: the repository, tickets, ontologies, past decisions.
  2. SkillsThe team’s conventions written as reusable instructions, versioned like code.
  3. Tools and permissionsLeast privilege for each stage. Reading is free; writing needs a reason.
  4. VerificationTests, plans, policy checks and evals run automatically on every proposal.
  5. Human gateA person approves at the point of no return: merge, apply, release, submit.
  6. TraceEvery run logged, so an auditor can replay it and the next run can learn from it.

Rules for agents where mistakes are expensive

Scientific and regulated products leave little room for error. These hold across every harness.

  • The agent proposes; a person commits.Nothing irreversible happens without an explicit approval.
  • Scope tools to the stage.A backlog harness cannot touch infrastructure, and an infrastructure harness cannot release.
  • Evaluate before trusting.Each harness ships with checks that fail loudly, and they run on every change.
  • Write once, reuse everywhere.Harnesses are shared across products and agent platforms, so a fix lands for every team at once.

New harnesses

I publish the ones I can, and write up what I learn building them.