autohandai

Code Agent SDK Ruby — Development skill for Claude Code

Development community

Autohand Code Agent SDK for Ruby: CLI-backed agent orchestration with streaming, run lifecycle, examples, JSON helpers, and Rails-friendly configuration.

How to install Code Agent SDK Ruby

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

What Code Agent SDK Ruby does

Autohand Code Agent SDK for Ruby: CLI-backed agent orchestration with streaming, run lifecycle, examples, JSON helpers, and Rails-friendly configuration.

Alternatives in Development

  • Claude On Rails — A development framework for Ruby on Rails developers using Claude Code, inspired by SuperClaude 779 ★
  • Anthropic SDK Ruby — Gem Version 366 ★
  • Acp Go SDK — Go SDK for the Agent Client Protocol (ACP), offering typed requests, responses, and helpers so Go applications 226 ★

README

Code Agent SDK for Ruby

[![CI](https://github.com/autohandai/code-agent-sdk-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/autohandai/code-agent-sdk-ruby/actions/workflows/ci.yml) [![Ruby](https://img.shields.io/badge/ruby-3.2%2B-red.svg)](https://www.ruby-lang.org/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE.txt)

Autohand Code Agent SDK for Ruby: a CLI-backed Ruby gem for controlling Autohand Code agents over JSON-RPC, with streaming events, run lifecycle helpers, permissions, skills, sessions, hooks, and Rails-friendly configuration.

**Beta:** this SDK is actively evolving while the Agent SDK APIs stabilize. Pin versions in production and review release notes before upgrading.

Overview

This SDK wraps the Autohand Code CLI in RPC mode and exposes a Ruby API for agentic coding workflows.

Ruby app -> autohand_sdk gem -> Autohand Code CLI subprocess -> Provider -> HTTP

The gem:

  • Starts the Autohand Code CLI as a subprocess in JSON-RPC mode.
  • Streams agent lifecycle, message, tool, permission, and file-change events.
  • Provides AutohandSDK::Client for low-level control and AutohandSDK::Agent / Run for application code.
  • Exposes slash commands, persistent goals, and the replayable autoresearch ledger through exact JSON-RPC methods.
  • Returns immutable typed values for skill-registry and MCP discovery APIs.
  • Supports resumable step control with host predicates and persisted tool results.
  • Keeps Rails optional through a Railtie that only loads when Rails is present.
  • Uses Ruby stdlib for runtime behavior; development dependencies stay out of production installs.

Other Programming Languages (Beta)

The Agent SDK is available in multiple beta language packages. Use the same CLI-backed SDK model from another programming language:

  • TypeScript - Agent, Run, streaming, and JSON helpers for Node and B