agentleFS
eosphoros-aieosphoros-ai/DB-GPT/CLAUDE.md

DB-GPT

CLAUDE.md20k starsChanged 3 years agoMITView on GitHub

DB-GPT is an AI-native data app development framework with AWEL (Agentic Workflow Expression Language) and agents. It is organized as a Python monorepo using uv as the package manager. The monorepo is organized under packages/: Install uv (package manager): Sync all packages and install dependencies: Activate the virtual environment: Use uv run <command> to execute commands in the virtual environment without activating it. Code formatting and linting: To run a single test file: Pre-commit (runs all checks): Building and publishing:

  • Pipes a download into a shell
  • Installs packages

Trending

Less talk lately.about the whole repository

Jan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 3 mentionsJun 2026: 2 mentionsJul 2026: 1 mentionAug 2026: 6 mentionsSep 2026: 3 mentionsOct 2026: 2 mentionsNov 2026: 3 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the eosphoros-ai/DB-GPT repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about eosphoros-ai/DB-GPT

The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 63

Talked about on GitHub, YouTube, Bluesky and the web (63 times).

On GitHub · 35

30 more on GitHub

On YouTube · 25

20 more on YouTube

On the web · 1

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use uv run <command> to execute commands in the virtual environment without activating it.

    line 45
  2. Distinctive:

    Import order enforced via ruff (isort rules)

    line 107
  3. Very specific:

    Test files: test_*.py or *_test.py

    line 112
  4. Very specific:

    Run tests with pytest --pyargs dbgpt from repo root

    line 115

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

DB-GPT is an AI-native data app development framework with AWEL (Agentic Workflow Expression Language) and agents. It is organized as a Python monorepo using uv as the package manager.

Package Structure

The monorepo is organized under packages/:

  • dbgpt-core: Core framework (agent system, RAG, storage, models, datasource). Most agent-related code lives here under src/dbgpt/agent/.
  • dbgpt-app: Web server entry point (dbgpt_server.py) and HTTP API routes. Use -c <config_file> to specify configuration.
  • dbgpt-serve: Service layer implementations (agents, conversations, datasources, prompts).
  • dbgpt-client: Client SDK for interacting with the API.
  • dbgpt-ext: Extensions including additional data source connectors and RAG knowledge parsers.
  • dbgpt-sandbox: Sandbox execution environment.
  • dbgpt-accelerator: Optional accelerator packages (flash-attention).

Development Environment Setup

Install uv (package manager):

pipx install uv
# or: curl -LsSf https://astral.sh/uv/install.sh | sh

Sync all packages and install dependencies:

uv sync --all-packages \
  --extra "base" \
  --extra "proxy_openai" \
  --extra "rag" \
  --extra "storage_chromadb" \
  --extra "dbgpts"

Activate the virtual environment:

source .venv/bin/activate  # macOS/Linux
# or: .venv\Scripts\activate  # Windows

Use uv run <command> to execute commands in the virtual environment without activating it.

Build and Development Commands

Code formatting and linting:

make fmt          # Format code with ruff and fix imports
make fmt-check    # Check formatting without making changes
make mypy         # Run type checking on dbgpt-core

Testing:

make test         # Run unit tests (pytest --pyargs dbgpt)
make test-doc     # Run doctests
make coverage     # Run tests with coverage report

To run a single test file:

pytest packages/dbgpt-core/src/dbgpt/util/tests/test_json_utils.py

Pre-commit (runs all checks):

make pre-commit   # Runs fmt-check, test, test-doc, mypy
uv run pre-commit install  # Install git hooks

Building and publishing:

make build        # Build all packages for distribution
make publish      # Publish to PyPI
make clean        # Clean build artifacts

Running the Server

python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py -c configs/dbgpt-proxy-siliconflow.toml

Configuration files are in configs/. Common options include dbgpt-proxy-openai.toml, dbgpt-proxy-siliconflow.toml.

Frontend (Web UI)

The frontend is a Next.js application in the web/ directory:

cd web
npm install
npm run dev       # Development server
npm run build     # Production build
npm run lint      # ESLint check
npm run format    # Prettier format

Code Style

  • Python 3.10+ target version
  • Line length: 88 characters
  • Use double quotes
  • Import order enforced via ruff (isort rules)
  • First-party modules: dbgpt, dbgpt_client, dbgpt_ext, dbgpt_serve, dbgpt_app, dbgpt_sandbox

Testing Conventions

  • Test files: test_*.py or *_test.py
  • Located in tests/ subdirectories or inline next to source files
  • Uses pytest with asyncio support
  • Run tests with pytest --pyargs dbgpt from repo root
  • Python path includes packages/ directory

Architecture Notes

  • Component System: Uses a SystemApp with lifecycle hooks (on_init, after_init, before_start).
  • AWEL: Agentic Workflow Expression Language for orchestrating workflows as DAGs.
  • Agent Framework: Multi-agent system with ConversableAgent, UserProxyAgent, action-based execution, and memory management.
  • Model Management: SMMF (Service-oriented Multi-model Management Framework) supports multiple LLM providers via proxy or local deployment.
  • RAG: Built-in RAG framework with vector stores, embedding models, and knowledge assemblers.
  • Storage: Unified storage abstraction with support for ChromaDB, and various databases.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.