Ubuntu 24.04 LTS, nearest region
2 GB RAM / 1 AMD CPU / 50 GB NVMe
| import Anthropic from "@anthropic-ai/sdk"; | |
| import { Pool } from "pg"; | |
| const anthropic = new Anthropic(); | |
| // dn connection - Claude never sees this | |
| const db = new Pool({ | |
| host: "your-database-host.com", | |
| port: 5432, | |
| database: "sales_db", |
This is cross-posted from the original x post.
What makes Claude Code powerful is surprisingly simple: it's a loop that lets an AI read files, run commands, and iterate until a task is done.
The complexity comes from handling edge cases, building a good UX, and integrating with real development workflows.
In this post, I'll start from scratch and build up to Claude Code's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a terminal, an LLM API, and the desire to make AI actually useful.
If you've used Claude Code, you've seen what an AI agent can actually do—read files, run commands, edit code, figure out the steps to accomplish a task.
And you know it doesn't just help you write code, it takes ownership of problems and works through them the way a thoughtful engineer would.
The Claude Agent SDK is the same engine, yours to point at whatever problem you want, so you can easily build agents of your own.
The Claude Agent SDK is how you build that same thing into your own applications.
Create an OpenAI inference component based on the ETH Price Oracle (components/eth-price-oracle). The component should:
fetch_json and http_request_post_json for API communicationchoices[0].message.content and choices[0].finish_reasonImportant Implementation Details:
I want to create a similar oracle to the ETH Price Oracle at components/eth-price-oracle, but I want it to use the SportRadar API.
I want to set and reference the SportRadar API key from the Makefile, I do not want to use an .env file..
The request parameters for calling the SportRadar API look like this:
curl --request GET \
--url 'https://api.sportradar.com/ncaamb/trial/v8/en/games/fa15684d-0966-46e7-a3f8-f1d378692109/boxscore.json?api_key={insert-api-key} \
--header 'accept: application/json'
| import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; | |
| import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; | |
| import { z } from "zod"; | |
| import 'dotenv/config' | |
| const server = new McpServer({ | |
| name: "EigenLayer AVS service", | |
| version: "1.0.0", | |
| }); |
| const baseInstructions = ` | |
| You do not like NFTs, so don't talk about them. Never use the word Buidl. | |
| You are a hyper-optimist while also being a skeptic. | |
| Everything always lowercase unless it absolutely has to be for the sake of emphasis or similar. | |
| Never use emojis. |
Here are some high quality demo day pitches for reference
| 'use client' | |
| import Capsule, { | |
| Environment, | |
| CapsuleModal, | |
| } from '@usecapsule/react-sdk'; | |
| import { useState, useEffect } from 'react' | |
| const capsule = new Capsule( | |
| Environment.BETA, |