Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

akarlaraytu/Project-Chimera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

94 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Project Chimera: A Neuro-Symbolic-Causal AI Agent for Strategic Decision-Making

License: AGPL v3 Python Version PRs Welcome

โค๏ธ Our Contributors!

Contributors


Project Chimera is an advanced AI agent designed to overcome the critical limitations of standard Large Language Models (LLMs) in strategic environments like trading or business management. By integrating a hybrid Neuro-Symbolic-Causal architecture, this agent makes decisions that are not only intelligent but also safe, explainable, and designed for robustness.


Research Update (Nov 2025): Project Chimeraโ€™s theoretical foundations are now live on arXiv โ€” arXiv:2510.23682


๐Ÿš€ Live Demo & Usage

Try the Interactive Lab (Business Context)

Live Demo


โ— The Problem: Why Raw LLMs Can Be Risky

Modern LLMs are powerful, but when entrusted with critical decisions, they can be dangerously naive and unpredictable. Without proper guardrails, they can make catastrophic mistakes. Our benchmark experiment proved this: a pure LLM-Only agent, lacking rules or causal understanding, drove a simulated company into a multi-billion dollar loss.


๐Ÿ’ก The Solution: The Chimera Agent in Action

Project Chimera solves this by providing the LLM with a Symbolic safety net and a Causal oracle. It doesn't just guess; it brainstorms multiple strategies, checks them against rules, and predicts their likely outcomes to find the optimal path.

You can try a live demo of the Strategy Lab here (Note: Demo might reflect business simulation context):

Live Demo

See Chimera in Action (Business Simulation Demo)

Chimera Demo


๐Ÿงฉ The Chimera Architecture

The Chimera Architecture

  • ๐Ÿง  Neuro (The Brain): The creative core (e.g., GPT-4o) that understands goals and brainstorms diverse strategies.
  • ๐Ÿ›ก๏ธ Symbolic (The Guardian): A rule engine that acts as a safety net, preventing catastrophic, rule-breaking decisions.
  • ๐Ÿ”ฎ Causal (The Oracle): A data-driven causal inference engine (e.g., EconML, custom models) that predicts the real-world impact (like profit) of potential decisions.

โœจ Key Features

  • Live 24/7 Trading Stream: Real-time dashboard showcasing agent performance and decisions.
  • Multi-Hypothesis Reasoning: Actively brainstorms and evaluates multiple strategies before making a data-driven recommendation.
  • Dynamic Learning (Optional): Causal Engine can be retrained periodically on performance data for adaptation.
  • Advanced XAI Suite: Includes per-decision explainability and an interactive 'What-If' simulator.
  • Sophisticated Simulation Environment: Used for backtesting and benchmarking.
  • Interactive Strategy Lab: A Streamlit application (app.py) for real-time interaction and analysis.
  • Automated Benchmarking Suite: Rigorous comparison scripts (benchmark.py).

๐Ÿ”ด LIVE 24/7 Trading Stream Now Active!

Watch the Chimera agent trade Bitcoin (Paper Trading) live on YouTube! See its decisions, performance, and analysis updated in real-time on the dashboard.

Chimera Live Trading Stream

(Click the image above to watch the live stream)


๐Ÿ“Š Latest Performance Results

Here's a look at the agent's performance in recent backtests:

1. Long-Term Quant Agent Performance (200 Trading Days)

This report highlights the agent's ability to significantly outperform a Buy & Hold strategy over an extended period, demonstrating robust cumulative returns while managing drawdowns.

Project Chimera: Final Quant Agent Performance

2. Recent Performance Detail (30 Trading Days)

This detailed analysis showcases the agent's decision-making on a shorter timeframe, including key performance indicators like Sharpe Ratio and a map of individual trade decisions on the price chart.

Chimera-Quant: Recent Backtest Performance Analysis


๐Ÿ”ฌ Advanced XAI: From Glass Box to Interactive Simulator

Version 1.2.1 introduced a full suite of XAI tools. The "What-If Analysis" tab allows you to explore the agent's reasoning by testing counterfactual scenarios live.

See the Interactive 'What-If' Simulator in Action (Business Simulation Demo):

Chimera What-If Demo


โœ… Formal Verification (TLA+)

SymbolicGuardianV4 introduced configurable safety buffers analyzed using TLA+ formal verification. This provides mathematical confidence that the safety logic consistently enforces defined constraints like minimum margins or maximum limits, even under complex scenarios.

TLA+ Run Result

  • Result: Exhaustive exploration found 0 invariant violations.
  • Interpretation: High confidence in the safety guarantees provided by the Symbolic Guardian component. (See V1.2.3 Release for details)

๐Ÿš€ v1.4.0: The Colosseum

The Chimera Colosseum

The arena is open! This update transforms Project Chimera into a dynamic, multi-agent competitive ecosystem. Assemble AI gladiators and watch them battle in a live simulation.

This is currently an exclusive Closed Beta. Access details below. Learn more in the v1.4.0 release notes.


๐Ÿ“š Documentation & Glossary

For a quick reference of key concepts, see our Glossary. Check the latest release notes for detailed updates.


๐Ÿ—บ๏ธ Future Roadmap

Project Chimera is a living project. The roadmap outlines our vision for evolving this agent into a truly general-purpose decision-making engine and, ultimately, an open-source ecosystem.


High-Level Phases

  • โœ… Phase 1 โ€” Strategic Depth & Provable Safety โ€” COMPLETE
    • Theme: Transform the agent from a simple optimizer into a strategist that is explainable, competitive, and mathematically verifiable.
  • โœ… Phase 2 โ€” Architectural Abstraction & Cross-Domain Mastery โ€” COMPLETE
    • Theme: Decouple the agent's brain from any single environment, proving its universal capabilities in the high-stakes world of quantitative finance.
  • โ–ถ๏ธ Phase 3 โ€” Ultimate Generalization & Autonomous Discovery โ€” IN PROGRESS
    • Theme: Test the limits of the architecture's flexibility (e.g., in Supply Chain simulations) and unlock the agent's ultimate intelligence layer: the ability to learn how the world works on its own.
  • Phase 4 โ€” Ecosystem Leadership: The "Chimera Dev Kit"
    • Theme: Package our proven technology into an open-source development kit for the world to build the next generation of trustworthy AI.

Current Milestone: Phase 3 โ€” Ultimate Generalization & Autonomous Discovery

Having proven the architecture's core abstraction (Phase 1) and its effectiveness in quantitative finance (Phase 2), we now focus on pushing the boundaries of generalization and intelligence.

Phase 3 Tasks:

  1. Final Flexibility Test (Supply Chain Simulation):
    • What: Prove the architecture's universality by implementing a SupplyChainSimulator for a completely different complex domain.
    • Status: Upcoming.
  2. The Revolutionary Leap: "Autonomous Causal Discovery"
    • What: Evolve the Causal Engine from a system that learns from given data to one that autonomously discovers new causal relationships by designing and running its own experiments within an environment.
    • Impact: This fundamentally changes how AI understands the world. We no longer just tell it the rules; it learns the changing rules of the game on its own.
    • Status: Research & Development in progress.

Future Phases

  • Phase 4: Ecosystem Leadership: The "Chimera Dev Kit"
    • Goal: Package the entire project into a clean, well-documented, pip install chimera-agent library.
    • Includes: Comprehensive documentation, tutorials for E-commerce, Quant Finance, and Supply Chain domains.
    • Vision: Transform the project into a living open-source ecosystem adopted by a global community.

๐Ÿค How to Help

  • โญ Star the repo to follow development.
  • Check Discussions โ†’ Roadmap for areas needing feedback.
  • See CONTRIBUTING.md for setup and PR guidelines.
  • Look for good first issue tasks if you want to contribute code.

Getting Started (Local Setup)

  1. Clone the repository:
    git clone [https://github.com/akarlaraytu/Project-Chimera.git](https://github.com/akarlaraytu/Project-Chimera.git)
    cd Project-Chimera
  2. Create environment & install dependencies:
    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
  3. Set API Keys (e.g., OpenAI, Alpaca):
    # Create a .env file in the root directory
    # Add your keys like this:
    # OPENAI_API_KEY='sk-...'
    # ALPACA_API_KEY='...'
    # ALPACA_SECRET_KEY='...'
    # YOUTUBE_STREAM_KEY='...'
  4. Run Applications:
    # Run the Interactive Demo (Streamlit App for E-commerce Simulation)
    streamlit run app.py
    
    # Run Automated Benchmarks (E-commerce Simulation)
    python3 benchmark.py
    python3 benchmark_learning.py
    
    # Run Quant Trading Backtest
    python3 quant_run_backtest.py
    
    # Run the Live Quant Trading Agent (Requires .env setup)
    # python3 live_paper_trader.py
    
    # Run the Live Quant Trading Dashboard Stream (Requires .env setup)
    # python3 chimera_live.py --stream

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Check the issues page.

๐Ÿ“„ License

This project is licensed under the GNU AGPLv3 License - see the LICENSE file.


*Developed with passion by Aytug Akarlar *