agentleFS
ruanrongmanruanrongman/IntelliConnect/CLAUDE.md

IntelliConnect

CLAUDE.md147 starsChanged 3 years agoApache-2.0View on GitHub

IntelliConnect - The first Agent-based AI IoT platform. An AI-powered Internet of Things platform built with Spring Boot 3.5.7 and Java 21, featuring multi-agent architecture, voice capabilities (ASR/TTS/VAD), RAG knowledge bases, native knowledge graphs, MCP (Model Context Protocol) support, and complete IoT infrastructure with Thing Model abstraction. Starts MySQL 8.0, Redis, InfluxDB, EMQX 5.8.4, ChromaDB, and optional Funasr service. The application starts on port 8080 by default. gRPC server for EMQX ExHook listens on port 9090.

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    RAG Knowledge Bases: - Document processing and vector search with ChromaDB

    line 124
  2. Very specific:

    Run ./mvnw spotless:apply before committing changes

    line 159
  3. Distinctive:

    Only 2 existing test files - write tests for new features when appropriate

    line 165

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

IntelliConnect - The first Agent-based AI IoT platform. An AI-powered Internet of Things platform built with Spring Boot 3.5.7 and Java 21, featuring multi-agent architecture, voice capabilities (ASR/TTS/VAD), RAG knowledge bases, native knowledge graphs, MCP (Model Context Protocol) support, and complete IoT infrastructure with Thing Model abstraction.

Technology Stack

  • Backend: Java 21, Spring Boot 3.5.7, Spring Security, JWT, Maven
  • Frontend: Vue 3 (in /web directory)
  • AI/LLM: LangChain4j, Dashscope/Qwen3, GLM/Zhipu, DeepSeek v4, SiliconFlow, UniApi
  • Voice: ASR (Dashscope/Funasr), TTS (MiniMax, Edge TTS, Xunfei), VAD (ONNX Runtime), Opus codec
  • Databases: MySQL 8.0 (JPA/Hibernate), Redis, InfluxDB (time-series), ChromaDB (vector)
  • IoT: EMQX 5.8.4 MQTT broker with gRPC ExHook integration
  • Other: gRPC, WebSocket, Quartz scheduling, Thymeleaf, Jasypt encryption

Build Commands

Backend (Maven)

# Windows local JDK 21 is at:
# C:\Users\Lenovo\.jdks\ms-21.0.9
# If java -version shows Java 17, set JAVA_HOME before using Maven Wrapper:
# $env:JAVA_HOME='C:\Users\Lenovo\.jdks\ms-21.0.9'; $env:Path="$env:JAVA_HOME\bin;$env:Path"

# Clean and compile
./mvnw clean compile

# Build executable JAR (runs tests by default)
./mvnw clean package

# Build executable JAR, skip tests
./mvnw clean package -DskipTests

# Run code formatting with Spotless
./mvnw spotless:apply

# Run tests
./mvnw test

# Encrypt configuration values with Jasypt
./mvnw jasypt:encrypt -Djasypt.encryptor.password=your-password

# On Windows use
mvnw.cmd clean package -DskipTests

Frontend (Vue 3)

cd web

# Install dependencies
npm install

# Start development server
npm run dev

# Production build
npm run build

Infrastructure (Docker)

cd docker
docker-compose up -d

Starts MySQL 8.0, Redis, InfluxDB, EMQX 5.8.4, ChromaDB, and optional Funasr service.

Run the Application

# After building
java -jar target/IntelliConnect-1.8-SNAPSHOT.jar

The application starts on port 8080 by default. gRPC server for EMQX ExHook listens on port 9090.

Project Architecture

Backend Layered Structure (src/main/java/top/rslly/iot/)

  • config/ - Spring configuration classes (CORS, Redis, security, etc.)
  • controllers/ - REST API controllers
    • Auth.java - Authentication endpoints
    • Tool.java - AI/Tool endpoints (main functionality)
    • Wx.java - WeChat integration
    • XiaoZhi.java - XiaoZhi ESP32 hardware support
  • dao/ - Data access repositories
  • error/ - Global error handling
  • models/ - JPA entity models
    • models/influxdb/ - InfluxDB data point models
  • param/ - Request/response DTOs
  • services/ - Business logic layer
    • services/agent/ - AI Agent services
    • services/iot/ - IoT core services (OTA, MQTT, Alarm, Hardware management)
    • services/thingsModel/ - Thing Model implementation (Product, Device, Event, Function)
    • services/knowledgeGraphic/ - Knowledge graph services
    • services/storage/ - Storage services
    • services/wechat/ - WeChat integration services
  • transfer/mqtt/ - MQTT message handling
  • utility/ - Utilities and helpers
    • utility/ai/ - AI utilities
      • utility/ai/llm/ - LLM provider integrations
      • utility/ai/mcp/ - Model Context Protocol implementation
      • utility/ai/rag/ - RAG implementation
      • utility/ai/toolAgent/ - Tool Agent implementation
      • utility/ai/tools/ - AI tool definitions
      • utility/ai/voice/ - ASR, TTS, audio processing
    • utility/exhook/ - EMQX ExHook gRPC generated code
    • utility/properties/ - Configuration property bindings
    • utility/result/ - Result wrapper classes

Key Architectural Patterns

  • MVC Layered Architecture - Clear separation between controller, service, and data access layers
  • Thing Model Abstraction - Standard abstraction for IoT devices with properties, functions, and events
  • Multi-Agent Architecture - Different AI agents for different capabilities with role-based configuration; supports both ReAct prompt mode and native function calling mode
  • MCP Integration - Extensible tool calling via Model Context Protocol; supports multi-endpoint WebSocket connections with configurable endpoint count and tools limit
  • RAG Knowledge Bases - Document processing and vector search with ChromaDB

Configuration

Main configuration file: src/main/resources/application.yaml

Key configuration sections:

  • server - HTTP server settings (virtual threads enabled)
  • spring.datasource - MySQL connection with Druid connection pool
  • spring.jpa - Hibernate configuration (ddl-auto: update recommended for development)
  • spring.data.redis - Redis connection settings
  • influxdb - InfluxDB connection for time-series data
  • mqtt - EMQX MQTT broker configuration
  • grpc - gRPC server settings for EMQX ExHook
  • wx - WeChat AppID/AppSecret configuration
  • ota - OTA firmware storage paths
  • rag - Embedding model and ChromaDB settings
  • ai - LLM API keys, ASR/TTS provider selection, voice settings, agent mode configuration
    • ai.agent.mode - Agent mode: react (default) or function (native function calling)
    • ai.agent.include-thought - Whether to include AI reasoning/thinking in output
    • ai.mcp.agent-mode - MCP Agent mode: react or function
    • ai.mcp.agent-include-thought - Whether to include MCP Agent reasoning in output
    • ai.mcp.endpoint-count - Number of MCP WebSocket endpoints (1-20)
    • ai.mcp.tools-limit - Maximum tools per MCP endpoint
    • ai.temperature / ai.top-p - LLM generation parameters
    • ai.asr.dashscope-max-concurrent - ASR concurrent request limit
    • ai.tts.* - TTS pool configuration (concurrency, timeouts, cache)
  • jwt - JWT secret key for authentication
  • jasypt - Encrypted configuration password

Code Formatting

  • Uses Spotless with Eclipse formatter configuration
  • Configuration: dev-support/dailymart_spotless_formatter.xml
  • Excludes src/main/java/top/rslly/iot/utility/ai/voice/concentus/** from formatting
  • Run ./mvnw spotless:apply before committing changes

Important Notes

  • Project is dual-licensed: Apache 2.0 for personal use, commercial license required for commercial use
  • Maintains backward compatibility with xiaozhi-esp32 protocol
  • Only 2 existing test files - write tests for new features when appropriate
  • Configuration uses YAML format, not properties
  • Sensitive data should be encrypted using Jasypt
  • gRPC proto files are in src/main/proto/

Documentation

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.