{
  "_id": "6a2655f3794753ddbc3e407d",
  "Package": "corteza",
  "Title": "AI Agent Runtime",
  "Version": "0.6.9.1",
  "Authors@R": "c(\nperson(\"Troy\", \"Hernandez\", role = c(\"aut\", \"cre\"),\nemail = \"troy@cornball.ai\",\ncomment = c(ORCID = \"0009-0005-4248-604X\")),\nperson(\"Grant\", \"McDermott\", role = \"ctb\",\nemail = \"contact@grantmcdermott.com\",\ncomment = c(ORCID = \"0000-0001-7883-8573\")),\nperson(\"Jorge\", \"Krzyzaniak\", role = \"ctb\",\nemail = \"jorgekrzyz@gmail.com\"),\nperson(\"cornball.ai\", role = \"cph\"))",
  "Description": "An agent runtime that gives Large Language Models (LLMs)\nfrom 'Anthropic' <https://www.anthropic.com/>, 'OpenAI'\n<https://openai.com/>, 'Moonshot' <https://www.moonshot.ai/>,\nand 'Ollama' <https://ollama.com/> direct access to a live R\nsession with managed workspace state. Tools execute as R\nfunction calls with provenance tracking, and a deterministic\nretrieval system keeps relevant objects in context across\nturns. Three entry points: a shell command-line interface\n(CLI), a console read-eval-print-loop via chat(), and a Model\nContext Protocol (MCP) server via serve() for external clients.",
  "License": "Apache License (>= 2)",
  "URL": "https://github.com/cornball-ai/corteza",
  "BugReports": "https://github.com/cornball-ai/corteza/issues",
  "VignetteBuilder": "simplermarkdown",
  "SystemRequirements": "On Windows, Rtools45 (R 4.5.x) or Rtools44 (R\n4.4.x) is recommended so the 'bash' shell tool is available;\nminimal installs fall back to a 'cmd' tool. 'git' is required\nfor the git_status, git_diff, and git_log tools (install Git\nfor Windows, or 'pacman -Sy git' from an Rtools shell).",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "git libssl-dev",
  "Repository": "https://cornball-ai.r-universe.dev",
  "Date/Publication": "2026-06-08 03:58:15 UTC",
  "RemoteUrl": "https://github.com/cornball-ai/corteza",
  "RemoteRef": "HEAD",
  "RemoteSha": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-08 05:37:50 UTC",
    "User": "root"
  },
  "Author": "Troy Hernandez [aut, cre] (ORCID:\n<https://orcid.org/0009-0005-4248-604X>),\nGrant McDermott [ctb] (ORCID: <https://orcid.org/0000-0001-7883-8573>),\nJorge Krzyzaniak [ctb],\ncornball.ai [cph]",
  "Maintainer": "Troy Hernandez <troy@cornball.ai>",
  "MD5sum": "611aa3b9fb22d07054bfeb0837e4afa7",
  "_user": "cornball-ai",
  "_type": "src",
  "_file": "corteza_0.6.9.1.tar.gz",
  "_fileid": "56c09afe1d977a519cffe7c1471fe7ff85b332547be634b331d7560cc39be2a2",
  "_filesize": 645638,
  "_sha256": "56c09afe1d977a519cffe7c1471fe7ff85b332547be634b331d7560cc39be2a2",
  "_created": "2026-06-08T05:37:50.000Z",
  "_published": "2026-06-08T05:41:07.170Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80029362250,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7472409691"
    },
    {
      "job": 80029362240,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7472408791"
    },
    {
      "job": 80029362254,
      "time": 120,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7472401830"
    },
    {
      "job": 80029362260,
      "time": 113,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7472400576"
    },
    {
      "job": 80028442265,
      "time": 567,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7472378596"
    },
    {
      "job": 80029362243,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7472397654"
    },
    {
      "job": 80029362257,
      "time": 143,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7472406267"
    },
    {
      "job": 80029362258,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7472406341"
    },
    {
      "job": 80029362267,
      "time": 134,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7472404850"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cornball-ai/corteza",
  "_commit": {
    "id": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
    "author": "Troy Hernandez <troy@cornball.ai>",
    "committer": "Troy Hernandez <troy@cornball.ai>",
    "message": "Recognize openai_codex provider in Matrix channel + help text\n\nmatrix_configure() match.arg() omitted openai_codex, so the Matrix\nchannel rejected it (console/CLI already accepted it via the provider\nlist derived from llm.api::agent). Add it to the choices, and list\nopenai_codex in the CLI usage, /provider help, and provider comments.\n",
    "time": 1780891095
  },
  "_maintainer": {
    "name": "Troy Hernandez",
    "email": "troy@cornball.ai",
    "login": "troyhernandez",
    "description": "",
    "uuid": 5670773
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.4.0",
      "role": "Depends"
    },
    {
      "package": "callr",
      "role": "Imports"
    },
    {
      "package": "codetools",
      "role": "Imports"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "llm.api",
      "version": ">= 0.1.4",
      "role": "Imports"
    },
    {
      "package": "printify",
      "role": "Imports"
    },
    {
      "package": "processx",
      "role": "Imports"
    },
    {
      "package": "saber",
      "role": "Imports"
    },
    {
      "package": "clipr",
      "role": "Suggests"
    },
    {
      "package": "fortunes",
      "role": "Suggests"
    },
    {
      "package": "mx.api",
      "role": "Suggests"
    },
    {
      "package": "rstudioapi",
      "role": "Suggests"
    },
    {
      "package": "simplermarkdown",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "cornball-ai",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-05",
      "n": 57
    },
    {
      "week": "2026-06",
      "n": 10
    },
    {
      "week": "2026-10",
      "n": 5
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 3
    },
    {
      "week": "2026-16",
      "n": 22
    },
    {
      "week": "2026-17",
      "n": 23
    },
    {
      "week": "2026-18",
      "n": 5
    },
    {
      "week": "2026-19",
      "n": 14
    },
    {
      "week": "2026-20",
      "n": 30
    },
    {
      "week": "2026-21",
      "n": 16
    },
    {
      "week": "2026-22",
      "n": 19
    },
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 11,
  "_contributors": [
    {
      "user": "troyhernandez",
      "count": 200,
      "uuid": 5670773
    },
    {
      "user": "user9208212",
      "count": 2,
      "uuid": 151798213
    },
    {
      "user": "grantmcdermott",
      "count": 1,
      "uuid": 10285037
    },
    {
      "user": "hrbrmstr",
      "count": 1,
      "uuid": 509878
    }
  ],
  "_userbio": {
    "uuid": 153995987,
    "type": "organization",
    "name": "cornball.ai"
  },
  "_downloads": {
    "count": 398,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/corteza"
  },
  "_devurl": "https://github.com/cornball-ai/corteza",
  "_searchresults": 6,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/corteza.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cornball-ai/corteza",
  "_realowner": "cornball-ai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.6.3",
      "date": "2026-05-04"
    },
    {
      "version": "0.6.9",
      "date": "2026-05-28"
    }
  ],
  "_exports": [
    "add_observer",
    "chat",
    "context_limit_for_model",
    "context_usage_pct",
    "corteza_execute_in_chat",
    "corteza_execute_in_chat_retain",
    "default_local_model",
    "default_provider_model",
    "ensure_skills",
    "estimate_history_tokens",
    "estimate_live_context_tokens",
    "estimate_text_tokens",
    "estimate_tool_tokens",
    "format_age",
    "format_live_ctx",
    "format_tokens",
    "install_cli",
    "matrix_archive_all",
    "matrix_configure",
    "matrix_poll",
    "matrix_request_flush",
    "matrix_run",
    "matrix_send",
    "mcp_tool_executor",
    "new_session",
    "observer_progress",
    "policy",
    "register_skill_from_fn",
    "schema_from_fn",
    "schema_from_registry",
    "serve",
    "session_setup",
    "skill_install",
    "skill_list_installed",
    "skill_remove",
    "skill_test",
    "subagent_collect",
    "subagent_kill",
    "subagent_list",
    "subagent_query",
    "subagent_seed_history",
    "subagent_spawn",
    "subagent_turn_init",
    "subagent_turn_prompt",
    "subagent_turn_set_id",
    "tool_bash",
    "tool_bg_kill",
    "tool_bg_status",
    "tool_cmd",
    "tool_collect_subagent",
    "tool_exit_plan_mode",
    "tool_fetch_url",
    "tool_git_diff",
    "tool_git_log",
    "tool_git_status",
    "tool_grep_files",
    "tool_installed_packages",
    "tool_kill_subagent",
    "tool_list_files",
    "tool_list_subagents",
    "tool_query_subagent",
    "tool_r_help",
    "tool_read_file",
    "tool_read_handle",
    "tool_replace_in_file",
    "tool_run_r",
    "tool_run_r_script",
    "tool_spawn_subagent",
    "tool_task_create",
    "tool_task_update",
    "tool_web_search",
    "tool_write_file",
    "turn",
    "uninstall_cli",
    "worker_init"
  ],
  "_help": [
    {
      "page": "add_observer",
      "title": "Add a tool-call observer to a session",
      "topics": [
        "add_observer"
      ]
    },
    {
      "page": "chat",
      "title": "Start Interactive Chat",
      "topics": [
        "chat"
      ]
    },
    {
      "page": "default_local_model",
      "title": "Detect the preferred local Ollama model",
      "topics": [
        "default_local_model"
      ]
    },
    {
      "page": "install_cli",
      "title": "Install corteza CLI",
      "topics": [
        "install_cli"
      ]
    },
    {
      "page": "matrix_archive_all",
      "title": "Flush all in-memory matrix sessions to the pensar vault",
      "topics": [
        "matrix_archive_all"
      ]
    },
    {
      "page": "matrix_configure",
      "title": "Configure the Matrix channel for this host",
      "topics": [
        "matrix_configure"
      ]
    },
    {
      "page": "matrix_poll",
      "title": "One iteration of sync-and-reply",
      "topics": [
        "matrix_poll"
      ]
    },
    {
      "page": "matrix_request_flush",
      "title": "Ask the running matrix bot to archive sessions to pensar",
      "topics": [
        "matrix_request_flush"
      ]
    },
    {
      "page": "matrix_run",
      "title": "Run the Matrix adapter as a long-poll loop",
      "topics": [
        "matrix_run"
      ]
    },
    {
      "page": "matrix_send",
      "title": "Send a message to a Matrix room",
      "topics": [
        "matrix_send"
      ]
    },
    {
      "page": "mcp_tool_executor",
      "title": "Build a tool executor that routes through an MCP connection",
      "topics": [
        "mcp_tool_executor"
      ]
    },
    {
      "page": "new_session",
      "title": "Create a new turn session",
      "topics": [
        "new_session"
      ]
    },
    {
      "page": "observer_progress",
      "title": "Built-in progress observer that prints to stdout",
      "topics": [
        "observer_progress"
      ]
    },
    {
      "page": "policy",
      "title": "Evaluate policy for a tool call",
      "topics": [
        "policy"
      ]
    },
    {
      "page": "serve",
      "title": "Start MCP Server",
      "topics": [
        "serve"
      ]
    },
    {
      "page": "session_setup",
      "title": "Configure and construct a session for any channel",
      "topics": [
        "session_setup"
      ]
    },
    {
      "page": "skill_install",
      "title": "Install a skill from a path or URL",
      "topics": [
        "skill_install"
      ]
    },
    {
      "page": "skill_list_installed",
      "title": "List installed skills",
      "topics": [
        "skill_list_installed"
      ]
    },
    {
      "page": "skill_remove",
      "title": "Remove an installed skill",
      "topics": [
        "skill_remove"
      ]
    },
    {
      "page": "skill_test",
      "title": "Run skill tests",
      "topics": [
        "skill_test"
      ]
    },
    {
      "page": "subagent_collect",
      "title": "Collect the result of a previously-fired async subagent query.",
      "topics": [
        "subagent_collect"
      ]
    },
    {
      "page": "subagent_kill",
      "title": "Kill a subagent.",
      "topics": [
        "subagent_kill"
      ]
    },
    {
      "page": "subagent_list",
      "title": "List active subagents.",
      "topics": [
        "subagent_list"
      ]
    },
    {
      "page": "subagent_query",
      "title": "Query a subagent.",
      "topics": [
        "subagent_query"
      ]
    },
    {
      "page": "subagent_spawn",
      "title": "Spawn a subagent.",
      "topics": [
        "subagent_spawn"
      ]
    },
    {
      "page": "turn",
      "title": "Run one agent turn",
      "topics": [
        "turn"
      ]
    },
    {
      "page": "uninstall_cli",
      "title": "Uninstall corteza CLI",
      "topics": [
        "uninstall_cli"
      ]
    }
  ],
  "_readme": "https://github.com/cornball-ai/corteza/raw/HEAD/README.md",
  "_rundeps": [
    "callr",
    "codetools",
    "curl",
    "jsonlite",
    "llm.api",
    "otel",
    "printify",
    "processx",
    "ps",
    "R6",
    "saber",
    "tinyoauth"
  ],
  "_vignettes": [
    {
      "source": "configuration.md",
      "filename": "configuration.html",
      "title": "Configuration",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: Configuration",
        "Configuration",
        "Config files",
        "CLI flags",
        "JSON config keys",
        "Core",
        "Context",
        "Safety",
        "Skills",
        "Diagnostics",
        "Rate limiting",
        "Subagents",
        "Workspace",
        "Channels",
        "Matrix",
        "Legacy memory",
        "Slash commands",
        "MCP server",
        "Session tuning",
        "Session parameters",
        "systemd service",
        "Environment variables",
        "R options"
      ],
      "created": "2026-05-24 15:38:09",
      "modified": "2026-05-24 15:38:09",
      "commits": 1
    },
    {
      "source": "package-as-skill.md",
      "filename": "package-as-skill.html",
      "title": "Package as Skill",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: Package as Skill",
        "Package as Skill",
        "Setup",
        "1. Install the package",
        "2. Register it as a skill",
        "Use",
        "What makes a package a good fit",
        "Why no MCP server",
        "Where to go next"
      ],
      "created": "2026-04-25 14:37:27",
      "modified": "2026-05-05 22:10:02",
      "commits": 4
    },
    {
      "source": "retroactive-extraction.md",
      "filename": "retroactive-extraction.html",
      "title": "Retroactive-Extraction Runtime",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: Retroactive-Extraction Runtime",
        "Retroactive-Extraction Runtime",
        "Why",
        "Enabling",
        "How it works",
        "What the LLM sees",
        "Permission model",
        "Recursion",
        "Recovery",
        "Summary styles",
        "Known limitations",
        "Disabling"
      ],
      "created": "2026-05-24 15:38:09",
      "modified": "2026-05-26 15:37:59",
      "commits": 2
    },
    {
      "source": "skills.md",
      "filename": "skills.html",
      "title": "Skills",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: Skills",
        "Skills",
        "Format",
        "Frontmatter",
        "Where skills live",
        "How skills get invoked",
        "R skills",
        "Built-in tools",
        "Authoring a skill",
        "Best practices",
        "Sharing"
      ],
      "created": "2026-05-24 15:38:09",
      "modified": "2026-05-27 03:39:18",
      "commits": 2
    }
  ],
  "_score": 6.9656719712201065,
  "_indexed": true,
  "_nocasepkg": "corteza",
  "_universes": [
    "cornball-ai",
    "troyhernandez"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:54.000Z",
      "distro": "noble",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "cc822781e87944bc902a8088506f5a447e29c97172f015b9b7e76afcfb5f60ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:48.000Z",
      "distro": "noble",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "60b32247543d7b7211a54283650d6c61e10e71292df925c0c65bfac63ab0f1fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:23.000Z",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "5a86fd63fb24ca2e583a54cef7da724947e117758396bd65c3c160bf144975e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:23.000Z",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "34b78b16f7499533f21dfd7ddf3cdd1accd2ebd5cb5a4cb4c0fdea42fda84675",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:50.000Z",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "ddcb344e62fa6fbad0fffd6140abd886274ab3e23f9b1c23eb5eca8b62eb7f35",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:05.000Z",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "2dff4fb97b5c4e840259f502b0abb452464bbaa4b541173fdbdac3f2627e0278",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:39:03.000Z",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "fe28f793991db0b7917f09150bf0fd898e879818f292f1dc9f1f0af2be40193b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6.9.1",
      "date": "2026-06-08T05:38:57.000Z",
      "commit": "0a920a1daf4a3f25de23557b0b6a7645e7030514",
      "fileid": "8b0222f579e6b3e92669d4907638802c2bcecfcd22d8758c10c97586febe72c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/27117907267"
    }
  ]
}