Get the Monday email →
Loading player…

Tutorial: Hedera Harness | Seba Raba at ETHGlobal Mumbai 2026

ETHGlobalWed, Nov 11, 2026, 12:00 AM

Transcript

Hello everyone. I am Seba and I am one of the developers of Hedera Harness and Scaffold Hbar CLI tools. I'm going to build a feature of Hedera in about 10 minutes without writing any any of it. And more to the point, without taking the agent's word that it worked. Here's the thing I kept running into.

The agents are good, genuinely good. The code that comes back is usually fine. The problem is the last step where the same agent that just spent 20 minutes convincing itself the approach was right is the one you ask whether it worked. And it says yes, not because it's stupid, because nobody marks their own work harshly. And the model least of all.

So, the harness doesn't try to be smarter than the agent. It just stops asking that agent that question and gets it answered somewhere else. So, here's the starting point. This is Scaffold Hbar, the blank Hedera app template. And probably where you started too.

Next JS front end, hardhat package, wallet plumbing already wired. No harness file in it, nothing is set up. And what I'm building in what I'm building is a send page. A route. Where someone with a connected wallet types an address and an amount, sends Hbar, and sees the transaction ID and status come back.

Disabled until a wallet's connected, but input refused before anything gets signed. I'm telling you that up front purpose because at the end, when it says it passed, you want to be able to judge that for yourself rather than take my words for it. Which is sort of the whole thing. And I haven't run this back before. So, I don't know how it ends either.

Let's go. Harness in it first. Yarn install. Yeah, that's the right command that we want to use. For the build, we need yarn next.

Build. Adapt is four commands: install, build, test, and serve. Harness need to read what it can of package.json and ask me for the rest. You have seen I have completed them because I know the project already.

If you don't know the code base, there's harness with wizard instead. An agent reads the project, works those four for you, and drafts the spec with you doing an interview. I've already got both, so I used in it. Okay. Now that I have everything set up, we can kick it off with running the harness.

Okay. Uh in the spec uh directory, I have the send Hbar. I have the send Hbar um spec already written. So, let's give it a go. First things first, the doctor stage.

It uh is a deterministic step. No no agent involved. Um it checks that you have Git installed, that the um work tree is clean. Um it checks whether you have any skills in the project. As I used scaffold Hbar Hbar, I already have Hedera skills installed.

It checks that um you have a browser installed for the evaluator. Chromium is what we use here. Um I already um seeded my test account. So, we can um see that um it checks it has some H-bar, 1,000 in this case. Okay, now it runs the install, build, test, and serve commands to make sure that the project is already working before anything before the agent as I mentioned, I haven't run this back before.

It might pass first time, it might fail and have to repair itself, it might not get there at all. Which is slightly terrifying for a demo, but it's also the only honest way to show you a thing whose whole pitch is that it decides the outcome rather than me. The doctor has passed and now we go into the live stage. What derive does is basically deriving a set of back basically deriving a checklist based on the spec without seeing any code. So, here an agent is involved.

It looks at the spec and comes up with a checklist that the evaluator should run after the generator has written the code. And now we see we have a list of checks that we are the agent is going to check after the generate finishes. Now, we're waiting for the generate to write the Okay, so now it is writing the code. Whilst it does so, let's take a look at the whole shape of it. I have a screenshot in here.

Basically, these are the five steps that Harness takes for every feature. First of all, the doctor that we have seen, which checks that the project is correctly set up before any agent interaction. Then we have the derive step where we derive a set of rules and checklists that the evaluator should check. After derive, we have the generate, another agent interaction, where um the generate gets the the agent gets the spec and starts implementing the feature that is designed in the spec. After generate, the first thing it does, it's a deterministic step, the test one, it tries to run and yarn install, yarn build, and yarn serve.

If anything breaks, um a feedback is given back to generate, and um the loop starts again. Uh if everything passes in that test stage, then we have the evaluate, which is not deterministic anymore, but is run by an agent, and checks that the derived checklist we did initially actually stands against against the written app. If everything works fine, then um the loop is done, and we consider the feature implemented, ready for human testing. If anything fails during the evaluate, we go back to generate, and the loop continues. The default max attempts is three, but if we provide a flag when starting the harness, we can set it to as many as we like.

Uh we need to wait for the generate to do it.

Okay, so the first generate step is done. And we are going into testing. Install was skipped because no dependencies were changed. And now we do the yarn build. Yarn build has passed and we are ready.

We can see that that the attempt one has been committed. The test is passed. We do the evaluate stage.

[snorts]

We see that um basically there's a Playwright amps a Playwright CLI running behind the scene using Chromium browser. Um it runs the localhost. And it checks the app the running app against the spec in a sand-sandboxed manner without seeing the um actual implementation of the code. Okay, so everything finished now. Let's take a look at the actual code as well.

This is our demo harness. Um it's a the scaffold um the initial um project was basically a blank template of scaffold H bar uh scaffold H bar CLI tool. We see we have a harness directory in here. It's getting ignored. And we had the happy case, right?

Everything passed after a single run. If we take a look, there was one attempt. The generate took around 11 minutes, the test 40 seconds, and the evaluate 7 minutes. We have a branch where everything got implemented, and it tells us exactly where to look for the files and evidence of the actual run. In order to run the app, we need to switch to this specific branch that the harness has committed to.

Before that, let's take a look into the harness directory, what it produced. So, basically,

[clears throat]

everything that happened has been logged into events.json. This is basically a summary of everything the harness did. We can look into attempt one at first. Here, we have everything split.

We have the evaluate step, we have the generate step, and then the feedback as well. Right now, there were no failures, so okay is true. Basically, everything passed from a single a single attempt. We have the evidence. This evidence is basically everything that the Playwright CLI has been doing in order to check in the evaluation step that the spec holds against the implemented app.

We also have specific specific screenshots of it. Okay. There's the spec as well, just an MD file where I described everything that the app should be able to do as the feature is implemented. Now, let's do a run for this implementation as well and see if everything works. Okay, we are not one.

We have the app running locally. Let's check that the harness did its work. Um there we go. We are on the send page that we asked it to build. And um as we were um mentioning in in the beginning, uh basically we told it not to be able to or blocks the send button until everything is configured.

So, let's connect our hash back wallet. Okay, done. We have some funds in it. And let's do Let's send it Let's send some HBAR to an account. We approve the transaction.

And there we go. Everything worked out as expected. If we want to check the transaction on HashScan, we can do that as well. Let's give it a go. And there we go.

This is the transaction as well. Thank you very much for watching. And good luck in the hackathon.

Automatic transcript — names and jargon may be misspelled.