Source: https://seerepo.com/compare/hsliuping/TradingAgents-CN/vs/OpenSPG/KAG
Markdown source: https://seerepo.com/compare/hsliuping/TradingAgents-CN/vs/OpenSPG/KAG.md
Description: TradingAgents-CN and KAG share 10 technologies: FastAPI, OpenAI, matplotlib, dashscope, MCP, jinja2, markdown, python-docx, Pydantic, and psutil. Both are written in Python.

# TradingAgents-CN vs KAG

TradingAgents-CN and KAG share 10 technologies: FastAPI, OpenAI, matplotlib, dashscope, MCP, jinja2, markdown, python-docx, Pydantic, and psutil. Both are written in Python.

- [hsliuping/TradingAgents-CN](https://seerepo.com/r/hsliuping/TradingAgents-CN): 基于多智能体LLM的中文金融交易框架 - TradingAgents中文增强版
- [OpenSPG/KAG](https://seerepo.com/r/OpenSPG/KAG): KAG is a logical form-guided reasoning and retrieval framework based on OpenSPG engine and LLMs.  It is used to build logical reasoning and factual Q&A solutions for professional domain knowledge bases. It can effectively overcome the shortcomings of the traditional RAG vector similarity calculation model.

## What they share and what sets them apart

- In common: FastAPI, OpenAI, matplotlib, dashscope, MCP, jinja2, markdown, python-docx, Pydantic, psutil
- Only in TradingAgents-CN: motor, pymongo, MongoDB, Redis, chromadb, Qdrant, uvicorn, Vite, Vue, vue-router, pystray, Rich, questionary, itsdangerous, bcrypt, pyjwt, LangChain, mem0ai, langchain-openai, LangGraph, langchain-google-genai, langchain-anthropic, parsel, pillow, xlrd, openpyxl, feedparser, pdfkit, pypandoc, weasyprint, concurrent-log-handler, Element, echarts, nprogress, sortablejs, vue-echarts, @element-plus/icons-vue, marked, dompurify
- Only in KAG: pyodps, Neo4j, diskcache, pyvis, nltk, Ollama, pdfminer.six, pypdf, bs4, pypdf2, aliyun-log-python-sdk

## Side by side

| | TradingAgents-CN | KAG |
|---|---|---|
| Size | 518,993 lines written, 951 code files | 100,755 lines written, 558 code files |
| Who writes it | 0% of its commits signed by AI | 0.2% of its commits signed by AI. With Jules |
| Activity | Last push November 14, 2026, 1 commits, 33,017 stars | Last push November 19, 2026, 1,028 commits, 9,180 stars |
| Tests | 487 test files. 23.2% of its code files have a test that imports them | 35 test files. 4.1% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, TradingAgents-CN or KAG?

TradingAgents-CN, with 518,993 lines written; KAG has 100,755.

The proof: [hsliuping/TradingAgents-CN's code at commit 51060a7](https://github.com/hsliuping/TradingAgents-CN/tree/51060a7682cf51810b4bc3a704829438d18cd8dc)

### Which has more GitHub stars, TradingAgents-CN or KAG?

TradingAgents-CN, with 33,017 stars; KAG has 9,180.

The proof: [hsliuping/TradingAgents-CN on GitHub](https://github.com/hsliuping/TradingAgents-CN)

### Which has more tests, TradingAgents-CN or KAG?

TradingAgents-CN, with 487 test files; KAG has 35.

The proof: [hsliuping/TradingAgents-CN's code at commit 51060a7](https://github.com/hsliuping/TradingAgents-CN/tree/51060a7682cf51810b4bc3a704829438d18cd8dc)

### Which was updated more recently, TradingAgents-CN or KAG?

KAG: its last push was on November 19, 2026, and TradingAgents-CN's on November 14, 2026.

The proof: [OpenSPG/KAG's commits on GitHub](https://github.com/OpenSPG/KAG/commits)

### Which has more commits signed by AI, TradingAgents-CN or KAG?

KAG: an AI signed 0.2% of its commits, with Jules.

## Sources

- hsliuping/TradingAgents-CN: Read on November 19, 2026, at commit 51060a7 (https://github.com/hsliuping/TradingAgents-CN/tree/51060a7682cf51810b4bc3a704829438d18cd8dc)
- OpenSPG/KAG: Read on November 19, 2026, at commit e162ce1 (https://github.com/OpenSPG/KAG/tree/e162ce1884ae9f5d7357091f18be9d2d722c5834)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
