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.
- AGENTS.mdAGENTS.md
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
- Distinctive: line 124
RAG Knowledge Bases: - Document processing and vector search with ChromaDB
- Very specific: line 159
Run ./mvnw spotless:apply before committing changes
- Distinctive: line 165
Only 2 existing test files - write tests for new features when appropriate
≈ “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.
Files
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
/webdirectory) - 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 -DskipTestsFrontend (Vue 3)
cd web
# Install dependencies
npm install
# Start development server
npm run dev
# Production build
npm run buildInfrastructure (Docker)
cd docker
docker-compose up -dStarts 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.jarThe 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 controllersAuth.java- Authentication endpointsTool.java- AI/Tool endpoints (main functionality)Wx.java- WeChat integrationXiaoZhi.java- XiaoZhi ESP32 hardware support
dao/- Data access repositorieserror/- Global error handlingmodels/- JPA entity modelsmodels/influxdb/- InfluxDB data point models
param/- Request/response DTOsservices/- Business logic layerservices/agent/- AI Agent servicesservices/iot/- IoT core services (OTA, MQTT, Alarm, Hardware management)services/thingsModel/- Thing Model implementation (Product, Device, Event, Function)services/knowledgeGraphic/- Knowledge graph servicesservices/storage/- Storage servicesservices/wechat/- WeChat integration services
transfer/mqtt/- MQTT message handlingutility/- Utilities and helpersutility/ai/- AI utilitiesutility/ai/llm/- LLM provider integrationsutility/ai/mcp/- Model Context Protocol implementationutility/ai/rag/- RAG implementationutility/ai/toolAgent/- Tool Agent implementationutility/ai/tools/- AI tool definitionsutility/ai/voice/- ASR, TTS, audio processing
utility/exhook/- EMQX ExHook gRPC generated codeutility/properties/- Configuration property bindingsutility/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 poolspring.jpa- Hibernate configuration (ddl-auto: updaterecommended for development)spring.data.redis- Redis connection settingsinfluxdb- InfluxDB connection for time-series datamqtt- EMQX MQTT broker configurationgrpc- gRPC server settings for EMQX ExHookwx- WeChat AppID/AppSecret configurationota- OTA firmware storage pathsrag- Embedding model and ChromaDB settingsai- LLM API keys, ASR/TTS provider selection, voice settings, agent mode configurationai.agent.mode- Agent mode:react(default) orfunction(native function calling)ai.agent.include-thought- Whether to include AI reasoning/thinking in outputai.mcp.agent-mode- MCP Agent mode:reactorfunctionai.mcp.agent-include-thought- Whether to include MCP Agent reasoning in outputai.mcp.endpoint-count- Number of MCP WebSocket endpoints (1-20)ai.mcp.tools-limit- Maximum tools per MCP endpointai.temperature/ai.top-p- LLM generation parametersai.asr.dashscope-max-concurrent- ASR concurrent request limitai.tts.*- TTS pool configuration (concurrency, timeouts, cache)
jwt- JWT secret key for authenticationjasypt- 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:applybefore 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
- Official documentation: https://ruanrongman.github.io/IntelliConnect/
- GitHub repository: https://github.com/ruanrongman/IntelliConnect
- Community: https://github.com/cwliot
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
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.

