Source: https://seerepo.com/compare/HKUDS/Vibe-Trading/vs/OpenSPG/KAG
Markdown source: https://seerepo.com/compare/HKUDS/Vibe-Trading/vs/OpenSPG/KAG.md
Description: Vibe-Trading and KAG share 9 technologies: FastAPI, OpenAI, matplotlib, MCP, bs4, jinja2, pypdf, python-docx, and Pydantic. Both are written in Python.

# Vibe-Trading vs KAG

Vibe-Trading and KAG share 9 technologies: FastAPI, OpenAI, matplotlib, MCP, bs4, jinja2, pypdf, python-docx, and Pydantic. Both are written in Python.

- [HKUDS/Vibe-Trading](https://seerepo.com/r/HKUDS/Vibe-Trading): "Vibe-Trading: Your Personal Trading Agent"
- [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, MCP, bs4, jinja2, pypdf, python-docx, Pydantic
- Only in Vibe-Trading: py-key-value-aio, DuckDB, fastmcp-slim, AIOHTTP, starlette, uvicorn, fastmcp, anyio, Electron, Vite, React, React Router, cycler, fonttools, soupsieve, tinycss2, contourpy, Rich, prompt-toolkit, peewee, authlib, joserfc, pyjwt, cryptography, keyring, oauth-cli-kit, github-copilot-sdk, langchain-protocol, LangGraph, langgraph-sdk, langsmith, tiktoken, LangChain, scikit-learn, langchain-openai, beautifulsoup4, cssselect2, et-xmlfile, html5lib, lxml, markdown-it-py, markupsafe, mdurl, pydyf, rich-rst, tinyhtml5, webencodings, xlrd, xlsxwriter, defusedxml, mistune, nh3, pillow, python-pptx, qrcode, reportlab, weasyprint, openpyxl, pypdfium2, annotated-types, beartype, email-validator, jsonschema, jsonschema-path, jsonschema-specifications, openapi-pydantic, referencing, OpenTelemetry, Tailwind CSS, tailwind-merge, sonner, echarts, Lucide, react-markdown, rehype-highlight, remark-gfm, highlight.js, katex, rehype-katex, remark-math
- Only in KAG: pyodps, Neo4j, diskcache, pyvis, dashscope, nltk, Ollama, pdfminer.six, markdown, pypdf2, aliyun-log-python-sdk, psutil

## Side by side

| | Vibe-Trading | KAG |
|---|---|---|
| Size | 637,996 lines written, 1,412 code files | 100,755 lines written, 558 code files |
| Who writes it | 5.5% of its commits signed by AI. With Claude Code, Codex, GitHub Copilot, and Cursor | 0.2% of its commits signed by AI. With Jules |
| Activity | Last push November 18, 2026, 2,862 commits, 38,499 stars | Last push November 19, 2026, 1,028 commits, 9,180 stars |
| Tests | 1,255 test files. 52.3% 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, Vibe-Trading or KAG?

Vibe-Trading, with 637,996 lines written; KAG has 100,755.

The proof: [HKUDS/Vibe-Trading's code at commit ebc849b](https://github.com/HKUDS/Vibe-Trading/tree/ebc849b37597f0d944f2a268178efaf9d6109c4d)

### Which has more GitHub stars, Vibe-Trading or KAG?

Vibe-Trading, with 38,499 stars; KAG has 9,180.

The proof: [HKUDS/Vibe-Trading on GitHub](https://github.com/HKUDS/Vibe-Trading)

### Which has more tests, Vibe-Trading or KAG?

Vibe-Trading, with 1,255 test files; KAG has 35.

The proof: [HKUDS/Vibe-Trading's code at commit ebc849b](https://github.com/HKUDS/Vibe-Trading/tree/ebc849b37597f0d944f2a268178efaf9d6109c4d)

### Which was updated more recently, Vibe-Trading or KAG?

KAG: its last push was on November 19, 2026, and Vibe-Trading's on November 18, 2026.

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

### Which has more commits signed by AI, Vibe-Trading or KAG?

Vibe-Trading: an AI signed 5.5% of its commits, with Claude Code, Codex, GitHub Copilot, and Cursor; in KAG, 0.2%.

The proof: [the commits each tool signed in HKUDS/Vibe-Trading](https://seerepo.com/r/HKUDS/Vibe-Trading/ai)

## Sources

- HKUDS/Vibe-Trading: Read on November 19, 2026, at commit ebc849b (https://github.com/HKUDS/Vibe-Trading/tree/ebc849b37597f0d944f2a268178efaf9d6109c4d)
- 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.
