<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: ryanthedev</title><link>https://news.ycombinator.com/user?id=ryanthedev</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Mon, 20 Apr 2026 13:13:48 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=ryanthedev" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Claude Code Open Source?]]></title><description><![CDATA[
<p>Today I learned that they ship the entire CLI with the agent SDK. It's all there...<p>Do we think this was a mistake? 
----<p>node_modules/@anthropic-ai/claude-agent-sdk/cli.js.<p><pre><code>  It's the bundled, minified CLI binary for Claude Code itself (the tool you're talking to right now).

  Key details:
  - Version: 2.1.71, built on 2026-03-06
  - ~13,800 lines of heavily minified/bundled JavaScript
  - Shebang: #!/usr/bin/env node — it's meant to be run as a CLI executable
  - Copyright: Anthropic PBC, with a cheeky note: "Want to see the unminified source? We're hiring!"
  - What it contains: The entire Claude Code CLI application bundled into a single file, including:
    - Onboarding/setup screens
    - Policy/managed settings loading
    - Debugging/inspector detection
    - UI rendering (using Ink/React for terminal UI)
    - Prefetching logic
    - Error handling and exit codes
    - The main entry point (main function) that starts the interactive Claude Code session

  Essentially, when you run claude in your terminal, this is the file that executes. The @anthropic-ai/claude-agent-sdk package ships it so you can
  programmatically invoke Claude Code's capabilities — the SDK wraps this CLI as its underlying engine.
</code></pre>
---
 Yes, the agent loop is in there. Here's what I can see from the minified code:<p><pre><code>  1. i6z function — This is the in-process agent runner, which logs "Starting agent loop for ${agentId}". It sets up agent identity (agentId,
  parentSessionId, agentName, teamName, color, planMode) and runs the loop.
  2. l6z function — A poll loop for in-process teammate agents. It continuously checks for:
    - Pending user messages
    - Mailbox messages from other agents
    - Shutdown requests
    - New tasks from the task list
  3. Main loop model orchestration — There's extensive logic around mainLoopModel that handles:
    - Model selection based on permission mode (plan mode uses Opus, etc.)
    - System prompt assembly (tools, MCP instructions, skills, memory, changed files)
    - Token usage tracking and budget management
    - Compaction (context window management when conversations get long)
  4. Multi-agent coordination — The loop supports a team-based agent architecture with messaging between agents (agentName, teamName, teamLead, mailboxes,
  shutdown requests).

  So yes — the full agentic loop (prompt → LLM call → tool execution → repeat) is bundled in this file, just heavily minified. It's the same loop powering
  this conversation right now.</code></pre>
---
Full system prompts are right there in the bundle as plain text strings. Here's what's embedded:<p><pre><code>  Three identity variants:

  - F78 — CLI mode: "You are Claude Code, Anthropic's official CLI for Claude."
  - EtA — SDK mode: "You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK."
  - LtA — Agent mode: "You are a Claude agent, built on Anthropic's Claude Agent SDK."

  Full system prompt sections (line ~6213-6217):

  The ULz function assembles the complete system prompt, including all the sections you'd recognize:

  - "# Doing tasks" — instructions about software engineering, not proposing changes to unread code, avoiding over-engineering, OWASP security, etc.
  - Over-engineering rules — "Don't add features beyond what was asked", "Don't add error handling for scenarios that can't happen", "Don't create helpers
  for one-time operations"
  - Help/feedback info — links to GitHub issues
  - Tool usage instructions — Read vs cat, Edit vs sed, etc.

  Output style variants (line ~6517):

  Built-in output styles like Explanatory and Learning with their own prompt overlays.

  Also present:

  - The classifier/safety prompt (~line 2844) for security-relevant harm prevention
  - Subagent instructions like "You ARE the fork. Do NOT spawn sub-agents"
  - Git commit/PR workflow prompts
  - Memory system instructions</code></pre></p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47285571">https://news.ycombinator.com/item?id=47285571</a></p>
<p>Points: 1</p>
<p># Comments: 1</p>
]]></description><pubDate>Sat, 07 Mar 2026 08:06:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=47285571</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=47285571</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47285571</guid></item><item><title><![CDATA[New comment by ryanthedev in "Agentic Engineering Patterns"]]></title><description><![CDATA[
<p>Ahh, I tend to find software based engineering skills and workflows as the agentic engineering patterns.<p>I distilled multiple software books into these flows and skills. With more books to come.<p>Here is an example 
<a href="https://github.com/ryanthedev/code-foundations" rel="nofollow">https://github.com/ryanthedev/code-foundations</a></p>
]]></description><pubDate>Wed, 04 Mar 2026 13:08:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=47246901</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=47246901</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47246901</guid></item><item><title><![CDATA[New comment by ryanthedev in "Agentic Engineering Patterns"]]></title><description><![CDATA[
<p>You haven’t heard of spec driven development?!? Haha.</p>
]]></description><pubDate>Wed, 04 Mar 2026 13:07:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=47246881</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=47246881</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47246881</guid></item><item><title><![CDATA[New comment by ryanthedev in "When does MCP make sense vs CLI?"]]></title><description><![CDATA[
<p>CLIs are dead. Long live the skill. Which is a wrapper around the CLI! Haha.</p>
]]></description><pubDate>Mon, 02 Mar 2026 01:28:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=47212779</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=47212779</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47212779</guid></item><item><title><![CDATA[New comment by ryanthedev in "SkillsBench: Benchmarking how well agent skills work across diverse tasks"]]></title><description><![CDATA[
<p>Love the article and happy to have a framework but I don’t think those are good SWE skills.<p>I imagine some more like. 
<a href="https://github.com/ryanthedev/code-foundations" rel="nofollow">https://github.com/ryanthedev/code-foundations</a><p>Based of an actual software book.</p>
]]></description><pubDate>Tue, 17 Feb 2026 00:45:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=47042278</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=47042278</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47042278</guid></item><item><title><![CDATA[New comment by ryanthedev in "How to effectively write quality code with AI"]]></title><description><![CDATA[
<p>I created my own Claude skill to enforce this and be sure it weaves in all the best practices we learned.<p><a href="https://github.com/ryanthedev/code-foundations" rel="nofollow">https://github.com/ryanthedev/code-foundations</a><p>I’m currently working on a checklist and profile based code review system.</p>
]]></description><pubDate>Sat, 07 Feb 2026 01:34:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=46920416</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46920416</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46920416</guid></item><item><title><![CDATA[New comment by ryanthedev in "AI Skills Marketplace: A New Digital Economy?"]]></title><description><![CDATA[
<p>Skills? Money?</p>
]]></description><pubDate>Sun, 11 Jan 2026 16:05:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=46576884</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46576884</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46576884</guid></item><item><title><![CDATA[AI Skills Marketplace: A New Digital Economy?]]></title><description><![CDATA[
<p>Article URL: <a href="https://vibeandscribe.xyz/posts/2026-01-11-skills-marketplace.html">https://vibeandscribe.xyz/posts/2026-01-11-skills-marketplace.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=46575830">https://news.ycombinator.com/item?id=46575830</a></p>
<p>Points: 1</p>
<p># Comments: 1</p>
]]></description><pubDate>Sun, 11 Jan 2026 13:59:11 +0000</pubDate><link>https://vibeandscribe.xyz/posts/2026-01-11-skills-marketplace.html</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46575830</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46575830</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>doh! I messed up. Thank you</p>
]]></description><pubDate>Wed, 07 Jan 2026 23:30:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=46534770</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46534770</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46534770</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>turtle, turtle...<p>It's really going to be interesting to see how this tech evolves.</p>
]]></description><pubDate>Wed, 07 Jan 2026 22:49:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=46534332</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46534332</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46534332</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>FUCKING AI HAHAHA, thank you! fixed.</p>
]]></description><pubDate>Wed, 07 Jan 2026 22:46:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=46534288</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46534288</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46534288</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>ohhh! I'm gonna have to try that out. Thankfully everybody is still playing nice hahah!</p>
]]></description><pubDate>Wed, 07 Jan 2026 22:45:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=46534278</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46534278</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46534278</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>Ahhhh. I see now.<p>Now that you mention it, i can see a future where claude may offer a "skills" feature and codex offers a "talent" feature. where they are essentially the same things, but specific to that vendor.<p>reminds me how each cloud has the same offerings but different products.</p>
]]></description><pubDate>Wed, 07 Jan 2026 22:14:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=46533871</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46533871</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46533871</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>1000000% agree. That's a problem I'm working on right now. I did learn about hooks, which is a way to constantly remind it. But that's too generic.<p>At some point I plan to do some ralph wiggum loop stuff maybe to hash out the best way for triggers to work.</p>
]]></description><pubDate>Wed, 07 Jan 2026 21:57:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=46533619</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46533619</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46533619</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>i see it as skills being logical grouping of a set of prompts, which achieve a goal. Like my optimize-critical-path skill.<p>It's more than a single prompt, but less than an entire agent. I find skills to be the tools you use on the fly. Like how I might have a wrench,screw-driver, hammer in my tool box.<p>tools vs skills is all about context efficiency from what I see. and yes, this isn't novel of claude. but they are the first to offer this abstraction.</p>
]]></description><pubDate>Wed, 07 Jan 2026 21:50:51 +0000</pubDate><link>https://news.ycombinator.com/item?id=46533519</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46533519</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46533519</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>No need to be sorry! That's why I posted this.<p>That's what I have been doing as I'm building these skills out. There is a really fun testing/tdd loop that runs these skills through multiple prompts with baselines and tests it all out.</p>
]]></description><pubDate>Wed, 07 Jan 2026 21:39:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=46533326</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46533326</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46533326</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>If you come across any other skills that could be fun to combine, lmk!</p>
]]></description><pubDate>Wed, 07 Jan 2026 21:19:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=46533009</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46533009</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46533009</guid></item><item><title><![CDATA[New comment by ryanthedev in "Claude Code Emergent Behavior: When Skills Combine"]]></title><description><![CDATA[
<p>you're not wrong. my goal was for more playful.</p>
]]></description><pubDate>Wed, 07 Jan 2026 20:23:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=46532026</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46532026</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46532026</guid></item><item><title><![CDATA[Claude Code Emergent Behavior: When Skills Combine]]></title><description><![CDATA[
<p>Article URL: <a href="https://vibeandscribe.xyz/posts/2025-01-07-emergent-behavior.html">https://vibeandscribe.xyz/posts/2025-01-07-emergent-behavior.html</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=46531794">https://news.ycombinator.com/item?id=46531794</a></p>
<p>Points: 92</p>
<p># Comments: 33</p>
]]></description><pubDate>Wed, 07 Jan 2026 20:06:53 +0000</pubDate><link>https://vibeandscribe.xyz/posts/2025-01-07-emergent-behavior.html</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46531794</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46531794</guid></item><item><title><![CDATA[New comment by ryanthedev in "Show HN: Stop Claude Code from forgetting everything"]]></title><description><![CDATA[
<p>I agree.  Plan files and I use git for my work logs. Have been successful.</p>
]]></description><pubDate>Tue, 30 Dec 2025 13:51:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=46433321</link><dc:creator>ryanthedev</dc:creator><comments>https://news.ycombinator.com/item?id=46433321</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46433321</guid></item></channel></rss>