SkillAgentSearch skills...

ragentic-core

Core multi-agent orchestration service powered by LangGraph, FastAPI, and MCP for enterprise RAG and custom tool routing

Install / Use

claude mcp add hoanganhxtah -- npx -y github:hoanganhxtah/ragentic-core

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

83/100

Supported Platforms

Claude Code
Claude Desktop

Our assessment of ragentic-core

ragentic-core scores 83/100 on our quality scale, 3019th of 4,650 Development & Engineering skills we index.

Its MCP Server is 14 KB long, well organised into 39 sections with 14 code examples: a thorough specification that gives an agent plenty to work with.

It has 3 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
3/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 2 days ago, so ragentic-core is actively maintained.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

ragentic-core compared with similar skills

All 4 of these similar skills score higher than ragentic-core; compare them before choosing.

SkillScoreStarsUpdatedFormat
ragentic-core (this skill)by hoanganhxtah8332d agoMCP Server
Agent-Reachby Panniantong100106.0k4d agoCLAUDE.md
taste-skillby Leonxlnx100105.1ktodayCLAUDE.md
headroomby headroomlabs-ai10078.2ktodayCLAUDE.md
ai-job-searchby ai-job-search-dev10067.4k2d agoCLAUDE.md

Frequently asked questions

How do I install ragentic-core?
Run claude mcp add hoanganhxtah -- npx -y github:hoanganhxtah/ragentic-core. The install tabs above show the steps for each supported agent.
Which AI agents does ragentic-core work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is ragentic-core safe to use?
It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is ragentic-core still maintained?
The repository was last updated 2 days ago, so ragentic-core is actively maintained.

🤖 Agent Service — Super-RAGentic Bot

Multi-Agent AI Assistant API — FastAPI microservice powering the orchestration layer of the Super-RAGentic system.

M8ven Score M8ven Score Python 3.12 FastAPI LangGraph License


📋 Mục lục


🔍 Tổng quan

agent_service là microservice trung tâm của hệ thống Super-RAGentic Bot, chịu trách nhiệm:

  • Điều phối multi-agent qua mô hình Supervisor sử dụng LangGraph
  • Kết nối nhiều LLM providers (Gemini, OpenAI, Anthropic, Groq, AWS Bedrock)
  • Streaming real-time qua SSE (Server-Sent Events)
  • Lưu trữ lịch sử hội thoại vào PostgreSQL
  • Tích hợp RAG (Retrieval-Augmented Generation) qua HTTP client tới rag_service
  • Tích hợp MCP Server cho banking tools
  • Tìm kiếm web qua Tavily API

Lưu ý: agent_service không trực tiếp mở vector store hay load embedding model. Toàn bộ retrieval và ingestion được ủy quyền cho rag_service (microservice riêng).


🏗 Kiến trúc Multi-Agent

Hệ thống sử dụng mô hình Supervisor pattern với LangGraph:

                        ┌─────────────┐
                        │    START    │
                        └──────┬──────┘
                               │
                        ┌──────▼──────┐
                   ┌────┤  Supervisor  ├────┐
                   │    └──────┬──────┘    │
                   │           │           │
          handoff_to_     no tool call   handoff_to_
          rag_agent      (final answer)  web_agent
                   │           │           │
            ┌──────▼──────┐    │    ┌──────▼──────┐
            │  RAG Agent  │    │    │  Web Agent  │
            └──────┬──────┘    │    └──────┬──────┘
                   │           │           │
                   └───────────┤───────────┘
                               │
                        ┌──────▼──────┐
                        │  Validator  │
                        └──────┬──────┘
                               │
                        ┌──────▼──────┐
                        │     END     │
                        └─────────────┘

Agents

| Agent | Vai trò | Tools | |-------|---------|-------| | Supervisor | Điều phối, quyết định route, tổng hợp câu trả lời cuối | handoff_to_rag_agent, handoff_to_web_agent | | RAG Agent | Tra cứu knowledge base nội bộ (qua rag_service) | search_vectordb, MCP banking tools | | Web Agent | Tìm kiếm thông tin trên web | web_search (Tavily) | | Validator | Đánh giá chất lượng câu trả lời (PASS / FAIL / AMBIGUOUS) | — |

Routing Logic

  • PASS → Trả kết quả cho người dùng
  • FAIL / AMBIGUOUS + còn retry budget → Retry (gọi lại sub-agent)
  • FAIL / AMBIGUOUS + hết retry budget → Tổng hợp best-effort answer
  • Max hops = 6 lần bàn giao trước khi buộc kết thúc

📁 Cấu trúc thư mục

agent_service/
├── app/
│   ├── main.py                         # FastAPI application + lifespan
│   ├── requirements.txt                # Dependencies (production)
│   │
│   ├── agent/                          # 🤖 Multi-agent orchestration
│   │   ├── engine.py                   # ReActAgentEngine — run() & stream()
│   │   ├── graph.py                    # LangGraph supervisor graph
│   │   ├── state.py                    # AgentState definition
│   │   │
│   │   ├── agents/                     # Agent factories
│   │   │   ├── supervisor.py           # Supervisor agent
│   │   │   ├── rag_agent.py            # RAG agent (knowledge base)
│   │   │   ├── web_agent.py            # Web search agent
│   │   │   └── validator.py            # Answer quality validator
│   │   │
│   │   ├── tools/                      # Agent tools
│   │   │   ├── registry.py             # Tool registry & builder
│   │   │   ├── vectordb_tool.py        # Vector DB search tool
│   │   │   ├── web_search_tool.py      # Tavily web search tool
│   │   │   ├── banking_mcp_client.py   # MCP client for banking tools
│   │   │   └── handoff.py              # Agent handoff tools
│   │   │
│   │   └── prompts/                    # System prompts
│   │       ├── __init__.py             # Prompt exports
│   │       ├── chat.py                 # Chat prompt
│   │       ├── supervisor.py           # Supervisor prompt
│   │       ├── rag_agent.py            # RAG agent prompt
│   │       ├── web_agent.py            # Web agent prompt
│   │       └── validator.py            # Validator prompt
│   │
│   ├── api/                            # 🌐 REST API layer
│   │   ├── agent_api.py                # /agent & /agent-stream endpoints
│   │   └── search_api.py               # /search/vector & /search/web
│   │
│   ├── config/                         # ⚙️ Configuration
│   │   ├── app_settings.py             # Singleton settings instances
│   │   └── env/                        # Pydantic settings classes
│   │       ├── server_config.py        # Server host/port/context path
│   │       ├── llm_config.py           # LLM provider & model settings
│   │       ├── agent_config.py         # Agent behavior settings
│   │       ├── web_search_config.py    # Tavily & proxy settings
│   │       ├── postgres_config.py      # PostgreSQL connection pool
│   │       └── rag_client_config.py    # RAG service HTTP client config
│   │
│   ├── llm/                            # 🧠 LLM abstraction
│   │   └── llm_factory.py              # Multi-provider chat model factory
│   │
│   ├── entity/                         # 📦 ORM models
│   │   └── postgres_models.py          # SQLAlchemy: chat_messages table
│   │
│   ├── repository/                     # 💾 Data access layer
│   │   └── chat_history_repository.py  # Chat history CRUD
│   │
│   ├── retrieval/                      # 🔎 Retrieval abstraction
│   │   ├── __init__.py                 # build_retriever() factory
│   │   ├── base.py                     # Retriever interface
│   │   ├── factory.py                  # Retriever factory
│   │   └── remote.py                   # RemoteRetriever (HTTP → rag_service)
│   │
│   └── schemas/                        # 📐 Pydantic request/response models
│       ├── agent.py                    # AgentRequest, AgentResponse, AgentStep
│       └── chat.py                     # SearchRequest, SearchResponse
│
├── main_dev.py                         # Dev entrypoint (uvicorn + hot reload)
├── Dockerfile                          # Production Docker image
├── docker-compose.yml                  # Docker Compose config
├── requirements.txt                    # Meta requirements (all sub-services)
├── .env.example                        # Environment variables template
├── .gitignore                          # Git ignore rules
└── .dockerignore                       # Docker ignore rules

💻 Yêu cầu hệ thống

  • Python ≥ 3.12
  • PostgreSQL (tùy chọn — cho lưu trữ lịch sử hội thoại)
  • rag_service đang chạy (tùy chọn — agent sẽ fallback nếu không có)
  • MCP Server (tùy chọn — cho banking tools)

🚀 Cài đặt & Chạy

1. Clone repository

git clone https://github.com/hoanganhxtah/ragentic-core.git
cd ragentic-core

2. Tạo virtual environment

python -m venv .venv

# Windows
.venv\Scripts\activate

# Linux / macOS
source .venv/bin/activate

3. Cài đặt dependencies

pip install -r app/requirements.txt

4. Cấu hình biến môi trường

cp .env.example .env
# Chỉnh sửa .env với API keys và cấu hình phù hợp

5. Chạy development server

python main_dev.py

Server sẽ khởi động tại http://localhost:8001 với hot reload enabled.

6. Truy cập API docs

  • Swagger UI: http://localhost:8001/api/docs
  • ReDoc: http://localhost:8001/api/redoc
  • Health Check: http://localhost:8001/health

⚙️ Cấu hình biến môi trường

Tham khảo file .env.example để biết đầy đủ các biến. Dưới đây là các nhóm chính:

LLM Provider

| Biến | Mô tả | Mặc định | |------|--------|----------| | LLM_PROVIDER | Provider: gemini | openai | anthropic | openai-compatible | bedrock | groq | gemini | | LLM_MODEL | Tên model | gemini-3.1-flash-lite-preview | | LLM_TEMPERATURE | Nhiệt độ sampling | 0.2 | | LLM_MAX_TOKENS | Số token tối đa | 1024 | | LLM_API_KEY | API key chung (hoặc dùng key riêng theo provider) | — |

Server

| Biến | Mô tả | Mặc định | |------|--------|----------| | SERVER_HOST | Bind host | 0.0.0.0 | | SERVER_PORT | Bind port | 8001 | | SERVER_CONTEXT_PATH | API prefix | /api |

PostgreSQL (Conversation Memory)

| Biến | Mô tả | Mặc định | |------|--------|----------| | DB_POSTGRES_URL | Connection URL (nếu set thì ưu tiên dùng) | — | | DB_POSTGRES_HOST | Hostname | localhost | | DB_POSTGRES_PORT | Port | 5432 | | DB_POSTGRES_DATABASE | Database name | postgres |

RAG Service Client

| Biến | Mô tả | Mặc định | |------|--------|----------| | RAG_CLIENT_SERVICE_URL | URL tới rag_service | http://host.docker.internal:8002 | | RAG_CLIENT_CONTEXT_PATH | API prefix | /api/v1 | | RAG_CLIENT_TIMEOUT | Request timeout (seconds) | 10.0 |

Web Search

| Biến | Mô tả | Mặc định | |------|--------|----------| | WEB_SEARCH_PROVIDER | Search provider | tavily | | TAVILY_API_KEY | Tavily API key | — | | WEB_SEARCH_MAX_RESULTS | Số kết quả tối đa | 5 |

MCP Server

| Biến | Mô tả | Mặc định | |------|--------|----------| | MCP_SERVER_URL | URL tới Banking MCP Server | http://host.docker.internal:8003/mcp |


🌐 API Endpoints

GET /health

Health check endpoint.

{ "status": "UP" }

POST /agent

Multi-agent endpoint — gửi câu hỏi và nhận phản hồi đầy đủ (JSON).

Request:

{
  "question": "Lãi suất tiết kiệm 12 tháng là bao nhiêu?",
  "thread_id": "conv-001",
  "user_id": "user-123",
  "channel": "web",
  "channel_id": "ch-001",
  "session_id": "sess-abc",
  "include_steps": true
}

Response:

{
  "user_id": "user-123",
  "channel": "web",
  "channel_id": "ch-001",
  "thread_id": "conv-001",
  "session_id": "sess-abc",
  "answer": "Lãi suất tiết kiệm 12 tháng hiện tại là ...",
  "steps": [
    {
      "agent": "rag_agent",
      "tool": "search_vectordb",
      "status": "tool_end",
      "content": "..."
    }
  ]
}

POST /agent-stream

Multi-agent endpoint với SSE streaming — token được trả về ngay khi LLM sinh ra.

SSE Events:

data: {"type": "token", "content": "Lãi suất", "agent": "supervisor"}
data: {"type": "step", "status": "tool_start", "agent": "rag_agent", "tool": "search_vectordb", "content": "..."}
data: {"type": "step", "status": "tool_end", "agent": "rag_agent", "tool": "search_vectordb", "content": "..."}
data: {"type": "token", "content": " tiết kiệm", "agent": "supervisor"}
data: {

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars3
CategoryDevelopment
Updated2d ago
Forks0

Languages

Python

Trust signals

80/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium1 low
ragentic-core — MCP Server: Install & Safety Check | SkillAgent