Harness

Sit back, the agent’s got it.

Visit Repo
Harness banner

About

## The problem it solves

Most “AI agents” are really one script per task. Someone writes code for booking a train, then more code for sorting files, then more for filling a sheet, and none of it carries over. I wanted to see if one general agent could do all of it and learn each new job from a plain text file.

Harness is a Windows 11 agent that uses the computer the way a person does. It looks at the screen, clicks, types, runs terminal commands and handles files. The code has no knowledge of any specific website. Everything about a job lives in a SKILL.md file: a playbook, a few verified macros, and some guards the harness enforces on every action.

To test it on something hard, I made it book a Tatkal ticket on IRCTC. That means logging in with a captcha, striking Search at exactly 11:00:00.400 (NTP-corrected), comparing two trains, picking the cheaper available one and filling the passenger details. It does all that hands-free. The only thing I do is approve the payment on my phone.

What people can use it for

Booking tickets or anything else that is time-critical and repetitive Everyday chores like organising a downloads folder, web research into a spreadsheet, or email tasks Teaching it a new job by just doing it once (harness learn records your clicks and drafts the skill)

Why it’s safer than a plain agent

Passwords never reach the model, which only sees {{secret.NAME}} placeholders Guards block mistakes like double-clicking “Pay & Book” or asking a human anything other than payment approval Risky commands need approval Every run is logged with screenshots, video and a replay page, so you can see why it did what it did

It runs entirely on free-tier models (Gemini + Groq), so it doesn’t need a paid API.

## Challenges we ran into

Free-tier rate limits and timeouts: Gemini and Groq free quotas kept running out or timing out. I handled it with multiple keys from different projects and fallback models. The router tracks requests and tokens per minute on the client side and puts a key on cooldown after a 429.

Browser stalls: Patchright stalled and froze when Chrome lost focus or got throttled. Chrome now runs from its own profile with a CDP port and anti-throttling flags, detached from the harness so it survives restarts.

Password exposed by the eye icon: The agent clicked the show-password eye icon and revealed the password. Password fields are now re-masked, the model only sees {{secret.NAME}} placeholders, and logs, screenshots of password fields and the trace are redacted.

IRCTC errors: The site threw /nget/error on double clicks, refreshes and idle sessions, and “Invalid Request” on logins from stale sessions. For “Invalid Request” the login now retries with a fresh session.

Case-sensitive captchas: The captchas are case-sensitive and the local OCR only read lowercase.

PrimeNG radio buttons: They ignored clicks on their labels (insurance and BHIM/UPI).

Hidden duplicate “Pay & Book” buttons: The page had hidden duplicates of the button. There is now also a guard that blocks clicking Pay & Book twice within 15 seconds.

Stale element ids: Ids went stale whenever the page re-drew. Elements that were re-rendered since the observation are now re-found before acting.

Wrong quota or passenger options: The agent sometimes picked the wrong quota or passenger options. Guards in the skill now block this: Search is blocked unless the form matches the saved data and the quota, and Continue on the passenger form runs verify_passenger first.

Asking a human too much: The agent asked a human for things it should solve itself. Now it self-recovers twice (forced vision, fresh look) before a “stuck” handoff, and a guard only allows asking a human to approve the payment.

Wrong lessons from the self-learning step: The reflector sometimes wrote wrong lessons into skills. It is now limited to 2 lessons per run, the lessons are validated, writes are atomic, and the old version is backed up in history/.

PhonePe only gives a QR: The gateway has no UPI collect request, so the payment can’t be completed by the agent alone. The QR goes to Telegram and the console, and the run resumes on the PNR page once I approve it.

Maintenance window and a clock bug: IRCTC has a nightly maintenance window, and my clock code ignored waits that went past midnight.

Screenshots

Harness screenshot 1Harness screenshot 2Harness screenshot 3Harness screenshot 4Harness screenshot 5

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.