corteza: AI Agent Runtime

An agent runtime that gives Large Language Models (LLMs) from 'Anthropic' <https://www.anthropic.com/>, 'OpenAI' <https://openai.com/>, 'Moonshot' <https://www.moonshot.ai/>, and 'Ollama' <https://ollama.com/> direct access to a live R session with managed workspace state. Tools execute as R function calls with provenance tracking, and a deterministic retrieval system keeps relevant objects in context across turns. Three entry points: a shell command-line interface (CLI), a console read-eval-print-loop via chat(), and a Model Context Protocol (MCP) server via serve() for external clients.

Version: 0.6.3
Depends: R (≥ 4.4.0)
Imports: callr, codetools, curl, jsonlite, llm.api, printify, processx, saber
Suggests: fortunes, mx.api, simplermarkdown, tinytest
Published: 2026-05-04
DOI: 10.32614/CRAN.package.corteza (may not be active yet)
Author: Troy Hernandez ORCID iD [aut, cre], cornball.ai [cph]
Maintainer: Troy Hernandez <troy at cornball.ai>
BugReports: https://github.com/cornball-ai/corteza/issues
License: Apache License (≥ 2)
URL: https://github.com/cornball-ai/corteza
NeedsCompilation: no
SystemRequirements: On Windows, Rtools45 (R 4.5.x) or Rtools44 (R 4.4.x) is recommended so the 'bash' shell tool is available; minimal installs fall back to a 'cmd' tool. 'git' is required for the git_status, git_diff, and git_log tools (install Git for Windows, or 'pacman -Sy git' from an Rtools shell).
Materials: NEWS
CRAN checks: corteza results

Documentation:

Reference manual: corteza.html , corteza.pdf
Vignettes: Package as Skill (source)

Downloads:

Package source: corteza_0.6.3.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=corteza to link to this page.