agentleFS
ExploitaciousExploitacious/OPS/SKILLS/harness/SKILL.md

harness

Skill0 starsChanged 13 days agoMITView on GitHub

Must always apply when working in a T3 Code thread on an OPS harness box. Facts about the box and T3 that an agent cannot work out: how a thread pauses, moves and closes, how to reach the owner and get a file to them, how waiting and helper agents behave, and the commands the box provides.

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use to-issues, to-prd and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    to-issues

    Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.

    Also in 3 projects that use this

  • GoogleSkill

    to-prd

    Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.

    Also in 3 projects that use this

  • MicrosoftSkill

    diagnose

    Use to systematically diagnose why scenarios fail — identifies root causes by analyzing agent traces, codebase, and behavioral patterns

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 4 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Put knowledge where the next person will look.

    line 23
  2. Distinctive:

    Write the resume note at the top of the anchor or baton: NEXT ACTION (one step), VERIFY FIRST, DO NOT (with who said so), DEAD ENDS, ASK …

    line 24
  3. Distinctive:

    Never message a running workflow agent: it starts a second copy.

    line 59
  4. Distinctive:

    No new top-level threads unless the owner asks.

    line 61
  5. Very specific:

    When the box has an OpenAI subscription (or another vendor's) wired into OPS_REVIEWER_CMD, code where a miss is expensive (production …

    line 65
  6. Very specific:

    Never kill processes by name pattern (pkill -f): your own shell and sibling agents match.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Harness

Facts about the box you are running on. The machinery (hooks, scripts, T3's own tools) does the work; this page says what exists and what bites. The harness root is ~/OPS (or $OPS_DIR); commands below live in <root>/.claude-config/bin/.

What survives

A conversation is lost at a compact or a close. Three things are not: git, the memory pool for this directory (the session-start digest prints it), and the resume note. Anything worth keeping goes into one of them before either happens.

Ending a thread

Three endings. Pause: the same thread continues after a compact. Move: the work continues in another thread, profile or machine. Close: the purpose is done.

  • Every ending starts with session-end <pause|move|close>. It snapshots git, starts the merged-branch and worktree cleanup (branch-gc) for this repo (add --repo PATH for each other repo the thread changed; it prints the candidates), rebuilds the memory index, lints when the thread touched harness files, and prints this thread's open asks and what is left for you to decide. Fix the lint findings on files this thread changed and name the rest as other work's.
  • It never commits, pushes, logs time, edits a ticket, writes a baton, compacts, settles or deletes scratch. Those stay yours.
  • What only you can do, every time:
    • Save to the memory pool only a trap with no other home, one fact per file; a ruling, a repo fact or a client fact goes to its home instead. A session with none saves none.
    • Leave the memory pool better than you found it: correct an entry this thread proved wrong, merge duplicates you touched, move a lesson that belongs in a repo's docs. The closing thread owns this; nothing else tidies the pool (verify-ops.sh only warns when one outgrows its budget).
    • Put knowledge where the next person will look. A client or technical fact goes to its page in the documentation system, a repo fact to that repo's docs, a decision to the changelog. Fix any document this thread made untrue.
    • Write the resume note at the top of the anchor or baton: NEXT ACTION (one step), VERIFY FIRST, DO NOT (with who said so), DEAD ENDS, ASK THE OWNER.
  • Then run session-end finish. After a close it needs --logged N (time entries created and read back; 0 when entries already on the ticket cover the work) or --declined REASON. Skip it and the closeout stamp never moves, so the next ending redoes this one's work.
  • Pause: session-end pause prints the compact line. On T3, with the box's harness token, the thread compacts itself (compact-cycle.sh); without the token the cycle stops with ERR_T3API before it sends anything, and the owner fires /compact. Never compact over an unanswered question.
  • Move: the baton is <root>/.claude-handoffs/pending/<key>.md, key from key.sh. One pending baton per project; never overwrite an unread one. Commit and push it, or the other machine never sees it.
  • Close: only on the owner's word; a thread never closes itself. session-end close lists what this thread made (scratch files, containers, temporary worktrees): remove them yourself by exact path or id, never another thread's and never one it marks as ownership unknown. Then settle the way session-end close prints it (T3's own settle tool; t3-api.sh settle-when-idle only where that tool is missing), and print the receipt first, because nothing after the settle reaches the owner.
  • Time: when this thread worked a ticket, log its time before closing. session-end close prints the measured minutes (active-minutes is the tool); read what is already on the ticket first so nothing is billed twice. Ending a thread never changes a ticket's status. Closing a ticket follows CONTEXT/work-tracking.md (or your organization's platform skill, when this copy has it), and it does not end the thread.

Talking to the owner

  • Text written mid-turn may not be seen until the turn ends. What they must read in full goes through send_to_user or the final reply.
  • Anything they must click within a time window (an approval link) goes last, with its expiry time, and then the turn ends.
  • At most three asks in a reply, each with your recommendation and what happens if they say nothing. A hook checks this.
  • They read cold. Say what a thing is before using its name; give a link beside every id.
  • Data, comparisons and decisions read better as an inline page: build one HTML file from assets/starter.html, check it with html_preview at 728 and 390 wide (zero console errors), show it with html_render. Colors: references/palette.md. One page per reply.

Getting a file to them

Pick by what they need:

  • To read or look at it: show it in the thread, as an inline page or a link to its absolute path (T3 opens it in its files viewer). Nothing is transferred.
  • On their computer: grabit, over Tailscale. It works only when tailscale status on this box shows it signed in and their computer online; Taildrop lands the file in their Downloads on Windows. A T3 thread has no SSH connection to find their machine from, so name it: grabit --list, then grabit --to <their computer> FILE.... Plain grabit FILE picks the right machine only from an SSH shell. Named files only, never a folder. "Permission denied" means the box never ran sudo tailscale set --operator=<owner>: tell them, do not work around it.
  • Large or many files, or they want a link: grabit --serve PATH... prints a link that works only on their tailnet; it needs sudo and stays up until grabit --serve-off. Where the box's own doctrine names another delivery command, use that.
  • Tailscale signed out, or none of their devices online: say so and link the path in T3. Do not paste the file into chat or invent another route.
  • They sent you something: an image attached in T3 is already a saved path, read it. A file they Taildropped: grabit --queue pulls it into ~/grabit-inbox; an empty queue means nothing arrived.

Waiting

  • A thread wakes only on a message, a task notice or a schedule. "I will check later" with nothing armed means it never happens. Arm schedule_task bound to this thread, and have its prompt delete the schedule when done.
  • A background command stops after 30 minutes unless the call passes a longer timeout (2 hours at most).
  • To wait on a background command you started, use t3_background_wait. To wait on a pull request, watch_pull_request. Never a sleep loop.

Helper agents and other threads

  • A helper's result is only its last message. Brief it: "your final message is the deliverable, in full".
  • A helper that writes files gets its own worktree. One that shares your checkout moves your branch.
  • Never message a running workflow agent: it starts a second copy.
  • Another thread's worktree, scratch or documents are not yours to clean. Message that thread (t3_thread_send).
  • No new top-level threads unless the owner asks.

Review

  • When the box has an OpenAI subscription (or another vendor's) wired into OPS_REVIEWER_CMD, code where a miss is expensive (production writes, guards, secrets, auth) gets a second-vendor review before it lands: second-vendor-review. Without one, say so and land on your own verification.

The box

  • T3's tools arrive as names only. Fetch a tool's definition before first use.
  • Never kill processes by name pattern (pkill -f): your own shell and sibling agents match. Use safe-pkill or a recorded PID.
  • A test of anything that deletes or moves files runs under sandbox-run.
  • Guards block force-pushes, history rewrites, hook bypasses, secrets written into memory, and a push of this copy to an origin not proven private. A blocked call is a ruling, not an error to route around.
  • Scratch goes in $TMPDIR, outputs in the project's folder, never the harness root.
  • "Update the harness" in a copy of the template: harness-update-scan.sh compares the copy with the template. A file changed both upstream and locally is never applied automatically.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.