Papex Logbook

Your AI-use statement, counted from what happened.

For Claude Code and Codex. Each step the agent takes goes into a logbook in your research folder, and your paper’s AI-use statement is counted from it.

Free. No Papex account needed.

A terminal after npx @papexlabs/logbook start: the Papex name, the line “Your AI-use statement, counted from what happened.”, the folder, Claude Code’s hooks and the recorder ticked off, and Logbook on.

How it works

  1. Turn it on in your research folder.

    Claude Code
    npx @papexlabs/logbook start
    Codex
    npx @papexlabs/logbook start --host codex

    Codex asks once for the hooks to be reviewed and trusted: /hooks in the CLI, Review hooks in the app.

    Needs Node.js 22.12 or newer. Tried on macOS only.

  2. Work as usual.

    While the agent works, the AI app’s own hooks write each step to .papex-log/log.jsonl in that folder. Each line carries the fingerprint (SHA-256) of the line before it.

  3. Print the statement.

    It counts the logbook and prints the AI-use statement in your publisher’s own form.

    Terminal
    npx @papexlabs/logbook statement --for elsevier
    • General (ICMJE, COPE)general
    • Elsevierelsevier
    • Springer Naturespringer-nature
    • Wileywiley
    • Taylor & Francistaylor-francis
    • IEEEieee
    • ACMacm
    • arXiv, AMSarxiv-ams

    Each follows that publisher’s AI policy as checked on 26 November 2026.

    A terminal after npx @papexlabs/logbook statement for one day of a real logbook: 15 instructions, 1823 steps (19 failed), the steps by tool and by model, the files and the chain head.
    Without --for, the same command draws the whole count. Here, one day of a real logbook.

What it keeps

Kept

  • Each tool step, with its time
  • The model, as the AI app names it, not confirmed by the provider
  • Shell commands, with secrets removed
  • Hashes of the files that changed
  • The time and length of each instruction

Never kept

  • The text of your instructions
  • File contents
  • Tool output

Search terms and web addresses are kept only with start --web.

It stays on your computer

The logbook commands send nothing anywhere.

Timestamps are opt-in. With start --anchor, the logbook’s fingerprint, line count and time go to Papex now and then, with the AI app’s name and the program’s version. The fingerprint is timestamped with OpenTimestamps, and the times appear on a public page for the logbook. Never commands, file names or the text of your instructions.

A reviewer can check it

Whoever gets the logbook file can check it at papex.org/verify, in their browser, with no account.

Check a logbook

Without our page: the format and a one-file Python checker are open source (Apache 2.0) at github.com/papexlabs/logbook-format.

What it shows

A logbook shows what the AI app recorded. Once its fingerprint is signed or timestamped, a later change to those lines shows. It does not show that a result is correct.

The whole way through, with a real statement: How to disclose Claude Code or Codex use in a research paper