amscotti

Claude Agent Cr — AI skill for Claude Code

AI community

An unofficial Anthropic Agent SDK for Crystal, enabling developers to build autonomous AI agents powered by Claude and the Claude Code CLI.

How to install Claude Agent Cr

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

What Claude Agent Cr does

An unofficial Anthropic Agent SDK for Crystal, enabling developers to build autonomous AI agents powered by Claude and the Claude Code CLI.

Alternatives in AI

  • Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
  • OpenSwarm — OpenSwarm — Autonomous AI dev team orchestrator powered by Claude Code CLI 589 ★
  • Claude Hub — by Claude Did This - A webhook service that connects Claude Code to GitHub repositories, enabling AI-powered c 393 ★

README

Claude Agent SDK for Crystal

An unofficial Anthropic Agent SDK for Crystal, enabling developers to build autonomous AI agents powered by Claude and the Claude Code CLI.

This library provides a programmatic interface to the [Claude Code](https://code.claude.com/docs/en/overview) CLI, allowing you to create agents that can execute commands, edit files, and perform complex multi-step workflows.

Note: A large portion of this library was written with the assistance of AI (Claude), including code, tests, and documentation.

Features

  • One-Shot Queries: Simple interface for single-turn agent tasks.
  • Interactive Sessions: Full bidirectional agent control for chat applications.
  • V2 Streaming Interface: Send/receive patterns for real-time communication.
  • Tool Use: Access to Claude's built-in tools (Bash, File Edit, etc.) and support for custom tools.
  • SDK MCP Servers: In-process MCP servers with custom tools via control protocol (same architecture as official SDKs).
  • External MCP Servers: Connect to external MCP servers (stdio, HTTP, SSE transports).
  • Runtime MCP Management: set_mcp_servers, enable_mcp_channel, and reload_plugins to mutate the session without restarting the subprocess.
  • Preset Types: Type-safe presets for system prompts and tools to prevent typos.
  • System Prompt Options: Inline strings, SystemPromptPreset (with exclude_dynamic_sections and snapshot), SystemPromptCustom, or SystemPromptFile loaded from disk.
  • Type-Safe Schemas: Crystal's answer to Zod - generate JSON schemas from types.
  • Structured Outputs: Get validated JSON responses matching your schema.
  • Dynamic Controls: Change model, permission mode, and thinking budget/display (set_max_thinking_tokens) live, inspect MCP status, stop tasks, get_context_usage, prompt_suggestion, rename_session.
  • Skills: Enable SDK-managed skill access ("all" or a named list) with automatic `settin