<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx" -->

---
title: Tell the Agent to Write Its Scripts in Ruby | daily.dev
description: A practical tip for configuring AI coding agents (Claude Code, Codex) to write throwaway and utility scripts in Ruby instead of Python or bash. The author...
canonical: https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Tell the Agent to Write Its Scripts in Ruby | daily.dev
og:description: A practical tip for configuring AI coding agents (Claude Code, Codex) to write throwaway and utility scripts in Ruby instead of Python or bash. The author...
og:url: https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx
og:image: https://api.daily.dev/og/posts/9GocdYLkX.png
og:image:alt: Tell the Agent to Write Its Scripts in Ruby
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Tell the Agent to Write Its Scripts in Ruby

**[RUBYLAND](https://daily.dev/sources/rubyla)** · 6 min read · 0 upvotes · 0 comments

## Summary

A practical tip for configuring AI coding agents (Claude Code, Codex) to write throwaway and utility scripts in Ruby instead of Python or bash. The author argues that agents should write in the language the developer knows best, so they remain an active reviewer rather than a rubber stamp. Includes a ready-to-paste CLAUDE.md/AGENTS.md instruction block, guidance on setting it globally vs. per-repo, and a small Ruby gem to automate the setup. Also covers Ruby's backtick syntax for shell commands as a bonus.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://allaboutcoding.ghinda.com/write-agent-scripts-in-ruby>

## Similar posts on daily.dev

- [How I use AI agents to write code](https://daily.dev/posts/how-i-use-ai-agents-to-write-code-onvlmqy00) · Read the Tea Leaves · 99 upvotes · 3 comments
- [Enforcing Your Ruby Style Guide on AI-Generated Code](https://daily.dev/posts/enforcing-your-ruby-style-guide-on-ai-generated-code-flixahyod) · thoughbot · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#ruby](https://daily.dev/tags/ruby), [#claude-code](https://daily.dev/tags/claude-code), [#shell](https://daily.dev/tags/shell), [#openai-codex](https://daily.dev/tags/openai-codex)

[View this post on daily.dev](https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Tell the Agent to Write Its Scripts in Ruby","url":"https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx"},"datePublished":"2026-08-04T11:55:38.173Z","dateModified":"2026-08-04T11:55:59.378Z","description":"A practical tip for configuring AI coding agents (Claude Code, Codex) to write throwaway and utility scripts in Ruby instead of Python or bash. The author...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc02fb9c69c587276b1a964339229114?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cc02fb9c69c587276b1a964339229114?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"RUBYLAND","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"RUBYLAND","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rubyla","url":"https://daily.dev/sources/rubyla"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/tell-the-agent-to-write-its-scripts-in-ruby-9gocdylkx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,ruby,claude-code,shell,openai-codex","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"RUBYLAND","item":"https://daily.dev/sources/rubyla"},{"@type":"ListItem","position":3,"name":"Tell the Agent to Write Its Scripts in Ruby"}]}
```

