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

DB-GPT

AGENTS.md20k starsChanged 3 years agoMITView on GitHub

This file guides agentic coding assistants working in this repository. Keep changes scoped, follow repo conventions, and prefer existing patterns. Sync packages and extras: Run commands without activating venv: Activate the venv if needed: Single test file: Build and publish: Config files live in configs/ (e.g. dbgpt-proxy-openai.toml).

  • 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

Show its rules and text

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

20 rules. About 0 are common, 15 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep changes scoped, follow repo conventions, and prefer existing patterns.

    line 4
  2. Distinctive:

    Run commands without activating venv:

    line 28
  3. Distinctive:

    Use double quotes for strings.

    line 92
  4. Distinctive:

    Keep imports sorted by Ruff/isort.

    line 98
  5. Distinctive:

    Prefer explicit imports over wildcard.

    line 99
  6. Distinctive:

    Use type hints for public APIs and non-trivial functions.

    line 103
  7. Very specific:

    Prefer Optional[T] or T | None consistently with existing file style.

    line 104
  8. Very specific:

    Follow existing module structure under packages/.

    line 108
  9. Distinctive:

    Keep public APIs stable unless change is required.

    line 109
  10. Distinctive:

    Use descriptive names; avoid abbreviations without context.

    line 110
  11. Distinctive:

    Avoid swallowing exceptions unless there is a fallback path.

    line 115
  12. Distinctive:

    Prefer pytest fixtures and parametrize for coverage.

    line 120
  13. Very specific:

    Use existing components in web/components and web/new-components.

    line 123
  14. Distinctive:

    Keep UI styles consistent with current design tokens.

    line 124
  15. Distinctive:

    Prefer inline Tailwind utility classes used in this repo.

    line 125
  16. Very specific:

    No Cursor rules found in .cursor/rules/ or .cursorrules.

    line 134
  17. Very specific:

    No Copilot rules found in .github/copilot-instructions.md.

    line 135
  18. Distinctive:

    Keep changes minimal and scoped.

    line 138
  19. Distinctive:

    Update docs or tests when behavior changes.

    line 140
  20. Distinctive:

    Avoid reformatting unrelated code.

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
AGENTS.md

AGENTS.md

This file guides agentic coding assistants working in this repository. Keep changes scoped, follow repo conventions, and prefer existing patterns.

Repository Overview

  • DB-GPT is a Python monorepo with multiple packages under packages/.
  • Core modules live in packages/dbgpt-core/src/dbgpt/.
  • Web UI is a Next.js app under web/.

Setup

Install uv:

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

Sync packages and extras:

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

Run commands without activating venv:

uv run <command>

Activate the venv if needed:

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

Build / Lint / Test

Format and lint:

make fmt          # ruff + import fixes
make fmt-check    # formatting check only
make mypy         # type checking (dbgpt-core)

Tests:

make test         # pytest --pyargs dbgpt
make test-doc     # doctests
make coverage     # tests + coverage

Single test file:

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

Pre-commit:

make pre-commit   # fmt-check + test + test-doc + mypy
uv run pre-commit install

Build and publish:

make build
make publish
make clean

Running the Server

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

Config files live in configs/ (e.g. dbgpt-proxy-openai.toml).

Frontend (web/)

cd web
npm install
npm run dev
npm run build
npm run lint
npm run format

Code Style (Python)

  • Target: Python 3.10+.
  • Line length: 88.
  • Use double quotes for strings.
  • Ruff enforces formatting and import order (isort rules).
  • First-party modules: dbgpt, dbgpt_client, dbgpt_ext, dbgpt_serve, dbgpt_app, dbgpt_sandbox.

Imports

  • Keep imports sorted by Ruff/isort.
  • Prefer explicit imports over wildcard.
  • Group stdlib, third-party, first-party.

Types and Interfaces

  • Use type hints for public APIs and non-trivial functions.
  • Prefer Optional[T] or T | None consistently with existing file style.
  • Reuse existing dataclasses and pydantic models where available.

Naming and Structure

  • Follow existing module structure under packages/.
  • Keep public APIs stable unless change is required.
  • Use descriptive names; avoid abbreviations without context.

Error Handling

  • Raise meaningful exceptions with context.
  • Log errors at the appropriate level (error/warn/info).
  • Avoid swallowing exceptions unless there is a fallback path.

Tests

  • Tests live next to modules or in tests/ subdirectories.
  • Naming: test_*.py or *_test.py.
  • Prefer pytest fixtures and parametrize for coverage.

Web UI Conventions

  • Use existing components in web/components and web/new-components.
  • Keep UI styles consistent with current design tokens.
  • Prefer inline Tailwind utility classes used in this repo.

Architecture Notes

  • Component system uses SystemApp lifecycle hooks.
  • AWEL orchestrates workflows as DAGs.
  • Agent framework uses ConversableAgent, actions, and memory.
  • Model management via SMMF supports multiple providers.

Repository Rules

  • No Cursor rules found in .cursor/rules/ or .cursorrules.
  • No Copilot rules found in .github/copilot-instructions.md.

Practical Guidance for Agents

  • Keep changes minimal and scoped.
  • Align with existing patterns and utilities.
  • Update docs or tests when behavior changes.
  • Avoid reformatting unrelated code.

Quick Reference

  • Core agent code: packages/dbgpt-core/src/dbgpt/agent/.
  • Server entry: packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py.
  • Frontend: web/.

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.