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.json
This 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 --undo
This command reverts the changes made to the source .tex
file.
python -m paper_agent --role polish --apply
Use this command to polish the paper writing.
python -m paper_agent --role review
This command generates pseudo reviews for the paper.
python -m paper_agent --role revise
Use this command to revise the paper based on the reviews.
python -m paper_agent --role sanitizer
This command performs a sanity check for format and references.