feat: Add paper to code agent (#2283)
Description
This PR introduces a new agent, PaperToCodeAgent, designed to convert research papers into executable code. This agent analyzes academic research papers and generates code to reproduce the methods, experiments, and results described in the papers.
The PaperToCodeAgent follows a structured workflow:
- Planning phase: Generates a comprehensive plan for reproducing the paper's methodology and experiments
- Analysis phase: Creates detailed implementation logic for each component
- Coding phase: Generates actual code files based on the planning and analysis outputs
Key features of this agent:
- Supports both JSON and LaTeX paper formats
- Produces well-documented, modular code with proper project structure
- Generates configuration files based on paper parameters
- Creates complete, runnable implementations with necessary dependencies
- Handles complex parsing of model outputs with robust error handling
The agent can be particularly useful for reproducing research methods where no official implementation is available, making advanced research more accessible to the community.
Test
Attention Is All You Need paper test:
Checklist
Go over all the following points, and put an x in all the boxes that apply.
- [✅] I have read the CONTRIBUTION guide (required)
- [✅] I have linked this PR to an issue using the Development section on the right sidebar or by adding
Fixes #issue-numberin the PR description (required) - [✅] I have checked if any dependencies need to be added or updated in
pyproject.tomlanduv lock - [✅] I have updated the tests accordingly (required for a bug fix or a new feature)
- [✅] I have updated the documentation if needed:
- [✅] I have added examples if this is a new feature
can you also fix the pre-commit?
Thanks @zhjuzi for contributing this! It maybe interesting to benchmark it with https://github.com/openai/preparedness/tree/main/project/paperbench in the future!
hello @zhjuzi ,anything block you?please let met know if you need any help.thanks!
hello @zhjuzi ,anything block you?please let met know if you need any help.thanks!
Sorry for the delay. I was traveling and just got back. I’ll focus on finishing this section soon.
hello @zhjuzi ,anything block you?please let met know if you need any help.thanks!
Sorry for the delay. I was traveling and just got back. I’ll focus on finishing this section soon.
no worries @zhjuzi ,Looking forward to your update,thanks!
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
✨ Finishing touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
hello @zhjuzi ,anything block you?please let met know if you need any help.thanks!
Sorry for the delay. I was traveling and just got back. I’ll focus on finishing this section soon.
no worries @zhjuzi ,Looking forward to your update,thanks!
I have solved this issue
Hey @zhjuzi,
Thanks again for the PR, would just like to follow up and check the PR is ready for review so I can notify maintainers!
Hey @zhjuzi,
Thanks again for the PR, would just like to follow up and check the PR is ready for review so I can notify maintainers!
The PR is all set — thanks for checking in! Appreciate your attention and please go ahead to ping the maintainers.
The PR is all set — thanks for checking in! Appreciate your attention and please go ahead to ping the maintainers.
------------------ 原始邮件 ------------------ 发件人: "camel-ai/camel" @.>; 发送时间: 2025年11月4日(星期二) 晚上8:01 @.>; @.@.>; 主题: Re: [camel-ai/camel] feat: Add paper to code agent (#2283) (PR #2390)
waleedalzarooni left a comment (camel-ai/camel#2390)
Hey @zhjuzi,
Thanks again for the PR, would just like to follow up and check the PR is ready for review so I can notify maintainers!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>