PanCode
All tutorials

Checks and records5 min read

Report a problem without leaking your machine

Draft a bug report, read the exact text with your paths, names and keys masked, choose how it leaves, and share a diagnostic bundle only if you want to.

Written for
v0.9.0
Works in
Terminal
Basis
Documented workflow
Updated
Terminal: report bug with a title and a notes file, as a dry run. The preview says the report would be public, posted from the gh account to github.com/PanStudio/pancode, with nothing sent yet; the body shows the host name and the project folder replaced by <host> and <path>, then an environment block for PanCode 0.9.2 and a report details block. It ends: masked 1 path and 1 host name, no secrets recognized, no diagnostic bundle attached, what sending would do in order, and dry run: nothing sent. No model.
The exact text a report would carry, with the machine's names masked, before anything leaves. No model. Terminal · v0.9.2
On this pageBefore you start Draft a report Read what would be posted Choose how it leaves Attach a diagnostic bundle only if you want to Sharing is turned off Forget it later

When PanCode itself misbehaves, /report in a session and pancode report in a shell draft a bug report, a feature request or a question for its maintainers. You read the exact text before anything leaves your machine, with your paths, names and keys masked, and PanCode never sends a report on its own. This tutorial previews a report and never sends one.

Before you start

  • PanCode installed.
  • A folder where you have run at least one session, for --last.
  • To send for real: the GitHub CLI gh, signed in. Without it you can still open or write the report.

Draft a report

In a session, /report bug footer flickers on resize uses the summary as the title and adds what PanCode observed in the current session. /report feature and /report question work the same way. From a shell, --title and --body-file supply the text, and --last adds the newest session in this folder:

Shell

pancode report bug --title "footer flickers on resize" --body-file notes.txt --last --dry-run

Without --body-file, a terminal opens $EDITOR on a template. --session <id> names another session. The note in this run named the machine and the project folder on purpose.

Read what would be posted

The preview opens with where the report would go, then the body exactly as it would be sent:

Public, posted from your gh account to github.com/PanStudio/pancode; nothing sent yet

----- title -----

fix: footer flickers on resize

----- body, exactly as it will be sent -----
### What happened

The footer flickers when I resize the terminal on <host>.
Repro: open pancode in <path> and drag the window edge.

The host name and the folder were masked before the preview was shown. Below the body come an environment block (version, platform, Node, install kind and model) and a report block with an id. The preview ends with what was masked and what sending would do:

Masked by PanCode: 1 path, 1 host name. No secrets recognized.
No diagnostic bundle is attached.

Sending will, in this order:
  1. search PanStudio/pancode for an existing report of the same problem
  2. post the text you reviewed as a public issue from your gh account
dry run: nothing sent

The masks cover local paths, URLs other than PanCode's own, user, host, project, branch, remote and connection names, e-mail and IP addresses, and secrets, including the API keys the process holds. The review then searches the text again for this machine's names, and refuses to send while one slipped past or the text holds hidden characters.

In the session, e edits the text in $EDITOR and masks the edit again, m masks or unmasks one value, Enter moves to the next step and Esc closes the review and keeps a draft.

Choose how it leaves

What happens at the end depends on what the machine has:

  • Send. With a signed-in gh, PanCode searches GitHub for the same problem, then posts a public issue under your account. In a session only s on the send step sends, never Enter. In a shell you choose send at the prompt, or pass --yes.
  • Open. Without gh, it opens a prefilled form in your browser, and you submit it there.
  • Write. Without a browser, it writes the report to a file and prints the link to paste it into.
  • Preview. --dry-run stops after the preview, with no network call.

The shell prompt can also save a draft for pancode report send <id> later. When the search finds an open report of the same problem, you choose to add your details to it, file a new issue that links it, or cancel. With --yes, --on-duplicate stop is the default: the draft is saved and the command exits 3.

Attach a diagnostic bundle only if you want to

A bundle is opt-in and built only from a shell: add --bundle mechanics --consent debug with --last or --session <id>. Its preview lists what it keeps and what it never keeps:

Never kept:
  - Prompts, model text, thinking, tool arguments and output, unless the transcript is ticked.
  - File contents, diffs, commit messages.
  - Absolute or relative paths, repository names and remotes, branch names.
  - Host and user names, endpoint URLs, connection ids, agent, rule and hook names, environment variables.
  - Anything a schema does not bound.

--transcript [N] adds the last turns, scrubbed. debug lets the maintainers read the bundle to fix this report, and dataset also lets its mechanics go into public datasets. pancode report selftest builds the same bundle in memory and writes nothing. Here it printed 0 identifiers found in 11370 bytes, and it exits 1 when an identifier survives.

The bundle stays on your machine and the issue never carries it. /report in a session, over ACP or in the desktop app attaches no bundle.

Sharing is turned off

Report sharing is turned off in this build. --share uploads nothing: it prints Report sharing is turned off in this build. and exits 2.

Forget it later

pancode report status lists your reports and drafts, and pancode report forget <id> deletes a draft you never posted. A posted report cannot be withdrawn from PanCode; edit or close it on GitHub.

Your local copy of a sent report's bundle is deleted once it is 30 days old, the next time you compose, send or forget a report; pancode report sweep deletes every expired bundle now. Nothing runs at startup or in the background.

Exit codes

pancode report exits 0 when the report was sent, opened in the browser, written or previewed; 1 when sending failed or a bundle was refused; 2 on a usage error, or outside a terminal without --yes; and 3 when a likely duplicate or a newer release stopped it and the draft was saved.

Boundaries

  • The masks cover the names PanCode knows about this machine. Text you typed about another machine can pass, so read the preview.
  • A sent report is a public GitHub issue. Security problems never go there: /report security prints the link to the private advisory form.
  • The agent can save a draft, but never send one or share a bundle. Only your own review sends.

By Anthony Kougkas · PanCode

Continue with the documentation