SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.02268 · 2026

SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization

Yueting Zhuang, Jun Xiao, Yongliang Shen, Weiming Lu, Xunliang Cai, Zhengxi Lu, Chengcheng Han, Qi Gu, Jinyang Wu, Zhiyuan Yao

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.02268.json · badge: /api/ran/2604.02268.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ZJU-REAL/SkillZero community
Papers with Code archive
4 ran · 1 no recorded run
FunctionStatusWhere it lives
are_similar Ran
ran, violated the contract we drafted
ZJU-REAL/SkillZero/gigpo/core_gigpo.py
code served (permissive licence) · get_code("0588eb70d1fa7310")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from difflib import SequenceMatcher

ARGS = {
    "a": "hello world",
    "b": "hello world",
    "threshold": 0.95
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_step_group Ran
ran; our contract draft was wrong, not the code
ZJU-REAL/SkillZero/gigpo/core_gigpo.py
code served (permissive licence) · get_code("49e5a412f919c93f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (6,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections import defaultdict, Counter
import uuid
from difflib import SequenceMatcher

# Create small test data
np.random.seed(0)

# anchor_obs: array of observation strings
anchor_obs = np.array([
    "observation_1",
    "observation_2",
    "observation_1",
    "observation_3",
    "observation_2",
    "observation_1"
], dtype=object)

# index: array of episode_group_uid (categorical labels)
index = np.array([
    "episode_group_1",
    "episode_group_1",
    "episode_group_1",
    "episode_group_2",
    "episode_group_2",
    "episode_group_2"
], dtype=object)

# enable_similarity: boolean flag for similarity-based grouping
enable_similarity = False

# similarity_thresh: threshold for similarity matching (only used when enable_similarity=True)
similarity_thresh = 0.95

# summarize: whether to print summary statistics
summarize = True

ARGS = {
    "anchor_obs": anchor_obs,
    "index": index,
    "enable_similarity": enable_similarity,
    "similarity_thresh": similarity_thresh,
    "summarize": summarize
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (6,) — shape (6,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
episode_norm_reward Ran
ran; our contract draft was wrong, not the code
ZJU-REAL/SkillZero/gigpo/core_gigpo.py
code served (permissive licence) · get_code("c86cbeaccc57dedb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Build tiny test data
batch_size = 2
response_length = 3

# token_level_rewards: shape (bs, response_length)
token_level_rewards = torch.randn(batch_size, response_length)

# response_mask: shape (bs, response_length) - binary mask
response_mask = torch.ones(batch_size, response_length)

# index: shape (bs,) - which group/prompt each sample belongs to
index = np.array([0, 1], dtype=np.int64)

# traj_index: shape (bs,) - trajectory index within group
traj_index = np.array([0, 0], dtype=np.int64)

# epsilon: small value to avoid division by zero
epsilon = 1e-06

# remove_std: whether to remove std from normalization
remove_std = True

# compute_mean_std_cross_steps: compute stats across steps vs trajectories
compute_mean_std_cross_steps = True

ARGS = {
    "token_level_rewards": token_level_rewards,
    "response_mask": response_mask,
    "index": index,
    "traj_index": traj_index,
    "epsilon": epsilon,
    "remove_std": remove_std,
    "compute_mean_std_cross_steps": compute_mean_std_cross_steps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
step_norm_reward Ran
ran; our contract draft was wrong, not the code
ZJU-REAL/SkillZero/gigpo/core_gigpo.py
code served (permissive licence) · get_code("9c73a45de38c07e2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Construct arguments for step_norm_reward
batch_size = 2
response_length = 3

# step_rewards: shape (bs,) - scalar reward per sample
step_rewards = torch.tensor([0.5, 1.5], dtype=torch.float32)

# response_mask: shape (bs, response_length) - binary mask for response tokens
response_mask = torch.tensor([
    [1.0, 1.0, 1.0],
    [1.0, 1.0, 0.0]
], dtype=torch.float32)

# index: np.array mapping each sample to a prompt index
# Using distinct values to ensure id2score gets populated correctly
index = np.array([0, 1], dtype=np.int64)

# epsilon: small value for numerical stability
epsilon = 1e-6

# remove_std: boolean flag for normalization type
remove_std = True

ARGS = {
    "step_rewards": step_rewards,
    "response_mask": response_mask,
    "index": index,
    "epsilon": epsilon,
    "remove_std": remove_std,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_gigpo_outcome_advantage Not yet run
unverified (harvested, no recorded run)
ZJU-REAL/SkillZero/gigpo/core_gigpo.py
code served (permissive licence) · get_code("76f7db977dc304c0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 5 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
are_similar
brick of this paper's assembly: helper
6 other papers
3 dated earlier, 1 the same month, 2 later · 2 only as an assembly brick
2505.10978 (2025-05)
Group-in-Group Policy Optimization for LLM Agent Training
2512.14157 (2025-12)
Ophiuchus: Incentivizing Tool-augmented "Think with Images" for Joint Medical Segmentation, Understanding and Reasoning
2601.04786 (2026-01)
AgentOCR: Reimagining Agent History via Optical Self-Compression
and 3 more not named here
episode_norm_reward
brick of this paper's assembly: helper
3 other papers
3 later · 1 only as an assembly brick
2606.22995 (2026-06)
Group-Graph Policy Optimization for Long-Horizon Agentic Reinforcement Learning
2607.01440 (2026-07)
FaithMed: Training LLMs For Faithful Evidence-Based Medical Reasoning
2607.25308 (2026-07)
CAST: Game Solvers as Turn-Level Teachers for LLM Agents CAST: GAME SOLVERS AS TURN-LEVEL TEACHERS FOR LLM AGENTS
build_step_group
brick of this paper's assembly: data_transform
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
2505.10978 (2025-05)
Group-in-Group Policy Optimization for LLM Agent Training
2607.01440 (2026-07)
FaithMed: Training LLMs For Faithful Evidence-Based Medical Reasoning
step_norm_reward
brick of this paper's assembly: helper
2 other papers
2 later · 1 only as an assembly brick
2607.01440 (2026-07)
FaithMed: Training LLMs For Faithful Evidence-Based Medical Reasoning
2607.25308 (2026-07)
CAST: Game Solvers as Turn-Level Teachers for LLM Agents CAST: GAME SOLVERS AS TURN-LEVEL TEACHERS FOR LLM AGENTS
compute_gigpo_outcome_advantage
brick of this paper's assembly: entry
1 other paper
1 later
2607.25308 (2026-07)
CAST: Game Solvers as Turn-Level Teachers for LLM Agents CAST: GAME SOLVERS AS TURN-LEVEL TEACHERS FOR LLM AGENTS

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Agent skills, structured packages of procedural knowledge and executable resources that agents dynamically load at inference time, have become a reliable mechanism for augmenting LLM agents. Yet inference-time skill augmentation is fundamentally limited: retrieval noise introduces irrelevant guidance, injected skill content imposes substantial token overhead, and the model never truly acquires the knowledge it merely follows. We ask whether skills can instead be internalized into model parameters, enabling zero-shot autonomous behavior without any runtime skill retrieval. We introduce SKILL0, an in-context reinforcement learning framework designed for skill internalization. SKILL0 introduces a training-time curriculum that begins with full skill context and progressively withdraws it. Skills are grouped offline by category and rendered with interaction history into a compact visual context, teaching the model tool invocation and multi-turn task completion. A Dynamic Curriculum then evaluates each skill file's on-policy helpfulness, retaining only those from which the current policy still benefits within a linearly decaying budget, until the agent operates in a fully zero-shot setting. Extensive agentic experiments demonstrate that SKILL0 achieves substantial improvements over the standard RL baseline (+9.7% for ALFWorld, +6.6% for Search-QA and +10.1% for WebShop), while maintaining a highly efficient context of fewer than 0.5k tokens per step. Our code is available at https://github.com/ZJU-REAL/SkillZero.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.02268")
get_code_for_paper("2604.02268")
have("2604.02268")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.02268.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.02268.svg)](https://syntology.ai/paper/2604.02268)

Connect an agent — have() is free.