Codeagent — Development skill for Claude Code
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
Related Skills
Gemini CLI Built-in Tools
Reference for Gemini's built-in tools and their capabilities.
MCP Claude Code
MCP implementation of Claude Code capabilities and more.
Claude Server
Claude Server is an MCP implementation that enhances Claude's capabilities by providing sophisticated context
Ryu
The universal agent interface & open composable platform for agent orchestration and knowledge sharing. Build
Setup Tools
Detect missing CLI tools and install them to enhance Forge capabilities
Chewo
macOS Electron app unifying Claude Code + Codex CLI: shared session sidebar, real terminals (node-pty/xterm),
Related Agents
Main Developer
Use this agent for Electron main-process work in Walph: new IPC capabilities, filesystem operations, git/ripgr
Brainstem Copilot.Agent
One native Copilot chat with both Brainstem and Brain Surgeon. Address either by name to use capabilities or t
Claude Researcher
Use this agent for web research using Claude's built-in WebSearch capabilities with intelligent multi-query de