Skip to main content

Content about #Ruby

AotokitsuruyaAotokitsuruya

Kobako: Cold Start Can Be 100× Faster?

Kobako is a sandbox I recently built on WebAssembly and mruby for the Ruby ecosystem, in support of Harness Engineering, to fill the gap where AI-written code has no safe environment to run in.

I already introduced Kobako’s design in a previous post, so this time I want to talk about performance. In its early versions, the Cold Start (the initial startup) took roughly 500 ms. That’s a lot slower than the 200 ms response time you’d usually aim for as a best practice. Even though AI generally tolerates slower responses, this isn’t about waiting on an LLM, so it still deserves to be judged by traditional API standards.

AotokitsuruyaAotokitsuruya

Kobako: How Much Protection Can Tests Provide with a Coding Agent?

Developing Kobako has surfaced quite a few interesting cases. Continuing from the previous post, Building Kobako with AI: Will It Eventually Crash?, I ran into yet another new problem afterward—and this time it was the Segmentation Fault error I had always dreaded seeing during development. That signals a high chance something went wrong in the non-Ruby territory between Rust and WebAssembly.

AotokitsuruyaAotokitsuruya

Building Kobako with AI: Will It Eventually Crash?

Last week I published Kobako: Letting Agents Safely Operate Rails, introducing the goals of the Kobako gem. Since then I’ve kept pushing development forward with Claude Code—but I quickly ran into a situation that demanded major changes. Is this simply the fate of developing with AI?

This is a question worth discussing: when using AI to assist development, is the problem that AI isn’t capable enough, or that the design we humans handed it was too poor?

AotokitsuruyaAotokitsuruya

The Potential of Ruby's ri Command for Coding Agents

Recently, the Hono framework launched the Hono CLI tool, and I quickly created a Hono Plugin for Claude Code, adding Agent Skill support for querying documentation using Hono CLI.

At the same time, I realized that the ri (Ruby Information) command, which I rarely use, provides similar capabilities to the Hono CLI. Therefore, I created the Ruby Plugin ahead of schedule to provide the ri skill.

AotokitsuruyaAotokitsuruya

Deep into Magnus to Write Rust Extension for Ruby

Recently, due to work-related reasons, I took a moment to revisit Open Policy Agent and discovered that the Cedar Language introduced by AWS is more suitable for implementing a policy mechanism similar to AWS IAM in software applications. Since it is built on Rust, I decided to try writing an extension in Rust so that it can be utilized in Ruby.