AI Code Helper For Hot100
A Spring Boot + Vue AI coding assistant built around a self-built ReAct Agent Runtime, with plan-before-act execution, permission-gated tools, hybrid RAG, background tasks, and traceable Hot100 coaching.
Backend Highlights
- Built a custom ReAct Agent Runtime with a validated plan-before-act stage and up to 8 autonomous model/tool turns.
- Implemented permission-gated tools across READ, WRITE, EXTERNAL, and SENSITIVE levels with structured tool_result recovery instead of hard failures.
- Added Redis-backed tool idempotency using SHA-256 hashes to detect repeated tool calls and replay cached results during retries.
- Designed three-tier context compaction, tiered tool recovery, hook events, and step-level SSE streaming for observable agent execution.
- Modeled AgentTask, RuntimeSlot, and AgentStep so retries, runtime traces, background tasks, and executor watchdogs can be inspected clearly.
- Built hybrid explainable RAG for Hot100 resources by combining Redis vector similarity with deterministic keyword scoring through HybridRanker.
- Added long-term memory for user preferences, weaknesses, wrong answers, next actions, and notes.
- Used Spring Boot 3.5, Java 21, Spring Security JWT, JPA, Flyway, Redis, LangChain4j, DashScope/Qwen, and Docker Compose.