PromptReports
Use cases/Keep an agent working

Keep an agent working

Partly builtNo plan row yetRepoOpsPromptCompute

The sample read is built in RepoOps (repo-dashboard #8054) and the workflow and the owner's questions in PromptCompute (promptcompute.ai #1046), each off. Nothing runs until an operator turns on session scoring (mp-10 4.1), WF_KEEP_AN_AGENT_WORKING and TEAMMATE_QUESTIONS for the house org, and RepoOps's connector lists sample_agent_sessions. Filing a lesson proposal through propose_brain_entry is built today.

Use case

Keep an agent working: a workflow across RepoOps, PromptCompute that starts from the agent's schedule, every two weeks by default.

Who would use it

Teams that run an agent in production and want it to stay useful after the launch.

What value it provides

Every two weeks the workflow samples 10 of an agent's scored sessions, sends the ones under the pass mark to the agent's owner with the transcript, the score and the findings, and files a finding seen across sessions as a lesson proposal a person approves.

Why it matters to the user

The upkeep that keeps an agent useful gets an owner and a schedule, and each verdict is on the ledger, so the next sample skips what is already fixed.

The problem

An agent that shipped drifts: a prompt goes stale, an integration breaks, a vendor document is missing. Nobody owns reading its sessions, so the first sign is a bad outcome.

Expected outcomes

  • Low sessions with an owner's verdict within the cycle
  • Repeated findings turned into an approved lesson

Each run records its outcome as met, not met or not measured.

How it runs

1. Read the agent's owner and the sessions its owner already judged (upkeep_prepare)PromptComputePlanned
2. Sample 10 of the agent's scored sessions since the last cycle, each scored with the team's rubric (sample_agent_sessions)RepoOpsPlanned
3. Send each session under the pass mark to the agent's owner with its transcript, score and findings; an agent with no owner sends them to the org's admins and says so (upkeep_send)PromptComputePlanned
4. The owner's verdict on each low session (fixed, not a problem, needs a lesson) is a ledger entry the next cycle readsPromptComputePlanned
5. File a finding seen in more sessions than the team's threshold as a lesson proposal, held until a person approves it (propose_brain_entry)RepoOpsBuilt

Products and connections

ProductRole in this workflowDocs
RepoOpsSample 10 of the agent's scored sessions since the last cycle, each scored with the team's rubric (sample_agent_sessions); File a finding seen in more sessions than the team's threshold as a lesson proposal, held until a person approves it (propose_brain_entry)Reference · RepoOps docs
PromptComputeRead the agent's owner and the sessions its owner already judged (upkeep_prepare); Send each session under the pass mark to the agent's owner with its transcript, score and findings; an agent with no owner sends them to the org's admins and says so (upkeep_send); The owner's verdict on each low session (fixed, not a problem, needs a lesson) is a ledger entry the next cycle readsReference · PromptCompute docs

Outside the family: Session scoring on for the team in RepoOps, on each person's own model key.

What a person approves

Nothing. This workflow only reads.

How to access it from an agent

An agent runs a workflow through the PromptReports MCP server or API, and the runner calls each product for it. Both answer today, and the runner runs the code loop. This workflow will run there once its manifest ships. Switching on

// MCP: https://mcp.promptreports.ai/mcp
start_run({
  workflow: "keep-an-agent-working",
  inputs: { "agent": "the agent in the registry, and the address its sessions are recorded under", "repository": "optional: one repository's sessions" },
  dry_run: false
})
// returns { run_id, status: "running", approvals_url }
get_run({ run_id })   // poll, or subscribe to run events
curl -X POST https://api.promptreports.ai/v1/runs \
  -H "Authorization: Bearer $PROMPTREPORTS_AGENT_TOKEN" \
  -d '{"workflow":"keep-an-agent-working"}'

Or call the products yourself, step by step:

ProductEndpointTools
RepoOpshttps://mcp.repoops.ai/mcpsearch_brain get_pre_edit_context propose_brain_entry get_incident_attribution
PromptComputehttps://mcp.promptcompute.ai/mcprequest_approval get_approval cancel_approval answer_approver

Set it up

The app at app.promptreports.ai is live. These steps will work once this workflow is on the runner. Switching on

  1. Sign in at app.promptreports.ai with PromptReports ID, and pick your org.
  2. Connect RepoOps, PromptCompute on the Connections page. Link Session scoring on for the team in RepoOps, on each person's own model key through the product that uses it.
  3. Register the agent that will run it on the Agents page, and give it a version manifest.
  4. Nothing to approve: this workflow only reads.
  5. Fill in the inputs (Agent, Repository) and choose the trigger: the agent's schedule, every two weeks by default.
  6. Start a dry run. It will count no workflow request, and it shows which steps would record missing evidence.
  7. Start the run. Approve each gate in the approvals inbox, then read the signed record when it ends.