Learn by doing.
Code & Infrastructure.

Between infrastructure and code, I keep notes on what I learn and try.

  • Cloud / Infrastructure / Automation focused
  • Small experiments and lessons learned
  • Hope this helps someone

# Today's Log

Real-time Edit Reflection and Diff Display with Emacs

resource "aws_s3_bucket" "example" {
  bucket = "hiroe-tech-notes"
  acl    = "private"
  tags = {
    Name = "hiroe-tech-notes-bucket"
  }
}

# Memo: Enable versioning too
# → Continues in articles...

Continue to articles →
Trying OpenCode with Docker Sandboxes AI OpenCode Attended the 2026 Shimane Open Source Conference OpenSource WebMCP Trying Out OpenCode's Skills OpenCode AIAgent
View all articles →

Latest Posts Recently published articles

Real-time Edit Reflection and Diff Display with Emacs

4ca4d3d8-9cd0-43f8-973f-4202eb30f07f

Trying to implement real-time editing and diff display with Emacs, using WezTerm for screen splitting and CUI environment for agent commands.

#AI Development ◷ 60min

Connecting OpenCode with Cloudflare to Access from Outside for Progress Checks and Instructions

d1b8426e-1ad5-4d22-a05a-e42008e26d99

Making the home PC accessible from outside securely with OpenCode and Cloudflare, enabling progress checks and instructions.

#OpenCode ◷ 210min

Trying Out Muse Spark 1.3 on OpenCode

ChatGPT Image 2026年9月6日 18_02_20

Muse Spark 1.3 is cheap and high-performance but requires privacy considerations.

#Infrastructure ◷ 75min

ChatGPT's Container Told Me Various Things

IMG_7117

Confirmed ChatGPT's sandbox environment and Docker existence through command execution. Verified its authenticity through hash checks.

#ChatGPT ◷ 30min

Enable Ruby in Docker Sandboxes

$ sbx ls

To install Ruby in Docker Sandboxes, install libraries with rbenv and set environment variables.

#Infrastructure ◷ 45min

Starting Docker Sandboxes with Specified Memory and CPU

$ sbx run opencode -m 20g -cpus 10

When running AI tools with Docker Sandboxes, you can specify CPU and memory. Default is 50% of host memory and all CPUs. Example: 'sbx run ... -m 20g -cpus 10'.

#Infrastructure ◷ 30min

Trying OpenCode with Docker Sandboxes

curl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh
sudo apt-get install docker-sbx

Tried OpenCode with Docker Sandboxes. Needed network permissions and troubleshooting to confirm operation.

#AI ◷ 105min

The Problem of OpenCode Skills Not Invoking Sub-agents

Screenshot 2026-07-26 221429

Solved the sub-agent automatic call issue with manual specification, improving implementation efficiency and cost reduction.

#AI Development ◷ 75min

Enabling AI Agents to Develop While Confirming Browser Displays in a WSL + OpenCode Environment

npx playwright install chromium

Enable AI agents to confirm browser displays in WSL and OpenCode environments. Automate UI verification using Playwright's headless browser.

#OpenCode ◷ 120min

How to Define Sub-agents in Codex and Assign Roles to Get Work Done

ChatGPT Image 2026年7月20日 12_44_15

This article explains how to define sub-agents in Codex and assign roles. It covers setting up agents for bug fixes and security reviews, model selection, and git management considerations.

#AI ◷ 75min

Trying Out Resend's Free Email Sending Service

require "resend"

Resend.api_key = "re_xxxxxxxxx"

params = {
  "from": "[email protected]",
  "to": "[email protected]",
  "subject": "Hello World",
  "html": "<strong>it works!</strong>"
}

sent = Resend::Emails.send(params)
puts sent

Resend's free email service is easy to use with HTTP API and official libraries. Simplifies email sending in cloud environments. Suitable for personal use with free quotas.

#ruby ◷ 90min

Startup IT Infrastructure: Precisely Cloudflare + Akamai Cloud

ChatGPT Image 2026年7月14日 00_22_34

Startup IT Infrastructure: Cloudflare + Akamai for cost-effective Rails + PostgreSQL setup. Ensuring scalability for under 10,000 yen monthly.

#Akamai ◷ 105min

Attended the 2026 Shimane Open Source Conference

Web Evolution in the AI Agent Era

The web in the AI era is evolving toward agent computing. MCP and Generative UI drive protocol changes, with WebMCP and local AI becoming crucial.

#OpenSource ◷ 150min

Trying to Code with GPT-5.6

Screenshot 2026-07-11 003021

Implemented a blog translation feature with GPT-5.6 Sol. Slower than DeepSeekV4 but faster than 5.5, implemented with Cloudflare and Rails.

#GTP ◷ 60min

Completed Upgrading to Ruby 4.0.5 Using OpenCode Skills

Screenshot 2026-07-08 155747

Completed upgrading from Ruby 3.4 to 4.0.5 using OpenCode skills in 10 minutes. Automated the process from research to testing, and created a Rails skill as well.

#Ruby On Rails ◷ 45min

Minimum Server Configuration for a Personal Blog (This Blog's Configuration)

personalservers

The minimum server configuration for a personal blog costs ¥916/month using ConoHa VPS and Cloudflare. Development tools cost ¥4600/month, with AI usage being the main expense. Cost verification for stable operations.

#OpenCode ◷ 60min

Trying Out OpenCode's Skills

Project Settings: .opencode/skills/<name>/SKILL.md
Project Claude Compatibility: .claude/skills/<name>/SKILL.md
Project Agent Compatibility: .agents/skills/<name>/SKILL.md

Utilize OpenCode's skills by saving SKILL.md in project or home directories. Describe name and description in YAML to enable automatic security checks before git commit. Easy to adjust rules in Japanese.

#OpenCode ◷ 75min

Trying Out OpenCode Go

Screenshot 2026-07-05 002536

Switching from Codex to OpenCode Go, currently testing multiple models with a $10 monthly plan. Planning to switch between GLM-5.2 and DeepSeek V4 Flash based on difficulty.

#Codex ◷ 45min

How Cloudflare's DNS Protects Servers from Cyber Attacks

proxy_disable

Cloudflare's DNS protects servers by hiding the origin server's IP address and relaying traffic through edge locations via the proxy function to block cyber attacks.

#Cloudflare ◷ 75min

Kamal, a Ruby Deployment Tool, is Very Convenient

$ ./bin/kamal setup

Kamal is a deployment tool for Ruby on Rails that automates Docker image generation and server deployment, suitable for small-scale systems.

#Ruby On Rails ◷ 60min

Added AI Features to This Blog Application

export CLOUDFLARE_ACCOUNT_ID="..."
export CLOUDFLARE_AI_API_TOKEN="..."

Added AI features to the blog application to automatically generate slugs and summaries. Using Qwen3 via Cloudflare Workers AI, the data remains on Cloudflare.

#AI Development ◷ 75min
View all articles →