camel icon indicating copy to clipboard operation
camel copied to clipboard

feat: Add paper to code agent (#2283)

Open zhjuzi opened this issue 7 months ago • 10 comments

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:

  1. Planning phase: Generates a comprehensive plan for reproducing the paper's methodology and experiments
  2. Analysis phase: Creates detailed implementation logic for each component
  3. 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:

image image

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-number in the PR description (required)
  • [✅] I have checked if any dependencies need to be added or updated in pyproject.toml and uv 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

zhjuzi avatar May 11 '25 16:05 zhjuzi

can you also fix the pre-commit?

fengju0213 avatar May 19 '25 09:05 fengju0213

Thanks @zhjuzi for contributing this! It maybe interesting to benchmark it with https://github.com/openai/preparedness/tree/main/project/paperbench in the future!

lightaime avatar May 23 '25 01:05 lightaime

hello @zhjuzi ,anything block you?please let met know if you need any help.thanks!

zjrwtx avatar May 29 '25 13:05 zjrwtx

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.

zhjuzi avatar Jun 04 '25 15:06 zhjuzi

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!

zjrwtx avatar Jun 04 '25 16:06 zjrwtx

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Jun 08 '25 13:06 coderabbitai[bot]

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

zhjuzi avatar Jun 09 '25 15:06 zhjuzi

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!

waleedalzarooni avatar Nov 04 '25 12:11 waleedalzarooni

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.

zhjuzi avatar Nov 11 '25 15:11 zhjuzi

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: @.***>

zhjuzi avatar Nov 11 '25 15:11 zhjuzi