Skip to main content

RebuttalFlow

Lightweight, local-first rebuttal workspace & MCP for Claude Code, Codex, and Cursor.
Connect every reviewer question to live experiment results, exact posting limits, and offline advisor review — without losing context across sessions.

Project Page · Live Advisor Pack Demo · Quickstart · CLI Guide · Author Guide · 中文

Python 3.11+ MCP Native Local First Zero Embedded LLM SDK MIT License


RebuttalFlow end-to-end feature map: cross-session brief, question triage, live CSV metric sync, safe compression, three-pane review desk, and offline advisor annotations
Full workflow from initial reviews to final local export · Editable Excalidraw source

Why RebuttalFlow?

Strong coding agents rarely fabricate numbers out of thin air anymore. What actually breaks during a stressful 7-day conference rebuttal is cross-session amnesia, shifting experiment tables, brutal character limits, and messy advisor handoffs:

When a late rerun drops from 78.4% to 70.0% — crossing below a 72.6% baseline — updating the number is not enough. Two reviewer letters cite that experiment, and both conclusions now need a second look. RebuttalFlow refreshes every bound value and table together and flags the affected drafts for the author to revisit. (See the reproducible synthetic example.)

Pain point during a 7-day rebuttal Plain coding agent chat Coding agent + RebuttalFlow
Multi-day / multi-window sessions Re-paste reviews and re-explain progress every morning rebuttal brief restores open issues, stances, deadlines & char budgets in one call
Missing papers cited by reviewers Manually hunt arXiv, check publication dates & GitHub repos rebuttal recon extracts named papers, checks contemporaneous dates & public code
Late reruns & new seeds Hunt and edit hardcoded numbers across Common, R1, and R3 rebuttal metric sync updates {{metric:...}} / {{table:...}} everywhere & flags drift
OpenReview character limits LLMs miscount chars or silently drop key baselines when shortening Full draft first + compress-check verifies exact UTF-16 length & locked facts
Advisor & co-author review Trade messy Word/WeChat notes and translate them back to the agent rebuttal share exports a single offline HTML file; annotations import cleanly back to the agent
Submission safety Spot-check \cite{}, broken tables, or identity leaks by eye rebuttal check catches syntax bugs, anonymity leaks, missing answers & cross-reply drift

Core Features

1. Cross-Session Memory (rebuttal brief)

Open a fresh Claude Code, Codex, or Cursor session on Day 4 and restore the entire rebuttal state immediately — pending high-leverage issues, reviewer stances, remaining character budgets, synced metric alerts, and open advisor comments — without re-pasting yesterday's chat.

2. Citation Recon & Priority Map (rebuttal recon · rebuttal map)

  • Citation Recon: Extracts papers mentioned in reviews and queries public metadata (arXiv / Semantic Scholar / GitHub, with --offline mode) to track abstracts, contemporaneous publication dates, and official code repositories under .rebuttal/refs/.
  • ROI Priority Map: Groups overlapping reviewer concerns (overlap_group) and ranks work into four actionable buckets — PDF-grounded clarifications, shared high-leverage experiments, citation comparisons, and scope boundaries — so one experiment can answer multiple reviewers.

3. Live CSV / JSON Metric Binding (rebuttal metric bind · sync)

Bind local experiment outputs (.csv or .json) as live MetricCards and embed {{metric:M1.ours_acc:.2f}} or {{table:M1}} in your response templates. Whenever a script finishes a new seed or baseline, rebuttal metric sync refreshes every linked reply automatically and flags claim-strength drift for human review.

4. Write Full, Compress Safely & Pre-Flight Check (rebuttal check · review compress-check)

  • Evidence-first drafting: Inspect every reviewer's verbatim questions and linked evidence with rebuttal review plan R1, save the complete response first, and test shorter candidates via review compress-check without overwriting the full draft.
  • Deterministic pre-flight: Verifies exact UTF-16 OpenReview character counts per posting form (review check-message), preserves locked_spans, catches leftover LaTeX macros (\cite{}, \ref{}, unbalanced $, broken Markdown tables), scans for anonymity leaks (emails, local paths, personal GitHub links, custom forbidden_terms), and checks coverage and cross-reply consistency.

5. Three-Pane Review Desk & Offline Advisor Pack (rebuttal ui · share · feedback)

  • Local Review Desk (rebuttal ui): A zero-Node, loopback-only three-pane workspace showing reviews + frozen submission PDF links on the left, live-rendered replies with metric hover cards and character budget bars in the middle, and passage-level feedback (plus optional local CLI agent suggestions) on the right.
  • Offline Advisor Pack (rebuttal share): Generates a standalone, zero-network HTML file (preview the public demo) you can send over Slack, WeChat, or email. Your advisor highlights passages, writes inline comments, and exports advisor-comments.json — import it via rebuttal feedback import and let your agent apply every note cleanly.

6. Blinded Red-Team & Multi-Round Discussion (redteam · review add-followup · thread)

  • Blinded Critique (rebuttal redteam prepare): Builds a strict whitelist critique packet containing only the frozen PDF reference, original review, and rendered reply — stripping internal notes and chat history to fight model sycophancy.
  • Multi-Round Discussions: Append later reviewer questions without reinitializing (rebuttal review add-followup R1 note.txt) and inspect local authorized forum threads (rebuttal review thread R1 forum.json).
  • Local Export Only (rebuttal export): Exports clean per-reviewer .md files or a one-page-tex skeleton. No OpenReview write credentials, no accidental posting — only the author submits.

Recorded Walkthrough

Recorded workflow: restore a brief, triage evidence, sync a table, check a draft and import advisor feedback
End-to-end local run: restore brief → triage & bind CSV → sync rerun drift → check & compress → import advisor feedback


Quickstart

Requires Python 3.11+ (no Node runtime, external database, or embedded LLM API key needed).

With uv installed, run this in the directory containing your reviews.md (use headings such as # R1, # R2). No repository checkout is needed:

uvx rebuttalflow init reviews.md --client claude

For Codex or Cursor, use --client codex or --client cursor. This installs the MCP configuration and Skill only in this project. Add --pdf submission.pdf to register your frozen submission. No reviews handy? Open the advisor demo or run the synthetic walkthrough.

Then reopen your coding agent in that directory and paste:

Read the reviews, split their questions and link my results. Show R1's response plan, then draft a numbered reply with the matched baseline and measured result for each empirical question. Save the full evidence draft first; only then shorten it to the posting limit. Do not submit.

Everyday commands across the rebuttal week:

Use uvx rebuttalflow in place of rebuttal, or install the persistent shortcut once with uv tool install rebuttalflow. Both the local desk and the single-file advisor pack render $...$ and $$...$$ with bundled KaTeX; no CDN, web fonts, or Node runtime is needed.

rebuttal brief                              # Day 2+: restore compact state in a new session
rebuttal recon run --offline                # Extract cited missing papers (drop --offline to query public metadata)
rebuttal map                                # View 4-bucket ROI priority map
rebuttal review plan R1                     # Inspect R1's verbatim questions & linked evidence
rebuttal metric sync                        # Refresh all bound drafts after an experiment rerun
rebuttal check                              # Exact char limit, syntax, anonymity, coverage & drift check
rebuttal share --out review-pack.html       # Export standalone offline HTML for advisor annotations
rebuttal feedback import advisor-notes.json # Bring advisor comments back for your agent
rebuttal review add-followup R1 note.txt    # Append round-2 reviewer questions without reinitializing
rebuttal export --format openreview         # Export clean local Markdown (or --format one-page-tex)

Reference: CLI Commands, 10 MCP Tools & .rebuttal/ Layout

Top-Level CLI Commands

Command Purpose
rebuttal init Initialize .rebuttal/, import reviews, register frozen PDF & optional --client MCP/Skill
rebuttal setup Preview or write project-local MCP config & thin Skill (codex / claude / cursor)
rebuttal brief Emit a compact cross-session status brief (--json or Markdown)
rebuttal map Rank concerns across 4 ROI buckets (pdf_refute, experiments, citation_clarify, boundaries)
rebuttal recon run / list / add missing paper metadata & public code lookups
rebuttal metric bind / sync / list local CSV/JSON result cards & live table bindings
rebuttal review plan / add-followup / thread / check-message / compress-check
rebuttal check Deterministic pre-flight check (UTF-16 chars, locked spans, syntax, anonymity, coverage, drift)
rebuttal ui Launch loopback three-pane review desk (--enable-agent-bridge for optional local CLI edits)
rebuttal share Export offline advisor HTML pack (paired with feedback import/list/resolve & redteam prepare/run)
rebuttal export Export checked local replies (openreview Markdown or one-page-tex)

10 MCP Tools Exposed to Coding Agents

rebuttal_brief · get_context · upsert_issues · get_battle_map · recon_references · bind_metric · sync_metrics · save_draft · check_preflight · manage_feedback

Local .rebuttal/ Directory Structure

.rebuttal/
├── config.yaml              # Venue limits, deadline, submission date, frozen_pdf_path, forbidden_terms
├── state/
│   ├── events.jsonl         # Append-only audit log (replayable via `rebuttal state rebuild`)
│   └── snapshot.json        # Atomic state projection
├── reviews/raw_snapshot.json # Immutable original reviews & follow-ups
├── refs/                    # Citation recon index & per-paper Markdown cards
├── metrics/                 # Bound CSV/JSON MetricCards & rendered tables
├── drafts/                  # Full templates (*.tmpl.md) & rendered outputs (*.rendered.md)
└── feedback/                # Advisor annotations & blinded red-team findings

Safety & Design Boundaries

  • File-first & transparent: All state lives in .rebuttal/ as plain JSON, JSONL, YAML, and Markdown. Frozen submission PDFs and verbatim review quotes are treated as read-only untrusted data.
  • No lock-in: Runs locally as a CLI and review desk even without an agent. Tune venue limits, deadlines, submission dates, and anonymity forbidden_terms in .rebuttal/config.yaml.
  • Privacy & control: Online citation recon only sends reference titles/IDs to public APIs (use --offline anytime). Final replies are exported locally — RebuttalFlow never posts to OpenReview on your behalf.

Documentation & Contributing

Metadata

Release files for rebuttalflow 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rebuttalflow 0.3.0
File Size Uploaded Provenance Actions
rebuttalflow-0.3.0.tar.gz 189.6 kB With provenance Details for rebuttalflow-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rebuttalflow 0.3.0
File Interpreter ABI Platform Actions
rebuttalflow-0.3.0-py3-none-any.whl Python 3 none any Details for rebuttalflow-0.3.0-py3-none-any.whl

Total release size: 365.3 kB

Release files / rebuttalflow-0.3.0.tar.gz

Download URL rebuttalflow-0.3.0.tar.gz
Size 189.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc5d95ecbf1bf177551069f19a6aca5cd9945f1b207b01c9f5e1cdc28e752ee
BLAKE2b-256 checksum
How to use checksums
ad1ce3462c419194aadc5206923eb564adf21bf8624c7e101f7e241df82cc954
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / rebuttalflow-0.3.0-py3-none-any.whl

Download URL rebuttalflow-0.3.0-py3-none-any.whl
Size 175.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92f3aa14ff3dd2fa7ab3ff7179323f253f76c9b07a934cbe0710b8a15aa3d08f
BLAKE2b-256 checksum
How to use checksums
28105788e1b63888b6171cda515e164d6448ed3bc93c31e56605b1b38e522328
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for rebuttalflow 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rebuttalflow-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page