kaipingyang

Codeagent — Development skill for Claude Code

Development community

R-native implementation of Claude Code CLI capabilities, built on ellmer.

How to install Codeagent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kaipingyang/codeagent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codeagent does

R-native implementation of Claude Code CLI capabilities, built on ellmer.

Alternatives in Development

  • OpenAI Codex CLI — (Rust implementation) 67.8k ★
  • Claude Engineer — A version of command line interface(CLI) that leverages the power of Claude Opus(3-4.7) 954 ★
  • Claude Code Zh Cn — Claude Code CLI 简体中文本地化 / 汉化插件;支持 macOS、Linux、WSL、Windows 与新版 native,一行安装,更新后自动修复 721 ★

README

codeagent

**Language:** English | [简体中文文档](https://kaipingyang.github.io/codeagent/articles/getting-started-cn.html)

An R-native agentic coding assistant built on [ellmer](https://ellmer.tidyverse.org) and [btw](https://btw.posit.co). It reimplements a coding-agent **harness** in R: the agent loop, permission system, context compaction, hook system, skill system, tool execution, session management, multi-agent coordination, a CLI REPL, and an interactive Shiny UI.

**Not a wrapper.** codeagent reimplements the harness from scratch rather than shelling out to an external CLI.

Installation

# DESCRIPTION pins the verified GitHub builds of all eight core packages.
pak::pak("kaipingyang/codeagent")

# Recommended: install the pinned btw development build for R-environment tools.
pak::pak("posit-dev/btw@473d1d8e3114ed9136692ff3fb6b88ed0474ba66")

Configuration

Step 1 — Create settings file

codeagent::use_codeagent_settings()   # creates ~/.codeagent/settings.json

Edit the generated file with your endpoint:

{
  "provider": "openai_compatible",
  "model": "main",
  "env": {
    "CODEAGENT_BASE_URL": "https://YOUR-WORKSPACE/serving-endpoints",
    "CODEAGENT_MODEL": "your-main-endpoint",
    "CODEAGENT_FAST_MODEL": "your-fast-endpoint",
    "CODEAGENT_API_KEY": "your-token"
  }
}

`CODEAGENT_*` vars in the `env` block are loaded at startup even under `--vanilla`, so you do not need to set them separately in `.Renviron`.

Step 2 — Install the CLI (once)

codeagent::install_codeagent_cli()   # puts `codeagent` on your PATH
codeagent           # interactive REPL (default permission mode)
codeagent -y        # bypass mode (skip all permission prompts)
codeagent "query"   # one-shot query

Quick start (R)

library(codeagent)

# Option A: auto-build client from settings.json
client <- codeagent_client()

# Option B: explicit ellmer Chat
chat   <- ellmer::chat_openai_compatible(
  base_url