Home
cd ../playbooks
FinanceIntermediate

Scientific Denario

Multiagent AI system for scientific research assistance that automates research workflows from data analysis to publication. This skill should be used when generating research ideas from datasets, developing research methodologies, executing compu...

10 minutes
By K-Dense AISource
#scientific#claude-code#denario#statistics#visualization#database#protein#genomics

Scientific research involves a chain of tasks — data analysis, statistical testing, figure generation, results interpretation, and manuscript writing — that are usually done sequentially by one overwhelmed researcher. A multiagent system coordinates specialized AI agents to handle each step, accelerating the entire research workflow from raw data to draft paper.

Who it's for: research scientists looking to accelerate their publication pipeline, PhD students managing complex multi-step research workflows, lab PIs supervising multiple concurrent research projects, computational researchers automating repetitive analysis-to-publication steps, interdisciplinary teams needing coordinated research workflows across domains

Example

"Automate the analysis and write-up for our gene expression dataset" → Multi-agent research workflow: automated data preprocessing and quality control, statistical analysis with appropriate tests, publication-quality figure generation, results section draft with proper statistical reporting, and a methods section documenting the entire computational workflow

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Denario

## Overview

Denario is a multiagent AI system designed to automate scientific research workflows from initial data analysis through publication-ready manuscripts. Built on AG2 and LangGraph frameworks, it orchestrates multiple specialized agents to handle hypothesis generation, methodology development, computational analysis, and paper writing.

## When to Use This Skill

Use this skill when:
- Analyzing datasets to generate novel research hypotheses
- Developing structured research methodologies
- Executing computational experiments and generating visualizations

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Denario is a multiagent AI system designed to automate scientific research workflows from initial data analysis through publication-ready manuscripts. Built on AG2 and LangGraph frameworks, it orchestrates multiple specialized agents to handle hypothesis generation, methodology development, computational analysis, and paper writing.


Quick Start

Step 1: Create a Project Folder

mkdir -p ~/Projects/denario

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Projects/denario/

Step 3: Start Claude Code

cd ~/Projects/denario
claude

Installation

Install denario using uv (recommended):

uv init
uv add "denario[app]"

Or using pip:

uv pip install "denario[app]"

For Docker deployment or building from source, see references/installation.md.

LLM API Configuration

Denario requires API keys from supported LLM providers. Supported providers include:

  • Google Vertex AI
  • OpenAI
  • Other LLM services compatible with AG2/LangGraph

Store API keys securely using environment variables or .env files. For detailed configuration instructions including Vertex AI setup, see references/llm_configuration.md.

Core Research Workflow

Denario follows a structured four-stage research pipeline:

1. Data Description

Define the research context by specifying available data and tools:

from denario import Denario

den = Denario(project_dir="./my_research")
den.set_data_description("""
Available datasets: time-series data on X and Y
Tools: pandas, sklearn, matplotlib
Research domain: [specify domain]
""")

2. Idea Generation

Generate research hypotheses from the data description:

den.get_idea()

This produces a research question or hypothesis based on the described data. Alternatively, provide a custom idea:

den.set_idea("Custom research hypothesis")

3. Methodology Development

Develop the research methodology:

den.get_method()

This creates a structured approach for investigating the hypothesis. Can also accept markdown files with custom methodologies:

den.set_method("path/to/methodology.md")

4. Results Generation

Execute computational experiments and generate analysis:

den.get_results()

This runs the methodology, performs computations, creates visualizations, and produces findings. Can also provide pre-computed results:

den.set_results("path/to/results.md")

5. Paper Generation

Create a publication-ready LaTeX paper:

from denario import Journal

den.get_paper(journal=Journal.APS)

The generated paper includes proper formatting for the specified journal, integrated figures, and complete LaTeX source.

Available Journals

Denario supports multiple journal formatting styles:

  • Journal.APS - American Physical Society format
  • Additional journals may be available; check references/research_pipeline.md for the complete list

Launching the GUI

Run the graphical user interface:

denario run

This launches a web-based interface for interactive research workflow management.

Common Workflows

End-to-End Research Pipeline

from denario import Denario, Journal

# Initialize project
den = Denario(project_dir="./research_project")

# Define research context
den.set_data_description("""
Dataset: Time-series measurements of [phenomenon]
Available tools: pandas, sklearn, scipy
Research goal: Investigate [research question]
""")

# Generate research idea
den.get_idea()

# Develop methodology
den.get_method()

# Execute analysis
den.get_results()

# Create publication
den.get_paper(journal=Journal.APS)

Hybrid Workflow (Custom + Automated)

# Provide custom research idea
den.set_idea("Investigate the correlation between X and Y using time-series analysis")

# Auto-generate methodology
den.get_method()

# Auto-generate results
den.get_results()

# Generate paper
den.get_paper(journal=Journal.APS)

Literature Search Integration

For literature search functionality and additional workflow examples, see references/examples.md.

Advanced Features

  • Multiagent orchestration: AG2 and LangGraph coordinate specialized agents for different research tasks
  • Reproducible research: All stages produce structured outputs that can be version-controlled
  • Journal integration: Automatic formatting for target publication venues
  • Flexible input: Manual or automated at each pipeline stage
  • Docker deployment: Containerized environment with LaTeX and all dependencies

Detailed References

For comprehensive documentation:

  • Installation options: references/installation.md
  • LLM configuration: references/llm_configuration.md
  • Complete API reference: references/research_pipeline.md
  • Example workflows: references/examples.md

Troubleshooting

Common issues and solutions:

  • API key errors: Ensure environment variables are set correctly (see references/llm_configuration.md)
  • LaTeX compilation: Install TeX distribution or use Docker image with pre-installed LaTeX
  • Package conflicts: Use virtual environments or Docker for isolation
  • Python version: Requires Python 3.12 or higher

Tips

  • Read the docs: Check the official denario documentation for latest API changes
  • Start simple: Begin with basic examples before tackling complex workflows
  • Save your work: Keep intermediate results in case of long-running analyses

$Related Playbooks

Finance

Scientific Edgartools

Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional...

10 minutes
Intermediate
Finance

Scientific Fred Economic Data

Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources. Access GDP, unemployment, inflation, interest rates, exchange rates, housing, and regional data. Use for macroeconomic analysis, financial research...

5 minutes
Beginner
Finance

Scientific Hedgefundmonitor

Query the OFR (Office of Financial Research) Hedge Fund Monitor API for hedge fund data including SEC Form PF aggregated statistics, CFTC Traders in Financial Futures, FICC Sponsored Repo volumes, and FRB SCOOS dealer financing terms. Access time ...

10 minutes
Intermediate
Finance

Personal Budget Analyzer

Analyze bank statements to categorize spending, identify patterns, and build a realistic budget.

5 minutes
Beginner
Finance

Contract & Invoice Cross-Reference

Verify invoices against contract terms, identify discrepancies, and find missed billing opportunities.

10 minutes
Intermediate
Finance

DCF Valuation Model Builder

Build Discounted Cash Flow (DCF) valuation models. Calculate intrinsic value with customizable assumptions. Generate professional valuation reports.

10 minutes
Advanced
Finance

Cryptocurrency Analysis Report

Analyze cryptocurrency projects with tokenomics, on-chain metrics, and market analysis. Generate comprehensive crypto research reports.

10 minutes
Intermediate
Finance

Financial Analyst Toolkit

Run DCF valuations, financial statement analysis, ratio analysis, comparable company analysis, budget variance reporting, and scenario modeling from your local data.

15 minutes
Advanced
Finance

Expense Report Auditor

Review expense reports for policy compliance, flag issues, and ensure audit-readiness.

10 minutes
Intermediate
Finance

Financial Data Collector

Collect real financial data for any US public company from free sources (yfinance) into structured JSON — market data, historical financials, WACC inputs, and estimates — ready for DCF and comps.

10 minutes
Intermediate
Finance

Financial Modeling Assistant

Build integrated financial models with 3-statement projections. Create income statement, balance sheet, and cash flow models with proper linkages.

10 minutes
Advanced
Finance

Investment Memo Writer

Write professional investment memorandums for VC, PE, or public market investments. Structure thesis, risks, and recommendations clearly.

10 minutes
Advanced

Browse all Finance playbooks →