rea-analysis-optimization
MOmorluto/rea486k8,943 new stars in the last 7 days
Help clarify human bug reports, search for duplicates, and gather diagnostic evidence, including harness install, login, auth, and model diagnostics, separately from a concise issue draft.
Help the reporter describe what they observed and add useful evidence. A short human observation is enough to report a bug; reproduction, logs, and a diagnosis are optional. Use this skill for reports from chat, an existing issue, or a local user.
Read the available report, screenshots, and follow-ups first. Preserve the original reporter's words and attribution, including when someone else relays their report. Don't infer a GitHub username from a chat display name.
Ask only questions that would materially clarify the symptom, a few at a time. Don't repeat questions already answered or turn these suggestions into required fields:
If a screenshot is unavailable, accept a description. If the reporter cannot remember steps or reproduce the problem, preserve that uncertainty and proceed with what is known. Never invent steps or make the reporter diagnose the bug before accepting it.
Draft a specific symptom-based title and a short body, normally one paragraph or a few bullets. Include only details supplied directly by the human: their observation, expected behavior, steps, frequency, environment, and impact when they provided them. Light editing for clarity is fine; preserve meaning and uncertainty. Omit empty sections and unnecessary background. Do not add agent-inferred impact, root cause, confidence scores, or proposed fixes to the report.
Example human report:
After I switched projects, the terminal stayed blank. I expected to see the session prompt. It happened twice today on macOS; I don't know how to reproduce it reliably.
Keep agent-discovered information separate from the human report and label it Agent-collected evidence, even when it confirms the report. Include only relevant excerpts and:
If no useful evidence is available, deliver the human report alone. Never pad it with speculation or claim a reproduction succeeded when it didn't.
Use diagnostics that fit the symptom, within the user's requested scope. Prefer read-only checks against the affected installation. Don't restart sessions, upgrade AO, change live data, or alter the user's checkout just to collect evidence.
AO uses a Go daemon and an Electron/React frontend. Read docs/architecture.md for
current boundaries and locate actual files with rg before citing code. Do not rely
on the old TypeScript implementation or assume which runtime backs a session.
Before trusting diagnostics, identify the AO executable and affected daemon. A PATH
lookup may resolve to a legacy install. Check the executable's version and status,
and the configured run file/data directory (AO_RUN_FILE / AO_DATA_DIR when set).
The primary daemon normally uses loopback port 3001; port alone does not establish
which version or installation is affected. Consult the installed CLI help for commands.
For local-daemon evidence, use the affected binary's --version and status --json;
status reads existing state without starting the daemon. For a known affected session,
use session get <id> --json and keep only fields relevant to the symptom. If the
daemon is unavailable, record its status or error and mark session evidence unavailable.
Record app and CLI versions separately from daemon identity. Health probes provide no
daemon release version; dev alone or missing build metadata does not identify the
source. Label source findings approximate when the affected build cannot be matched.
Do not run doctor or agent ls as routine evidence collectors: doctor writes files
and checks remote authentication; agent listing triggers readiness checks.
remote-host status --show-password prints the pairing password; run status
without that flag. Desktop status refresh may start
a replacement daemon; prefer the CLI status check or already available evidence.
Collect only what helps explain this symptom:
| Symptom | Potential evidence |
|---|---|
| UI rendering or interaction | Screenshot/recording, relevant console errors, affected view |
| Session or terminal state | Affected session's daemon state, relevant log excerpt, runtime details |
| Daemon or CLI failure | Version/status, exact command and error, relevant daemon logs |
| Persisted state mismatch | Relevant rows and schema from a read-only SQLite query |
| Harness install, login/auth, or models | Harness Health diagnostics and that harness's cached readiness, install job, and advisory (below) |
Locate logs for the affected process rather than assuming ~/.ao/daemon.log is current.
The daemon logs to $AO_DATA_DIR/daemon.log; that older file only covers keep-alive
launches. Record missing evidence instead of enabling logging just to create it.
When a report involves an agent harness (Claude Code, Codex, OpenCode, and so on),
such as a failed install or update, a login that works in a terminal but not in AO, an
unexpected unauthorized or configured (unverified) state, missing or wrong models,
or a session whose agent fails to launch, collect that harness's diagnostics from the
affected host. They name the executable, the credential source, and the check that
failed, which usually decides where the bug is.
Ask the reporter for the in-app report first; it reflects their own app and host: Settings → Harness → the harness → Health → Copy diagnostics. For a failed install or update, Account → Show diagnostics → Copy diagnostics adds the install method, expected destination, error, and installer output. The text covers the host, installation and authentication state, each auth check step, installed and latest versions, maintenance method, executable path, and a memory/CPU reading. For a remote host, that copy comes from the remote daemon; the local API below describes only the local host.
On the affected machine, read the same evidence from the daemon. It is a loopback,
no-auth service; take the port from the affected binary's status --json. Use that
binary rather than whichever ao is on PATH, and an environment whose AO_DATA_DIR and
AO_RUN_FILE match the affected install; an Orchestrator worker may inherit others.
ao_bin=/path/to/affected/ao # the binary identified above
port=$("$ao_bin" status --json | jq -r 'select(.state != "stale" and .health != null) | .port // empty')
h=claude-code # affected harness id
if [ -n "$port" ]; then
api="http://127.0.0.1:$port/api/v1/agents"
curl -fsS "$api/readiness" | jq --arg h "$h" '.agents[] | select(.id == $h)
| del(.authentication.account.email, .authentication.account.name,
.authentication.account.organization)'
curl -fsS "$api/install-jobs" | jq --arg h "$h" '.jobs[] | select(.target == $h)'
curl -fsS "$api/installers" | jq --arg h "$h" '.agents[] | select(.agentId == $h)'
curl -fsS "$api/$h/update-advisory"
else
echo 'daemon not running, stale, or unverified; record that and skip daemon evidence'
fi
A daemon whose /healthz owner check did not pass has no health field, and its port
may belong to another process. If the daemon is not running, stale, or unverified,
don't start or restart it to collect this evidence.
readiness returns cached installation and authentication observations without
running native checks. authentication.diagnostics[] lists each auth check's
method, code, reason, nextStep, source, provider, httpStatus,
exitCode, cached, and checkedAt. With authentication.reasonCode and
freshness, it is the main evidence for login and auth reports. Codes are authored
classifications, not raw CLI output.install-jobs holds the latest install, update, or verify job: status, method,
command, expectedDestination, error, and the tail of installer output.installers shows the resolved install plan and why a method is unavailable.update-advisory reports installed and latest versions, binaryPath, and update
status/reason. It serves a cached result, but runs a version probe and package
lookup when nothing is cached, after an install or update, or when an earlier lookup
failed; record that when it happens.models?catalogOnly=true returns the persisted model catalog, but any read may start
background model discovery or revalidation, even when a catalog is cached, and can
replace the catalog the reporter saw. Read it only for model-list symptoms, record the
time, and include refreshState from the response. Claude Code discovers models
under the default saved account when one exists, not the computer login readiness
reports, so compare a Claude catalog with that account. See
docs/harnesses/model-catalogs.md for catalog sources and what Configured does
and does not prove.For a launch failure in a known session, add the harness, model, and state fields from
session get <id> --json and the relevant daemon log lines. When the reporter says
login works in their terminal, compare that terminal's executable, user, host, and
config directory or environment overrides with the diagnostics: AO checks run in its
own process environment.
Claude Code and Codex sessions can run on a saved AO account with its own CLI home,
while readiness checks only the machine's own login. Readiness can therefore say
authorized while the session runs on a signed-out or usage-limited saved account, or
the reverse. For login, unauthorized, or launch reports on these harnesses, record the
session's account with "$ao_bin" account show <session-id> --json. Pass the reporter's
session ID; without one it reports the current session. This read-only lookup returns
only account IDs, falling back to the provider's default when none is saved.
GET /agents/accounts (behind account ls) is not passive: it re-reads sign-in and
limits for any account whose reading is due, which runs CLI or provider calls, and it
returns every account's identity and limits. Read it only for account symptoms, record
the time, and keep only the session's account and its diagnostic fields. Read it from
the daemon, not account ls --json, which drops problemKind, limits, and
sameLoginAs. Don't use --refresh, account switch, or account default.
sid=<session-id> # the reporter's session
acct=$("$ao_bin" account show "$sid" --json | jq -r '.claude // empty') # .codex for Codex
if [ -n "$port" ]; then # $port and $api from the snippet above
curl -fsS "$api/accounts" | jq --arg a "$acct" '.accounts[] | select(.id == $a)
| {id, provider, kind, default, signedIn, loggedIn, problem, problemKind, limits,
sameLoginAs}'
fi
Don't call any non-GET /agents/* route just to collect evidence; they run native
install or auth checks or model discovery, or change state. Examples include
readiness/ensure, refresh, probe, verify, models/refresh, install, auth,
logout, the account login, API-key, default, session-switch, and DELETE routes, and
accounts/{id}/reset-credit, which spends one of the account's Codex usage-limit
resets. Also avoid ?refresh=true, agent ls, and account ls --refresh,
account default, or account switch. Don't run the harness's own login, logout,
auth status, doctor, or update commands; they can refresh tokens or rewrite credential
stores. Running --version on the executable reported above is fine when the advisory
has no version. If a fresh check would help, ask the reporter to press Check again
on the Health tab, and note when.
authentication.account can hold the account email, name, and organization; the
readiness filter above drops them so they never enter the evidence, matching the
Health-tab copy, and keeps method, sourceKind, and provider. source paths and
installer output can include usernames and home directories. Keep the source kind and
path shape (for example ~/.claude/.credentials.json) and redact identity unless the
reporter agrees it matters. Never open or attach the credential files, keychain
entries, or environment values these diagnostics point to.
Use the daemon API/CLI for state first. If database evidence is needed, discover the
actual database location and schema, open it read-only, and select only relevant rows
and columns. Never attach an entire database, broad log dump, or Electron profile
folder, which also holds browser cookies and storage. Redact tokens,
credentials, private prompts, and unrelated personal or repository data from every
artifact, including screenshots. Keep diagnostic artifacts under ~/.ao and out of
Git commits. Preserve evidentiary content when redacting, and verify that unrelated
content did not change. Share a useful excerpt rather than a wall of output.
Redaction masks known patterns only; review the exact draft and artifacts before sharing.
Try a safe reproduction when practical, recording the build actually tested. Failure to reproduce does not invalidate the human report. Code tracing or dependency research is optional when it can add concrete evidence. Keep findings in the separate evidence.
Resolve AO's canonical repository name before searching. GitHub issue and PR searches can return empty results for a former owner even when repository API requests redirect. Use the resolved name, not the reporter's project repository. Search open and closed issues and related PRs using the symptom or exact error:
if ao_triage_repo=$(gh api repos/OrchestratorInc/agent-orchestrator --jq .full_name) && [ -n "$ao_triage_repo" ]; then
gh issue list --repo "$ao_triage_repo" --state all --search '<symptom or error>' --limit 100
gh pr list --repo "$ao_triage_repo" --state all --search '<symptom or error>' --limit 100
else
printf '%s\n' 'Repository lookup failed; duplicate search skipped.' >&2
fi
Include the searched repository and candidates considered in the separate evidence. Try useful symptom synonyms or a shorter error fragment when needed.
Read likely matches before calling a report a duplicate. If one matches, give the reporter its link and draft only their new observation for a comment, with evidence attached separately. If a closed issue appears to have regressed, explain that to the reporter rather than silently treating it as resolved. If repository lookup or either search fails or is unavailable, say which part could not be checked. Empty, truncated, or failed searches do not prove there is no duplicate; continue preparing the report.
A local coding agent may help draft and gather attachments. Existing authorization still applies; triage alone is not permission to publish.
For an existing issue, preserve its human body and attribution. Add evidence separately when authorized. Don't rewrite the report into an investigation narrative.
When authorized to publish, include useful collected evidence before finishing. Use a clearly labeled comment or attachment, whichever fits the evidence. If evidence cannot be published, state the exact blocker and provide its local path. Never invent attachment URLs or create asset branches to host diagnostics. Keep the report body limited to human details. Apply only existing, relevant labels; don't add priority/confidence prose just to fill a template.
Finish with the concise draft (or issue link if submitted), any duplicate link, and attachment paths/links. Do not automatically file an issue, implement a fix, push a PR, or spawn a worker. Follow the user's requested scope and the repository's normal contribution workflow if they separately ask for implementation.
The bundled scripts/push_fix_to_github.py is a legacy fix publisher, not a triage step.
MOmorluto/rea486k8,943 new stars in the last 7 days
Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days