Back to all work

Logixian (CMU Studio team)

A Team Agent Harness That Improves From Its Traces

One plugin gives every teammate's coding agent the team's latest context and process, and records what the agent did. That record shows where the process broke, and each fix ships to every agent as the next version.

Author and maintainer2026Private team repo

Every task starts from the team's latest conversations

Example data
Team knowledgeTraceidentifiers only23451-67Human conversationsmeetings, transcriptsTicketsArchitecture docsMSE libraryknowledge from CMUAgenton ticket TEAM-142session_start · claude-codeskill_used · team-contexttool_used · executeReadtool_used · Readskill_used · mse-libraryreview_done · quickartifact_created · prReportContext usedteam-contextteam-context, mse-libraryReviewran before the pull requestResult1 pull requestTeam knowledgeTraceidentifiers only23451-67Human conversationsmeetings, transcriptsTicketsArchitecture docsMSE libraryknowledge from CMUAgenton ticket TEAM-142session_start · claude-codeskill_used · team-contexttool_used · executeReadtool_used · Readskill_used · mse-libraryreview_done · quickartifact_created · prReportContext usedteam-contextteam-context, mse-libraryReviewran before the pull requestResult1 pull requestTeam knowledge23451-6Human conversationsmeetings, transcriptsTicketsArchitecture docsMSE libraryfrom CMUAgenton ticket TEAM-142Traceidentifiers onlysession_start · claude-codeskill_used · team-contexttool_used · executeReadtool_used · Readskill_used · mse-libraryreview_done · quickartifact_created · prReportContext usedteam-context, mse-libraryReviewran before the pull requestResult1 pull request
  1. A ticket starts a session.
  2. The agent reads the latest meeting transcripts first.
  3. It reads the ticket and its history.
  4. It checks the architecture docs.
  5. It looks up a method in the MSE library.
  6. It reviews its own branch, then opens a pull request.
  7. The report reads the trace back as one story.
1 / 7A ticket starts a session.

The newest relevant meeting transcript outranks summaries, documents, and tickets, so the agent starts from what the team said last. Code still decides how the system actually behaves, and every answer cites its sources.

From a trace to a better harness

Example data, simplified reconstruction

1 / 7An agent starts ticket TEAM-142 and reads it.

One session, then the report

Agent sessionticket TEAM-142

  1. 1Read the ticket
  2. 2Edit its Definition of Done
  3. 3Make the change, run checks
  4. 4Review its own branch
  5. 5Open the pull request

Tracetrace.jsonl

every line also has ts harness session repo branch ticket

  1. 1session_start"source":"startup"
  2. 2tool_used"tool":"mcp__atlassian__executeRead""detail":"getJiraIssue"
  3. 3tool_used"tool":"mcp__atlassian__executeWrite""detail":"editJiraIssue"
  4. 4skill_used"skill":"dev-flow"
  5. 5tool_used"tool":"Bash"
  6. 6skill_used"skill":"pr-review"
  7. 7review_done"effort":"quick""findings":{"important":1,"nit":0,"pre_existing":0}
  8. 8artifact_created"artifact":{"type":"pr","id":".../pull/57"}

Report rule, first version2 lines match

tool_used on Atlassian in a session with no team-context, ticket-history or jira-ticket

Matches the read on line 2, which is the agent's call to make.

Report rule, after the reviewsession 7f3a flagged

Walk the session in ts order. Stop at the first skill_used jira-ticket. Flag a tool_used whose tool or detail is a Jira write.

Jira writes: createJiraIssue editJiraIssue transitionJiraIssue, comments, worklogs.

  1. An agent starts ticket TEAM-142 and reads it.
  2. It edits the ticket directly, without the jira-ticket skill.
  3. dev-flow guides the change and runs the repo checks.
  4. pr-review runs at quick and records counts, never findings.
  5. The pull request URL lands in the trace as a join key.
  6. First rule: flag Atlassian calls made without a context skill.
  7. Review inverted it. Reads are free. Writes need jira-ticket first.

ThenThe fix ships as a new harness version. Every agent updates itself.

Harness repoone pull request

skills/jira-ticket/SKILL.md

Use when creating a ticket, turning meeting action items or findings into tickets

Use for every write to a ticket: creating one, editing any field, moving its status, closing it, or commenting on it

hooks/trace.py, session start context

For any write to a Jira ticket use the jira-ticket skill.

plugin.json

"version": "1.4.0"

"version": "1.4.1"

Every teammate's agentno action needed

Claude Code
Marketplace auto-update, turned on by bootstrap
Codex
Session start hook upgrades the plugin, at most once every 20 hours
  1. heartbeat"harness":"claude-code""version":"1.4.1"
  2. heartbeat"harness":"codex""version":"1.4.1"

The uploader adds a heartbeat to every upload. The report compares its version with the repo's and names anyone still behind.

Next runjira-ticket loads before the write. The rule stays quiet.

Agent sessionticket TEAM-151

  1. 1Read the ticket
  2. 2Load jira-ticket
  3. 3Edit its Definition of Done
  4. 4Change, review, pull request

Tracetrace.jsonl

same session shape, new version

  1. 1tool_used"tool":"mcp__atlassian__executeRead""detail":"getJiraIssue"
  2. 2skill_used"skill":"jira-ticket"
  3. 3tool_used"tool":"mcp__atlassian__executeWrite""detail":"editJiraIssue"
  4. 4artifact_created"artifact":{"type":"pr","id":".../pull/61"}

Jira ticket written before any jira-ticket useno sessions flagged

The other way inA blocked agent drafts an issue for the teammate to approve.

Feedback draftshown before filing

team-context: transcript read fails, agent falls back to the summary

harness codexplugin 1.4.1session c9d0

Files to the harness repo with a feedback label, only after the teammate says yes.

Tracetrace.jsonl

  1. 1tool_failed"tool":"mcp__drive__read_file_content""error":"not_found"
  2. 2skill_used"skill":"cave-feedback"
  3. 3artifact_created"artifact":{"type":"issue","id":".../issues/12"}

Report, feedback issues#12 open

This follows a real finding from the team's trace review and the fix that shipped. The ticket, names, and version numbers are example data.

A second rule reads the trace the same way. If team-context runs and no Jira, Confluence, or Drive call follows, no fetch of the transcript was observed.

The trace pipeline

  1. 1Capture

    Hooks in Claude Code and Codex call one Python adapter after each tool call.

    Async, so it never blocks the agent. Team repos only.

    What the hook receives Example data

    event
    PostToolUse
    tool_name
    mcp__atlassian__executeWrite
    tool_input
    the ticket text the agent wrote
    tool_response
    Jira's full reply
  2. 2Reduce

    The adapter keeps identifiers and drops content before anything is written.

    An error keeps only its class, such as auth or timeout.

    What gets written

    promptstool_inputtool_responseerror textreview findings

    {
      "ts": "2026-11-10T15:04:12+00:00",
      "harness": "claude-code",
      "session": "7f3a2c1e-...",
      "repo": "Logixian/example-service",
      "branch": "TEAM-142-grace-period",
      "ticket": "TEAM-142",
      "event": "tool_used",
      "tool": "mcp__atlassian__executeWrite",
      "detail": "editJiraIssue"
    }
  3. 3Ship

    A background uploader copies new lines to a private team repo through each person's own GitHub CLI.

    At most hourly. One environment variable turns sharing off.

    One file per upload

    A byte cursor sends complete lines only.

    • traces/
    • teammate-a/ 2026-11-10T15-…-1.jsonl
    • teammate-b/ 2026-11-10T16-…-1.jsonl

    + heartbeatclaude-codev1.4.0

  4. 4Join

    The report removes repeated lines and joins the trace with the org's pull requests.

    Every flag is a lead to check.

    One pull request in the report

    repo + branch
    TEAM-142-grace-period
    skills on it
    jira-ticketdev-flowpr-review
    session order
    editJiraIssuejira-ticketwrite before skill
    ticket
    TEAM-142
    heartbeat
    v1.4.0 installed

The closest comparison is application logging, where each step emits a small structured event and later questions join the events. A missing event is not proof that an action never happened, so every flag is a lead to check.

Questions

What would change for a much larger team?

The capture side would stay as it is. Each event is already small, free of content, and built from the same few fields. The storage would change. Today each teammate uploads JSONL files to a private repo and the report reads all of them on every run, which fits one team. For many teams I would send events to an ingestion endpoint, land them as columnar files partitioned by date and team, and run the rules as scheduled queries. Each rule reads a few columns across many sessions, which is what columnar storage is good at.

What did you build?

I built and maintain the shared context rules, ticket-to-PR and review instructions, trace adapter, uploader, report, and one context eval.

Which agents does it work with?

Claude Code and Codex, from one set of plain instruction files and one hook adapter. Bootstrap installs the plugin into whichever of the two is present. Pi support is in progress.

Is the process enforced?

No. The skills are instructions, and nothing blocks a push or a merge. The trace is how the team sees whether the process was followed, and the report treats each flag as a lead to check.

What is never recorded?

Prompts, tool inputs and outputs, raw error text, and review finding text. Outside the team's repos, only use of the harness's own skills is recorded.

How do updates reach teammates?

Claude Code uses marketplace auto-update, which bootstrap turns on. In Codex a session start hook upgrades the plugin at most once every 20 hours. The new version loads in the next session.

How do you know the context rules help?

A checked-in eval asks what the team most recently decided and which documents that made stale. One command runs it with and without the plugin. It passes only if the agent checked recent meetings, tried to fetch a transcript, cited every decision, and named any source it could not reach.

How does a teammate report a problem?

They tell their agent, or the agent offers once when a harness rule or tool blocked the work. It drafts an issue from the session, shows it, and files it only after the teammate says yes.