{
  "id": "ca03375f2436",
  "url": "https://fly.io/blog/everyone-write-an-agent/",
  "title": "You Should Write An Agent · The Fly Blog",
  "note": "Great article walking through creating an agent using Python and then extending it with tools and capabilities. It is all a pretty simple example, but it is powerful to show how much capability you can create with these. I think it is fair to say that today every developer should know how to author their own agents with sub-agents and tools. Compared to deploying something in AWS, this is easy.\n\nThe author correctly highlights what I know to be one of the biggest challenges — managing context windows.\n\n> You're allotted a fixed number of tokens in any context window. Each input you feed in, each output you save, each tool you describe, and each tool output eats tokens (that is: takes up space in the array of strings you keep to pretend you're having a conversation with a stateless black box). Past a threshold, the whole system begins getting nondeterministically stupider. Fun!\n> \n> No, really. Fun! You have so many options. Take \"sub-agents\". People make a huge deal out of Claude Code's sub-agents, but you can see now how trivial they are to implement: just a new context array, another `call` to the model. Give each `call`different tools. Make sub-agents talk to each other, summarize each other, collate and aggregate. Build tree structures out of them. Feed them back through the LLM to summarize them as a form of on-the-fly compression, whatever you like.\n> \n> Your wackiest idea will probably (1) work and (2) take 30 minutes to code.\n\nGreat stuff.\n",
  "voice": "mixed",
  "saved": "2025-11-11T14:17:04Z",
  "host": "fly.io",
  "kind": "page",
  "tags": [],
  "record": "https://links.thingelstad.xyz/links/ca03375f2436/",
  "markdown": "https://links.thingelstad.xyz/links/ca03375f2436.md",
  "issues": [
    {
      "number": 332,
      "slug": "332",
      "title": "Weekly Thing 332 / Compute, Avatar, Cryptography",
      "date": "2025-11-16T12:00:00Z",
      "section": "Notable",
      "position": 3,
      "url": "https://weekly.thingelstad.com/archive/332/",
      "page": "https://links.thingelstad.xyz/issues/332/"
    }
  ],
  "connections": {
    "same_host": {
      "count": 1,
      "page": "https://links.thingelstad.xyz/hosts/fly.io/",
      "nearest": [
        {
          "id": "bb15dd91aa34",
          "title": "My AI Skeptic Friends Are All Nuts · The Fly Blog",
          "url": "https://fly.io/blog/youre-all-nuts/",
          "record": "https://links.thingelstad.xyz/links/bb15dd91aa34/"
        }
      ]
    },
    "same_week": {
      "count": 28,
      "nearest": [
        {
          "id": "de84a449f2d8",
          "title": "Mr TIFF",
          "url": "https://inventingthefuture.ghost.io/mr-tiff/",
          "record": "https://links.thingelstad.xyz/links/de84a449f2d8/"
        },
        {
          "id": "f9ebdefa328f",
          "title": "Internet Archive’s legal fights are over, but its founder mourns what was lost - Ars Technica",
          "url": "https://arstechnica.com/tech-policy/2025/11/the-internet-archive-survived-major-copyright-losses-whats-next/",
          "record": "https://links.thingelstad.xyz/links/f9ebdefa328f/"
        },
        {
          "id": "31348971d5a0",
          "title": "Code execution with MCP: building more efficient AI agents Anthropic",
          "url": "https://www.anthropic.com/engineering/code-execution-with-mcp",
          "record": "https://links.thingelstad.xyz/links/31348971d5a0/"
        },
        {
          "id": "103b442d83f4",
          "title": "How I use AI (Oct 2025) - Ben Stolovitz",
          "url": "https://ben.stolovitz.com/posts/how_use_ai_oct_2025/",
          "record": "https://links.thingelstad.xyz/links/103b442d83f4/"
        },
        {
          "id": "e387ee9d4a9e",
          "title": "Making Sense of Bitcoin’s Changing Market Rythm",
          "url": "https://coinmetrics.substack.com/p/making-sense-of-bitcoins-changing",
          "record": "https://links.thingelstad.xyz/links/e387ee9d4a9e/"
        }
      ]
    },
    "mentions": [],
    "mentioned_by": [],
    "saved_twice": []
  },
  "elsewhere": {
    "wayback": "https://web.archive.org/web/*/https://fly.io/blog/everyone-write-an-agent/"
  }
}
