This repository combines two related code-agent projects:
simplecoder-cli/: a ReAct-style CLI coding agent with tool use, optional retrieval, planning, context compaction, and permission-aware file accesscode-rl-posttraining/: a sandboxed reinforcement learning pipeline for code generation with both remote Tinker and local LoRA training backends
The agent side focuses on inference-time interaction and intervention discipline. The training side focuses on improving code generation through execution-based rewards.
adaptive-code-ai-agents/
├── simplecoder-cli/
└── code-rl-posttraining/
Do not commit API keys to this repository. Use environment variables instead.
Required:
GEMINI_API_KEY
Optional:
SIMPLECODER_MODEL(defaults togemini/gemini-2.5-flash)
PowerShell example:
$env:GEMINI_API_KEY = "your-key-here"
$env:SIMPLECODER_MODEL = "gemini/gemini-2.5-flash"Required for backend=tinker:
TINKER_API_KEY
Optional:
SANDBOX_URL(defaults tohttp://localhost:8080/run_code)SANDBOX_MAX_CONCURRENCYSANDBOX_CLIENT_TIMEOUT_SECONDS
PowerShell example:
$env:TINKER_API_KEY = "tml-..."
$env:SANDBOX_URL = "http://localhost:8080/run_code"cd simplecoder-cli
pip install -r requirements.txt
pip install -e .
simplecoder "create a hello.py file"cd code-rl-posttraining
python -m pip install -r requirements.txt
docker run -it -p 8080:8080 -v ./sandbox_config/local.yaml:/root/sandbox/sandbox/configs/local.yaml volcengine/sandbox-fusion:server-20250609
python train.pySee the README inside each subproject for more detail.