🐦 Twitter Post Details

Viewing enriched Twitter post

@llama_index

How much can good documentation save an AI agent in cost and time? Turns out, a lot. We built a custom skill that teaches Claude how to parse PDFs more efficiently, then used real usage traces to find where it was wasting time and money (re-reading the same file over and over, taking unnecessary "screenshots" of pages, etc.) After a few rounds of fixes based on what we observed, the results vs. just having Claude read PDFs the default way: β†’ 37% lower cost per question β†’ Better answer quality across the board β†’ Fewer wasted steps The big takeaway: look at what an agent actually leaves in its traces, and fix bottlenecks from there. Full case study πŸ‘‰οΈ https://t.co/n3MNIlQvhm Benchmark code πŸ‘‰οΈ https://t.co/qReW2KZwm5

Media 1

πŸ“Š Media Metadata

{
  "media": [
    {
      "type": "photo",
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2066915713562927581/media_0.jpg",
      "filename": "media_0.jpg"
    }
  ],
  "processed_at": "2026-06-16T16:16:14.125097",
  "pipeline_version": "2.0"
}

πŸ”§ Raw API Response

{
  "type": "tweet",
  "id": "2066915713562927581",
  "url": "https://x.com/llama_index/status/2066915713562927581",
  "twitterUrl": "https://twitter.com/llama_index/status/2066915713562927581",
  "text": "How much can good documentation save an AI agent in cost and time? Turns out, a lot.\n\nWe built a custom skill that teaches Claude how to parse PDFs more efficiently, then used real usage traces to find where it was wasting time and money (re-reading the same file over and over, taking unnecessary \"screenshots\" of pages, etc.)\n\nAfter a few rounds of fixes based on what we observed, the results vs. just having Claude read PDFs the default way:\nβ†’ 37% lower cost per question\nβ†’ Better answer quality across the board\nβ†’ Fewer wasted steps\n\nThe big takeaway: look at what an agent actually leaves in its traces, and fix bottlenecks from there.\n\nFull case study πŸ‘‰οΈ https://t.co/n3MNIlQvhm\nBenchmark code πŸ‘‰οΈ https://t.co/qReW2KZwm5",
  "source": "Twitter for iPhone",
  "retweetCount": 2,
  "replyCount": 2,
  "likeCount": 4,
  "quoteCount": 0,
  "viewCount": 207,
  "createdAt": "Tue Jun 16 16:08:02 +0000 2026",
  "lang": "en",
  "bookmarkCount": 2,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "2066915713562927581",
  "displayTextRange": [
    0,
    278
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "llama_index",
    "url": "https://x.com/llama_index",
    "twitterUrl": "https://twitter.com/llama_index",
    "id": "1604278358296055808",
    "name": "LlamaIndex πŸ¦™",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": "Business",
    "profilePicture": "https://pbs.twimg.com/profile_images/1967920417760251904/0ytfduMQ_normal.png",
    "coverPicture": "https://pbs.twimg.com/profile_banners/1604278358296055808/1776721175",
    "description": "",
    "location": "",
    "followers": 116064,
    "following": 32,
    "status": "",
    "canDm": false,
    "canMediaTag": true,
    "createdAt": "Sun Dec 18 00:52:44 +0000 2022",
    "entities": {
      "description": {
        "urls": []
      },
      "url": {}
    },
    "fastFollowersCount": 0,
    "favouritesCount": 1571,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 1903,
    "statusesCount": 3907,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [],
    "profile_bio": {
      "description": "The world's best AI Document OCR\n\nLlamaParse: https://t.co/yQGTiRSfFL\nDocs: https://t.co/us6GCS14vD",
      "entities": {
        "description": {
          "urls": [
            {
              "display_url": "cloud.llamaindex.ai",
              "expanded_url": "https://cloud.llamaindex.ai/",
              "indices": [
                46,
                69
              ],
              "url": "https://t.co/yQGTiRSfFL"
            },
            {
              "display_url": "developers.llamaindex.ai/python/cloud/",
              "expanded_url": "https://developers.llamaindex.ai/python/cloud/",
              "indices": [
                76,
                99
              ],
              "url": "https://t.co/us6GCS14vD"
            }
          ]
        },
        "url": {
          "urls": [
            {
              "display_url": "llamaindex.ai",
              "expanded_url": "https://www.llamaindex.ai/",
              "indices": [
                0,
                23
              ],
              "url": "https://t.co/epzefqPT9Z"
            }
          ]
        }
      }
    },
    "isAutomated": false,
    "automatedBy": null
  },
  "extendedEntities": {
    "media": [
      {
        "display_url": "pic.twitter.com/AyqHmTKlCR",
        "expanded_url": "https://twitter.com/llama_index/status/2066915713562927581/photo/1",
        "ext_master_playlist_only": [],
        "ext_media_availability": {
          "status": "Available"
        },
        "ext_playlists": [],
        "features": {
          "large": {
            "faces": [
              {
                "h": 199,
                "w": 199,
                "x": 423,
                "y": 499
              }
            ]
          },
          "orig": {
            "faces": [
              {
                "h": 234,
                "w": 234,
                "x": 496,
                "y": 585
              }
            ]
          }
        },
        "id_str": "2066915710048051200",
        "indices": [
          279,
          302
        ],
        "media_key": "3_2066915710048051200",
        "media_results": {
          "id": "QXBpTWVkaWFSZXN1bHRzOgwAAQoAARyvKOMmFqAACgACHK8o4/eXYd0AAA==",
          "result": {
            "__typename": "ApiMedia",
            "id": "QXBpTWVkaWE6DAABCgABHK8o4yYWoAAKAAIcryjj95dh3QAA",
            "media_key": "3_2066915710048051200"
          }
        },
        "media_url_https": "https://pbs.twimg.com/media/HK8o4yYWoAA7xzQ.jpg",
        "original_info": {
          "focus_rects": [
            {
              "h": 1344,
              "w": 2400,
              "x": 0,
              "y": 0
            },
            {
              "h": 1352,
              "w": 1352,
              "x": 0,
              "y": 0
            },
            {
              "h": 1352,
              "w": 1186,
              "x": 67,
              "y": 0
            },
            {
              "h": 1352,
              "w": 676,
              "x": 322,
              "y": 0
            },
            {
              "h": 1352,
              "w": 2400,
              "x": 0,
              "y": 0
            }
          ],
          "height": 1352,
          "width": 2400
        },
        "sizes": {
          "large": {
            "h": 1154,
            "w": 2048
          }
        },
        "type": "photo",
        "url": "https://t.co/AyqHmTKlCR"
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {
    "hashtags": [],
    "symbols": [],
    "urls": [
      {
        "display_url": "llamaindex.ai/blog/building-…",
        "expanded_url": "https://www.llamaindex.ai/blog/building-a-better-liteparse-skill-with-evals?utm_medium=socials&utm_source=twitter&utm_campaign=2026--",
        "indices": [
          662,
          685
        ],
        "url": "https://t.co/n3MNIlQvhm"
      },
      {
        "display_url": "github.com/run-llama/benc…",
        "expanded_url": "https://github.com/run-llama/benchmark-claude-pdfs",
        "indices": [
          704,
          727
        ],
        "url": "https://t.co/qReW2KZwm5"
      }
    ],
    "user_mentions": []
  },
  "quoted_tweet": null,
  "retweeted_tweet": null,
  "isLimitedReply": false,
  "communityInfo": null,
  "article": null
}