GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jd-opensource/CodingAgentMemoryGym: CAMG-II environments with CAMP reinforcement learning and CAMP-II on-policy distillation for long-horizon agents.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
camg
camg
 
 
camp
camp
 
 
docs
docs
 
 
licenses
licenses
 
 
runtimes/autoresearch
runtimes/autoresearch
 
 
scripts
scripts
 
 
tests
tests
 
 
third_party
third_party
 
 
verl
verl
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
THIRD_PARTY.md
THIRD_PARTY.md
 
 
deployment.example.json
deployment.example.json
 
 
pyproject.toml
pyproject.toml
 
 
requirements-environments.txt
requirements-environments.txt
 
 
requirements-training.txt
requirements-training.txt
 
 
requirements.lock
requirements.lock
 
 
runtime-overrides.txt
runtime-overrides.txt
 
 

Repository files navigation

Coding Agent Memory Gym

Train language-model agents to use files as memory during long tasks.

CAMP paper · CAMP project · CAMP-II paper · CAMP-II project · Dataset

This repository brings together one environment suite, CAMG-II, and two training methods:

Method Learning signal Teacher during training Teacher during evaluation
CAMP — reinforcement learning (RL) Task rewards, with an actor and a learned value function No No
CAMP-II — on-policy distillation (OPD) Token-level feedback from a frozen teacher on the student's own trajectories Yes No

Both recipes use the same CAMG-II tasks and environment interfaces.

1. What the environments do

Environment Task Feedback
Shop Complete six related shopping sessions while remembering earlier requirements Purchase correctness and task progress
Coding Fix a software issue in a repository Executable tests
AutoResearch Build and improve a machine-learning solution The task's native metric, checked separately from the agent
General Complete knowledge-work tasks using tools Task-specific verification and rubric-based judging
Visual Implement a website from a user request Screenshot-based visual assessment

The agent works in an episode-specific directory. Its files survive context resets; the active model context does not. Memory is written and read through ordinary file operations, without a separate reward for writing notes. Environment-specific task actions are also preserved.

2. Install

The CUDA training environment requires Linux x86-64, Python 3.12 and eight compatible NVIDIA GPUs. Task services have additional dependencies; see environment setup. Configuration inspection and lightweight tests also run on a Mac or CPU machine.

git clone https://github.com/jd-opensource/CodingAgentMemoryGym.git
cd CodingAgentMemoryGym
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[test]'
python -m pytest tests/unit

For training, install the pinned training dependencies in a separate environment and use the modified framework included in verl/.

3. Prepare data and task services

Download the CAMG-II dataset, then follow data preparation and environment setup. The data package includes ordered task definitions, General task files, Coding source data, and ready-made AutoResearch archives. Shop catalog files are fetched directly from their original publisher.

The included camg/data/train_schedule.jsonl specifies 12,800 ordered task references. Download the corresponding task assets with the data-preparation commands. The default recipes run for 100 updates with 64 completed episodes per update.

All task services bind to loopback by default. Run the services and their clients on the same host. Never expose these execution services directly to the Internet.

4. Train

First obtain local copies of Qwen3.5-4B and, for OPD, Qwen3.8-27B. Preserve the model, tokenizer and chat-template versions together.

CAMP reinforcement learning:

python -m camp.train --method rl \
  --student /models/Qwen3.5-4B \
  --routes ./prepared/routes.json \
  --schedule ./prepared/train_schedule.jsonl \
  --output ./runs/camp-rl

CAMP-II on-policy distillation:

python -m camp.train --method opd \
  --student /models/Qwen3.5-4B \
  --teacher /models/Qwen3.8-27B \
  --routes ./prepared/routes.json \
  --schedule ./prepared/train_schedule.jsonl \
  --output ./runs/camp-ii-opd

Append --print-config to inspect the resolved command, or --check-inputs to validate local input files. A new run requires an empty output directory. Resuming requires an explicit --resume checkpoint.

See training for hardware allocation, algorithm settings, checkpoints and troubleshooting.

5. Evaluate

Evaluate the trained student without a teacher, using the same task split, tool interface, context budget and judge configuration for both methods. See the evaluation protocol.

6. Repository guide

camp/                     RL and OPD training code
  rl/                     Task-reward RL integration
  opd/                    On-policy distillation integration
  configs/                Separate method recipes
camg/                     Shared clients, task services and data preparation
  services/               Shop, Coding, AutoResearch, General and Visual
  data/                   Ordered task references and dataset manifests
runtimes/autoresearch/    Isolated execution and private grading runtime
third_party/mimo_runtime/ Required General/Visual runtime components
verl/                    Distributed training framework snapshot
scripts/                  Installation and verification helpers
tests/                    Local and training-runtime tests
docs/                     Setup, methods, data, evaluation and testing

The interface keys webshop, swesmith, openmle_fast, agentgeneral and webdev correspond to Shop, Coding, AutoResearch, General and Visual, respectively. See testing for development commands.

7. Licenses and attribution

Repository code is distributed under Apache-2.0, with retained MIT and Apache notices for incorporated components. See third-party notices. In particular, OpenMLE materials and their underlying datasets can carry noncommercial or other source-specific terms. The repository license does not replace those terms.

Please cite the relevant CAMP/CAMP-II work and the original task sources when using them. Source and packaging changes are recorded in provenance.

About

CAMG-II environments with CAMP reinforcement learning and CAMP-II on-policy distillation for long-horizon agents.

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.