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 · 中文
Quickstart
With uv installed, run this in the directory containing your reviews.md (one heading per reviewer: # R1, # R2, …). No Git clone or API key is needed:
uvx rebuttalflow init reviews.md --client claude
For Codex or Cursor, replace claude with codex or cursor. This imports your reviews and sets up the MCP server and Skill for this project only. Start your first response.
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
--offlinemode) 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 viareview compress-checkwithout overwriting the full draft. - Deterministic pre-flight: Verifies exact UTF-16 OpenReview character counts per posting form (
review check-message), preserveslocked_spans, catches leftover LaTeX macros (\cite{},\ref{}, unbalanced$, broken Markdown tables), scans for anonymity leaks (emails, local paths, personal GitHub links, customforbidden_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): Send your advisor a single HTML file. Both the pack and the local desk render inline and display math with bundled KaTeX, without a network connection. Your advisor can select an equation and comment on it; importingadvisor-comments.jsonlinks the note back to the original TeX.
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.mdfiles or aone-page-texskeleton. No OpenReview write credentials, no accidental posting — only the author submits.
Recorded Walkthrough
End-to-end local run: restore brief → triage & bind CSV → sync rerun drift → check & compress → import advisor feedback
Draft Your First Response
To register a frozen submission, add --pdf submission.pdf to the initialization command. 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.
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_termsin.rebuttal/config.yaml. - Privacy & control: Online citation recon only sends reference titles/IDs to public APIs (use
--offlineanytime). Final replies are exported locally — RebuttalFlow never posts to OpenReview on your behalf.
Documentation & Contributing
- CLI Guide · Author Response Guide · v0.3 Design Spec · All Docs
- Development & verification instructions live in CONTRIBUTING.md and AGENTS.md.
- Released under the MIT License.
Metadata
Release files for rebuttalflow 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rebuttalflow-0.3.1.tar.gz | 191.2 kB | With provenance | Details for rebuttalflow-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rebuttalflow-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for rebuttalflow-0.3.1-py3-none-any.whl |
Total release size: 367.5 kB
Release files / rebuttalflow-0.3.1.tar.gz
| Download URL | rebuttalflow-0.3.1.tar.gz |
|---|---|
| Size | 191.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97de9422b6f853845c03cdfbf3a9facc680030c1c5d9f8547ca419a402d66a5c
|
|
BLAKE2b-256 checksum How to use checksums |
3b62888f4f2e31b3636db16f42cf9159b67a5f554955b26853bb36ffa1fef41d
|
| 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 logRelease files / rebuttalflow-0.3.1-py3-none-any.whl
| Download URL | rebuttalflow-0.3.1-py3-none-any.whl |
|---|---|
| Size | 176.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da56be36e2f14fb5146c2a58be6f3a767d36db6e7d8d2ed1e5300c803fedf892
|
|
BLAKE2b-256 checksum How to use checksums |
88952e9b628a14d055e89469db5aad53206aabf23f09877b5582c144880e79c7
|
| 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 logSecurity for rebuttalflow 0.3.1
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.
Attestation for rebuttalflow-0.3.1.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 logA 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.