AgentScope Java is a framework for building distributed software agents that use language models to perform tasks over extended sessions. It is intended for enterprise applications needing agent coordination, controlled tool use, isolated workspaces, event streaming, and distributed session management. The catalogue entries provide skills and instructions for working with this framework.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add agentscope-ai/agentscope-java --skill apply-patchgit clone --depth 1 https://github.com/agentscope-ai/agentscope-javaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/agentscope-ai/agentscope-java/apply-patch)<a href="https://agentmods.dev/skills/agentscope-ai/agentscope-java/apply-patch"><img src="https://agentmods.dev/badge/skills/agentscope-ai/agentscope-java/apply-patch/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/agentscope-ai/agentscope-java/apply-patch"><img src="https://agentmods.dev/badge/skills/agentscope-ai/agentscope-java/apply-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.00345 |
| Opus 5.5 | $0.00015 | $0.00138 |
| Sonnet 5.5 | $0.00008 | $0.00069 |
| Haiku 4.5 | $0.00004 | $0.00034 |
Grade A, and why
apply-patch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Apply Patch
The built-in edit_file does an exact string match on a single file and has no fuzzy
tolerance. For multi-file changes, or when edit_file keeps failing to find the string,
construct a unified diff and apply it atomically with git.
Procedure
-
Write the unified diff to a file in the sandbox (use
write_fileor a heredoc viaexecute):diff --git a/path/to/file b/path/to/file --- a/path/to/file +++ b/path/to/file @@ -10,7 +10,7 @@ context line -old line +new line -
Validate before applying:
git apply --check changes.patch -
Apply:
git apply changes.patch(use-p0if paths are nota/...b/...). -
If
git applyrejects the hunk, the surrounding context is stale —read_filethe exact lines again, regenerate the diff with correct context, and retry.
When to prefer this
- Editing 3+ files for one logical change (atomic, all-or-nothing).
- Repetitive or whitespace-sensitive edits where
edit_fileexact-match struggles. - Re-applying a patch produced elsewhere (e.g. from a PR or
git diff).
Always run the verify-changes skill afterwards.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 37 lines · 38 tokens per session scan A 8d2605e691a0
apply-patch is a skill published in the GitHub repository agentscope-ai/agentscope-java (6,555 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 345 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
apply-patch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| apply-patchagentscope-ai/agentscope-java | Skill | 6.6k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| Codexagentic-in/elephant-agent | Skill | 586 | 3mo ago | none | A | 31 | Claude Code, Codex |
| GitHub Issuesagentic-in/elephant-agent | Skill | 586 | 3mo ago | none | A | 32 | Claude Code, Codex |
| GitHub PR Workflowagentic-in/elephant-agent | Skill | 586 | 3mo ago | none | A | 29 | Claude Code, Codex |
| GitHub Repo Managementagentic-in/elephant-agent | Skill | 586 | 3mo ago | none | A | 23 | Claude Code, Codex |
| commitopenonion/connectonion | Skill | 1.6k | yesterday | Apache-2.0 | A | 26 | Claude Code, Codex |
| pdf-processingTencent/WeKnora | Skill | 39k | yesterday | none | A | 36 | Claude Code, Codex |