Skip to main content

How Shaka is built

Shaka is a small set of instructions on top of tested Ruby. Your agent follows the instructions for decisions that need judgment and runs Ruby commands for everything repeatable. Each task's record lives where you already look: the work item and GitHub.

Most of Shaka is Ruby​

Ruby validates settings, filters untrusted comments, collects evidence, and checks merge conditions. Your agent runs these commands and works from their short output; it never needs to read their code. That has three effects:

  • A check behaves the same way on every task, instead of depending on how an agent reads a rule that day.
  • Tests prove each check. The Ruby has about 76,000 lines of tests under test/, which stay out of the installed skill.
  • Your agent spends its tokens on your task, not on reading rules.

Measured in November 2026, the installed skills/shaka directory held:

ContentLinesSize
Ruby (485 files)44,942 (84%)1.74 MB (77%)
Markdown procedures and prompts (52 files)5,942 (11%)0.36 MB (16%)
YAML workflow, settings, and data (5 files)2,311 (4%)0.16 MB (7%)

Your agent reads little of that text, and only when it needs it:

TextWho reads it, and whenWords
SKILL.md and the workflow shaka workflow printsYour agent, at the start of every taskAbout 12,400
42 procedures, such as review and retrospectiveYour agent, each one only when it appliesAbout 51,000 in total
8 reviewer and checkpoint promptsReviewer models, which Ruby sends them toAbout 1,500
Enforcement records, defaults, and model rates (YAML)Ruby onlyAbout 8,500
These guides under docs/People; they are not part of the installed skillAbout 49,000

Words and bytes show size, not tokens; each model counts tokens differently. To check the instruction size yourself, ask your agent:

Run bin/report-instruction-growth in my Shaka checkout and summarize the word counts

Where Shaka keeps facts​

One agent task carries each task to its outcome: usually a reviewed pull request (PR), sometimes a plan or a review only. Shaka keeps no tracking system of its own; each fact lives where people already look for it:

  • The work item holds why the work exists: priority, scope, and dependencies. For a task you start from a description, the PR holds that context.
  • GitHub holds delivery evidence: commits, checks, reviews, and the PR outcome.
  • The agent's chat holds experiments and unpushed work. That context is temporary.

The work item holds why the work exists and GitHub holds delivery evidence; a fresh PR reader reconstructs the task from those two. The agent task is temporary.

Anyone who opens the PR later can tell its owner, blocker, revision, and next step from the work item and GitHub alone. An unfinished PR also carries a short recovery note so someone else can continue the work.