
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qixโs account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
A multi-agent AI framework for collaborative scientific research, implementing tournament-based hypothesis evolution and peer review systems
A multi-agent AI framework for collaborative scientific research, implementing the "Towards an AI Co-Scientist" methodology with tournament-based hypothesis evolution, peer review systems, and intelligent agent orchestration.
๐ง Multi-Agent Architecture: Specialized agents for hypothesis generation, peer review, ranking, evolution, and meta-analysis
๐ Tournament-Based Selection: Elo rating system for hypothesis ranking through pairwise comparisons
๐ Comprehensive Review System: Scientific soundness, novelty, testability, and impact assessment
๐ Iterative Refinement: Meta-review guided evolution with strategic hypothesis improvement
๐ฏ Diversity Control: Proximity analysis to maintain hypothesis diversity and reduce redundancy
๐ Execution Metrics: Detailed performance tracking and agent timing analytics
๐พ State Persistence: Save and resume research workflows with agent state management
๐ก๏ธ Robust Error Handling: Graceful fallbacks and recovery mechanisms for production reliability
You can install the package using pip:
pip install -e .
Or install dependencies directly:
pip install swarms loguru python-dotenv
from ai_coscientist import AIScientistFramework
# Initialize the AI Co-scientist Framework
ai_coscientist = AIScientistFramework(
model_name="gpt-4",
max_iterations=3,
hypotheses_per_generation=10,
tournament_size=8,
evolution_top_k=3,
verbose=True
)
# Define your research goal
research_goal = "Develop novel approaches for improving reasoning capabilities in large language models"
# Run the research workflow
results = ai_coscientist.run_research_workflow(research_goal)
# Access the results
print(f"Generated {len(results['top_ranked_hypotheses'])} top hypotheses")
for i, hypothesis in enumerate(results['top_ranked_hypotheses'], 1):
print(f"{i}. {hypothesis['text']}")
print(f" Elo Rating: {hypothesis['elo_rating']}")
print(f" Win Rate: {hypothesis['win_rate']}%")
The AI-CoScientist framework consists of 8 specialized agents:
ai_coscientist = AIScientistFramework(
model_name="claude-3-sonnet",
max_iterations=5,
base_path="./custom_states",
verbose=True,
tournament_size=12,
hypotheses_per_generation=15,
evolution_top_k=5,
)
# Save agent states
ai_coscientist.save_state()
# Load previous states
ai_coscientist.load_state()
results = ai_coscientist.run_research_workflow(research_goal)
# Execution metrics
metrics = results['execution_metrics']
print(f"Total time: {results['total_workflow_time']:.2f}s")
print(f"Hypotheses generated: {metrics['hypothesis_count']}")
print(f"Reviews completed: {metrics['reviews_count']}")
print(f"Tournament rounds: {metrics['tournaments_count']}")
# Meta-review insights
insights = results['meta_review_insights']
print("Strategic recommendations:", insights.get('strategic_recommendations'))
make style
to format the codemake check_code_quality
to check code quality (PEP8 basically)black .
ruff . --fix
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)For detailed documentation, see DOCS.md.
If you use AI-CoScientist in your research, please cite:
@software{ai_coscientist,
title={AI-CoScientist: A Multi-Agent Framework for Collaborative Scientific Research},
author={The Swarm Corporation},
year={2024},
url={https://github.com/The-Swarm-Corporation/AI-CoScientist}
}
MIT License - see LICENSE file for details.
FAQs
A multi-agent AI framework for collaborative scientific research, implementing tournament-based hypothesis evolution and peer review systems
We found that ai-coscientist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qixโs account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.