q-export

q-export is a command for Claude Code from assafkip/investigators-copilot. It costs 0 tokens per session (517 once invoked), scanned A, original, MIT.

An investigation export command that converts case data into formats such as Markdown, JSON, CSV, STIX, MISP, or timeline HTML.

In plain words
What is it for?
Use it to export targets, findings, relationships, and timelines, with an option to redact sensitive information.
Why use it?
It turns files gathered during an investigation into structured outputs that can be read, shared, imported, or mapped elsewhere.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the investigators-copilot plugin — 6 skills, 24 commands, 1 agent, 2 hooks shipped together

Good fit Use it to export targets, findings, relationships, and timelines, with an option to redact sensitive information.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/assafkip/investigators-copilot/q-export
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/assafkip/investigators-copilot

Made for: Claude Code.

Or install investigators-copilot, the plugin that ships this one along with the rest of its 6 skills, 24 commands, 1 agent, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for q-export

README.md
[![agentmods](https://agentmods.dev/badge/commands/assafkip/investigators-copilot/q-export/github.svg)](https://agentmods.dev/commands/assafkip/investigators-copilot/q-export)
Your own site
<a href="https://agentmods.dev/commands/assafkip/investigators-copilot/q-export"><img src="https://agentmods.dev/badge/commands/assafkip/investigators-copilot/q-export/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for q-export

Your own site · 80×15
<a href="https://agentmods.dev/commands/assafkip/investigators-copilot/q-export"><img src="https://agentmods.dev/badge/commands/assafkip/investigators-copilot/q-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 517 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00517
Opus 5.5 $0.00000 $0.00207
Sonnet 5.5 $0.00000 $0.00103
Haiku 4.5 $0.00000 $0.00052

Measured 15d ago against content hash 291a30743798, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

q-export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/q-export.md · 24 lines

What it actually says

Export investigation data in a structured format.

Active case: read the case folder name from the first line of .active-case (written by /q-begin and /q-new-case). Every path below is inside investigations/<case>/. If .active-case is missing or empty, ask the founder which case to use. Never read or write the legacy root folders canonical/, investigations/<case>/, memory/.

Execute the /q-export steps from .q-system/commands.md.

Formats: markdown, json, timeline-html, stix, misp, csv, map. Flag: --redact.

S=skills/osint/scripts

  1. Gather all investigation files from investigations/<case>/investigation/ and output/analyses/
  2. Export in requested format:
    • markdown: Full investigation report (render [EV-NNNN] citations with python3 $S/render-report.py <in.md> <out.md>; it fails on a broken citation)
    • json: Structured data (targets, findings, links, timeline)
    • timeline-html: python3 $S/render-timeline.py --case <case> (add --timesketch for a Timesketch import CSV)
    • stix | misp | csv: python3 $S/export-intel.py stix|misp|csv|all --case <case> [--tlp clear|green|amber|red]
    • map: python3 $S/render-map.py --case <case> (EXIF/analyst points, not verified locations)
  3. Every URL the export relies on must be an EV-NNNN item. Capture missing ones with bash $S/capture-evidence.sh --batch <file> --case <case> (see /q-screenshots). No screenshots/ dump folder.
  4. --redact: run python3 $S/redact-pii.py <export.md>; it writes <stem>.redacted.md beside the export (presidio if installed, else regex). Share the redacted copy; keep the original in the case.
  5. Save to investigations/<case>/output/exports/
  6. Present to founder

Argument: $ARGUMENTS (optional: format -- markdown, json, timeline-html, stix, misp, csv, or map; optional --redact. Defaults to markdown.)

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 24 lines · 0 tokens per session scan A 291a30743798

Subscribe to this mod's changes

q-export is a command published in the GitHub repository assafkip/investigators-copilot (77 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 517 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

q-export compared with commands from other repositories

q-export next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
q-exportassafkip/investigators-copilotCommand7728d agoMITA0Claude Code
q-client-questionsassafkip/huntkitCommand531mo agoMITA0Claude Code
q-new-caseassafkip/huntkitCommand531mo agoMITA0Claude Code
q-screenshotsassafkip/huntkitCommand531mo agoMITA0Claude Code
q-endassafkip/huntkitCommand531mo agoMITA0Claude Code
q-intakeassafkip/huntkitCommand531mo agoMITA0Claude Code
q-osintassafkip/huntkitCommand531mo agoMITA0Claude Code