by sinabs
A Spring Boot agent harness built on AgentScope Java 2.0 and JDK 25: multi-turn chat over HTTP, a fresh agent per request, shared session history.
# Add to your Claude Code skills
git clone https://github.com/sinabs/spring-agent-scopeGuides for using ai agents skills like spring-agent-scope.
Last scanned: 11/6/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-06T11:52:34.762Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how spring-agent-scope compares with popular alternatives.
spring-agent-scope is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sinabs. A Spring Boot agent harness built on AgentScope Java 2.0 and JDK 25: multi-turn chat over HTTP, a fresh agent per request, shared session history. It has 98 GitHub stars.
Yes. spring-agent-scope passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/sinabs/spring-agent-scope" and add it to your Claude Code skills directory (see the Installation section above).
spring-agent-scope is primarily written in Java. It is open-source under sinabs on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh spring-agent-scope against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Yoke · AgentHarness: a monolithic agent service built on Spring Boot and AgentScope Java (V2).
A Spring-based agent harness.
Yoke is an open-source project of 友客AI (YouKe AI). We read the AgentScope Java V2 and Spring source code together and learn by building an agent service that really runs. A yoke is the wooden frame that makes oxen and horses pull in one direction. Yoke wraps around the model and keeps it working reliably.
POST /api/chat, plus POST /api/chat/stream that streams the reasoning process over SSE using the AG-UI protocol.get_weather tool looks up current weather through the open-source Open-Meteo API, no key needed (the free tier is for non-commercial use only).HarnessAgent and closes it afterwards. Conversation history lives in Redis, so it survives restarts and is shared by all replicas, isolated per (userId, sessionId), and compacted automatically when a conversation gets long.retrieve tool over a built-in knowledge base that returns citations keyed by stable passage ids such as [doc-name.md#passage-id], external MCP servers over HTTP, and two sub-agents (one declared in code, one declared as a workspace Markdown file). The agent still has no file, shell or web tools, and a logging middleware records a timing trace for every call.local / test / prod profiles. In production, a missing API key fails the startup instead of shipping with an empty key.Requires JDK 25 and Docker (for the local Redis).
docker compose up -d # start Redis first; the app refuses to start without it
sdk env # switch to JDK 25 (if you use sdkman)
export ARK_API_KEY=... # the local profile talks to Volcengine Ark (OpenAI-compatible)
./gradlew bootRun # the local profile is active by default
curl -X POST localhost:8080/api/chat \
-H 'Content-Type: application/json' \
-d '{"message": "Hello"}'
# {"sessionId":"…","reply":"…"}
Send the returned sessionId with later requests to continue the same conversation. Run the tests with ./gradlew build; tests that need a real Redis start it from the same docker-compose.yml through Testcontainers, and are skipped with a clear reason when Docker is not available (with CI=true they fail instead).
History is stored per (userId, sessionId). Both are optional in the request body ({"userId": "alice", "sessionId": "s-1", "message": "Hello"}), and the server always makes sure both have a value before the agent sees them:
sessionId: it belongs to the default user (same as older clients)userId: a new session is created for that user, and its id is returned in the responsedefault userA half-empty pair is never passed on to the framework, because in AgentScope 2.0.4 a missing sessionId falls into one shared session named after the agent, and a missing userId falls into an anonymous user, which would mix everyone's history together. Both ids may only contain letters, digits, _, . and - (1 to 64 characters, not all dots, so . and .. are rejected); anything else returns 400. The framework joins them as userId/sessionId, so allowing / would let different pairs collide on one slot, and userId also becomes a workspace directory name. There is no authentication yet: userId is whatever the caller says, so it is not an identity check.
What is stored in Redis, per session (checked against a real model, two turns with one tool call):
| Key | Type | Content |
|---|---|---|
yoke:session:{userId}/{sessionId}:agent_state |
String | One JSON document with the whole agent state. The conversation is its context array (one entry per message: USER, ASSISTANT with tool_use, TOOL with tool_result, ...), next to a summary field and a few empty context objects. summary stayed empty in a real compaction run: the compaction summary is stored as the first message of context instead. About 3.3 KB for two turns |
yoke:session:{userId}/{sessionId}:agent_state:ver |
String | Version number used for optimistic concurrency, bumped on every save |
yoke:session:{userId}/{sessionId}:_keys |
Set | Names of all state keys of the session (only agent_state here), used to delete a whole session |
The model's thinking blocks and per-message token usage are stored too, and the whole document is read and written back on every turn, so it grows with the conversation. There is no separate message list key.
POST /api/chat/stream speaks the AG-UI protocol: the request body is a standard RunAgentInput, and the response is a text/event-stream of AG-UI events pushed while the agent is reasoning. Use curl -N to turn off buffering:
curl -N -X POST localhost:8080/api/chat/stream \
-H 'Content-Type: application/json' \
-d '{"threadId": "demo", "runId": "run-1", "messages": [{"id": "msg-1", "role": "user", "content": "What is the weather in Beijing?"}]}'
Request rules (any violation returns 400 before the stream starts):
Content-Type must be application/json, otherwise 415. This also stops a cross-site page from starting a run with a text/plain request that skips the CORS preflightthreadId is the session ID and is required: letters, digits and _.-, 1 to 64 characters, not all dots. It shares the same history as sessionId of POST /api/chat of the default user (RunAgentInput has no user field, so the streaming endpoint always runs as default)runId is required and must not be blank (RunAgentInput requires it)messages must not be empty, every message needs an id and a role, and the last one must be a user message with non-blank plain text. content must be a string: content blocks (even text-only ones, or with images) are rejecteduser message. Earlier messages, tools, context, state, forwardedProps and resume are ignored, so a client cannot add tools to the agent or rewrite the history. Only the text of that message is kept: its id, toolCalls and toolCallId never reach the history, and the message ID is generated on the server. The adapter is also configured with ToolMergeMode.AGENT_ONLY, so only server-registered tools are ever usedIllustrative output (values are made up, field names come from real runs against a stub model, long fields are elided). Only data: lines are sent; the event type is the type field in the JSON, there is no SSE event: name:
data:{"type":"RUN_STARTED","threadId":"demo","runId":"…","input":{…}}
data:{"type":"TOOL_CALL_START","threadId":"demo","runId":"…","toolCallId":"call_1","toolCallName":"get_weather"}
data:{"type":"TOOL_CALL_ARGS","threadId":"demo","runId":"…","toolCallId":"call_1","delta":"{\"city\":\"Beijing\"}"}
data:{"type":"TOOL_CALL_END","threadId":"demo","runId":"…","toolCallId":"call_1"}
data:{"type":"TOOL_CALL_RESULT","threadId":"demo","runId":"…","toolCallId":"call_1","content":"\"Sunny, 25 C\"","role":"tool","messageId":"…"}
data:{"type":"TEXT_MESSAGE_START","threadId":"demo","runId":"…","messageId":"…","role":"assistant"}
data:{"type":"TEXT_MESSAGE_CONTENT","threadId":"demo","runId":"…","messageId":"…","delta":"It is sunny, 25 C."}
data:{"type":"TEXT_MESSAGE_END","threadId":"demo","runId":"…","messageId":"…"}
data:{"type":"CUSTOM","threadId":"demo","runId":"…","name":"token_usage","value":{"delta":{…},"cumulative":{"inputTokens":83,"outputTokens":27,…},"modelCall":{…}}