Ensure that the OPENAI_API_KEY environment variable is set before using the tool.
Refer to the config.json file for configuration details.
python -m paper_agent --role ROLE --apply --output_dir tmp/ --config config.jsonThis command performs actions on the LaTeX code, generating modified .tex files in the specified output_dir. It also creates patch files in the current directory, which can be applied later using patch ***.tex < ***.text.patch. When the --apply flag is specified, these patches are applied directly to the source .tex file.
python -m paper_agent --undoThis command reverts the changes made to the source .tex file.
python -m paper_agent --role polish --applyUse this command to polish the paper writing.
python -m paper_agent --role reviewThis command generates pseudo reviews for the paper.
python -m paper_agent --role reviseUse this command to revise the paper based on the reviews.
python -m paper_agent --role sanitizerThis command performs a sanity check for format and references.