• Taking Building with the Claude API. Notes from today

    • Tool Schema helps Claude understand how to call our tool functions 
    • After you run tool function, you send results black to Claude using a tool result block

    Why is Meta destroying its engineering organization?

    • Turned its crown jewel engineering org and culture into a cost center with the mentality of cost center and surveillance and pushing people into data labeling and performative work -> overuse of AI 
    • AI-generated code with AI-only reviews have caused outages 
    • “AI-generated, AI-reviewed code, and security teams being gutted were together the cause of this beyond-embarrassing incident.”
    • “Before all this happened, Meta was on track to overtake Google as the world’s #1 ads business by the end of the year. But for some reason, Mark Zuckerberg decided that building a coding LLM is more important.”
    • ““I strongly believe there are entire companies right now under heavy “AI psychosis” and it’s impossible to have rational conversations about it with them.”

    Couch to 5K for AI Day 4 How to Catch AI Mistakes 

    • Stacking imperfect checks helps catch AI errors/over confidence and penchant for people pleasing
      • Eg. if I were a world class expert, what context, how should I verify, how confident type questions  
    • Note: Opus is overly verbose though an interesting model to use as a pedagogical tool 
  • (Travel Day)

    Opinion | Dear A.I. Companies: The Doom Trolling Needs to Stop – The New York Times

    • “Like a cat leaving a dead bird at your doorstep, Anthropic catalogs the grim future that its products might produce, shrugs its shoulders and then returns to its furious efforts to make these warnings a reality.” 
    • “They might want to amplify the perceived power of their technology at a time when they’re setting up their initial public offerings. Or they hope their performative reports and somber interviews will help them compete for top engineering talent coming from a Silicon Valley culture that’s steeped in this type of doomerism.” 
    • “Imagine if the Ford Motor Company put out a report saying that it feared its popular F-150 trucks might soon start bursting into flames, but that there was nothing the company could do about it because automotive technology was too inevitable and important to slow down. You’re probably struggling to picture this scenario because no reasonable consumer product company would ever act like this.”
    • “The A.I. companies could start behaving the same way. To do so would require that they stop treating A.I. like some inevitable force that they’re struggling to steward. It’s not. It’s a collection of specific tools that these companies are choosing to design and sell according to specific business plans. Accordingly, they need to talk about their offerings like any other consumer product. This means explaining clearly whom these products are for, justifying their benefits and, critically, taking full responsibility for any harm they might cause. Just because A.I. currently enjoys a high-tech sheen doesn’t make it exceptional with respect to common-sense safety standards.” 
    • “As consumers, we can refuse to play the doom-trolling game.” 
    • ‘“OK, but what benefits am I getting by spending $1,000 a month on tokens?” If they continue to ratchet up the doom, then perhaps it’s time to transform dread into ridicule: The earnest pseudoscience of Anthropic’s white papers already borders on satire.’
  • Taking Building with the Claude API. Notes from today

    • You can pass tools as a kw arg in client.messages.create() or use a ToolUseBlock()

    Couch to 5K for AI Day 3

    • Asking Claude to do research first on a decision (eg. research on what happened when RTO was implemented in real world) will give you starkly different recommendations
      • You need to explicitly ask otherwise it will just give you generalized recommendations

    A frontier without an ecosystem is not stable | sn scratchpad

    • “This is the first time we can create a real cognitive loop between people and digital systems. That is a mind-bender, because it changes how we even conceptualize work inside an enterprise.”
    • “Every company is going to have to build what I think of as human capital and token capital. Human capital comprises the knowledge, judgment, relationships, ingenuity, and pattern recognition of its people, while token capital is the firm’s AI capability it builds and owns.”
    • “Humans will set ambitious goals, connect dots across domains, build relationships, and recognize patterns that matter most. Without human direction, you have compute running in circles.”
    • “In my view, our priority has to be building a frontier ecosystem, not just a frontier model, so value flows broadly across every company, every industry, and every country.” 

    AI Use and Build

    • Had to fix recency and date times on World Cup app again – has problem reconciling different schedule APIs it seems 
    • Put together several lists of resources and places to watch World Cup and build me a schedule of venue options – still had to iterate because of problems listing all games
  • Taking Building with the Claude API. Notes from today

    • Example of importing datetime and creating datetime function as Tool Function
    • You can use JSON schema to define tool use and validation. Best practice is to write 3-4 sentences on what hte tool does, when claude should use it, data it returns, and descriptions for each argument 
    def get_current_datetime(date_format="%Y-%m-%d %H:%M:%S"):
        if not date_format:
            raise ValueError("date_format cannot be empty")
        return datetime.now().strftime(date_format)
    get_current_datetime_schema = {
        "name": "get_current_datetime",
        "description": "Returns the current date and time formatted according to the specified format",
        "input_schema": {
            "type": "object",
            "properties": {
                "date_format": {
                    "type": "string",
                    "description": "A string specifying the format of the returned datetime. Uses Python's strftime format codes.",
                    "default": "%Y-%m-%d %H:%M:%S"
                }
            },
            "required": []
        }
    }

    Finished Competing in the Age of AI: Strategy and Leadership When Algorithms and Networks Run the World by Marco Iansiti | Goodreads

    • Basically what will be attempted to be applied with AI is Moore’s law on all industries 
    • Warnings about concentration of power in companies that people did not elect
    • Organizational leadership and AI factory buildouts requiring breaking silos and a focus on privacy and security – human leadership problems vs technology problems 

    Couch to 5K for AI

    • More details means more quantitative feedback 

  • Reading Competing in the Age of AI: Strategy and Leadership When Algorithms and Networks Run the World by Marco Iansiti | Goodreads

    • Network effects become multiplied
    • As in every book, warnings about inequality and misinformation have been a common prediction long before LLMs

    Your Couch-to-5K for AI – by Hilary Gridley

    Couch to 5K for AI 

    • Asking the AI to set success criteria before it works can improve the quality of the output, eg a prompt like this yields better results than just saying help me write a weekly status update: “I’m a product consultant at AI media company and I send a weekly status update to my CEO every Friday. Before you write anything – what does a CEO actually need from a weekly update? What are they scanning for, what makes them stop reading, and what’s the difference between an update that gets skimmed and one that changes how they think about your team? Be specific.”
      • It can explaining the reasoning for doing something versus just generating tian workslop

    Claude Fable 5 review: what the new Mythos model gets right (and very wrong)

    • Completely new model class with costs to boot: “an engineer’s engineer” 
    • Consumes rate limits and tokens at about 2x the rate of other models
    • “there are specific classifiers in this model for cybersecurity biology chemistry and distillation basically they don’t want anybody doing bad stuff in those categories in particular with this very intelligent model”
    • Bad at one-shot design 
    • “I would hand it hard problems. Of course, not cybersecurity, bio or chemistry problems,
    • but hard technical problems where being extremely detailed matters, long horizon work. I would also hand it vision problems where you really want something to look good or you want it to parse PDFs or other documents. It’s done exceptionally well there. I was actually really surprised.
    • I probably wouldn’t hand it my front end work or I definitely wouldn’t hand it my front end work and I definitely wouldn’t hand it strategy or spec work. I think it overthinks things. I think its prose is nearly imparsable.”
    • Tldr it seems that certain hype probably warranted for some functions but not others
  • Reading Competing in the Age of AI: Strategy and Leadership When Algorithms and Networks Run the World by Marco Iansiti | Goodreads

    • What is stopping many companies now from reaching their potential with AI is a mix of silo structures that existed pre-mass LLM adoption and then the uncertainty now of model + token costs

    Built a custom feed for myself for the World Cup on Claude

    • Key things I wanted from Claude in addition to topline was key storylines for the teams that day, including team features and culture/history 
    • Had to do fixes later with dates and days of week not matching, revealing again AI’s issues with datetime
  • Taking Building with the Claude API. Notes from today

    • Example of Tool Use is asking Claude for extra data from outside world (because it doesn’t have data it wasn’t trained on) 

    Reading Competing in the Age of AI: Strategy and Leadership When Algorithms and Networks Run the World by Marco Iansiti | Goodreads

    • Examples of Ant Financial, Ocado, and Peloton essentially having people decide strategy but using an AI Factory for all delivery 

    AI absolutism is breaking our brains. The apocalyptic future we’re being sold isn’t inevitable | AI (artificial intelligence) | The Guardian

    •  “AI absolutism – a way of seeing AI as a godlike force that will either hasten a golden age of productivity and innovation, or will doom humanity.”
    • “But “there’s so much noise that it’s hard to tell what the domains of applicability are.” Coding is an exception, he said. It’s easier to test an AI model’s coding output because it will clearly work, or it won’t. Many other applications for the tech are much more subjective and therefore less prone to immediate job replacement.”
    • “Is it, in fact, going to destroy all of the jobs?” Naidu asked. “I’m not convinced. Even take software. Software is only about 4 to 6% of GDP. So it’s a lot, but it’s not like the whole economy can be replaced by Claude Code.”
    • “Convincing people that AI will replace human workers in droves is a clever marketing tactic. “
    • “Where I think we have to get to is, there can be alternatives,” said Dash. “What we can imagine is, rather than the ChatGPT killer, a lot of different little AIs from little responsible players.” A few are already quietly cropping up, harkening back to earlier and more optimistic days in the internet’s history, and offering a glimpse of what could be possible if people took AI into their own hands.
    • “And for the industries and jobs that AI is upending, upheaval may open the way for a resurgence in worker power as white-collar workers begin to see the appeal of solidarity, whether with colleagues in their office or workers in the blue-collar world.”

    The Beginner’s Electronics Roadmap (Projects Included) – on the road to Physical AI 

    • Walked away with kit idea to combine raspberry pi 5 and sunfounder kit to deploy an AI project on edge
  • Taking Building with the Claude API. Notes from today

    • Example prompt improvement: “Extract key topics mentioned from a passage of text from a scholarly journal into a JSON array of strings” vs “What topics are in here” 
    • Put in a series of steps eg.
      • 1. Closely examine the provided text 
      • 2. Identity each topic mentioned
      • 3. Add each topic to a JSON array
      • 4. Respond with the JSON array. Do not provide any other text or commentary 

    The Beginner’s Electronics Roadmap (Projects Included) – on the road to Physical AI 

    • Microprocessor choice is about C++ (Arduino) vs Python (Raspberry Pi) 
    • Thonny IDE works well with MicroPython and less heavy than using VSCode
  • Travel App Build Continued

    • Underwhelmed with the first Hello World and realize my need to keep my own visits and lists separate and owned is different from providing recommendations to others. Any regular person is going to need Google or Apple maps to get around. 
    • Iterated and will split project into a my maps portal on my own website and build a personal database of memories for me 

    Taking Building with the Claude API. Notes from today

    • Wrap different pieces of content in different XML helps provide delimiters as context for Claude eg. <my_code> code to debug </mycode> <docs>code represents documentation </docs> 
    • xml tags are good for multi-shot prompt examples, eg use <sample_input> and <ideal_output>, eg. giving examples of sarcasm, especially good for corner cases or when a complex output format is needed 

    Head of Growth (Anthropic): “Claude is growing itself at this point” | Amol Avasare

    • Story of cold start problem in AI to getting gang busters growth at Anthrophic
    • “I think that many of the same things, same old trends in growth and activation remain, I think, accurate where to me it’s like ultimately some of the highest leverages from finding the right product or the right feature for the right user.”
    • “And so I think that the interesting thing about Mercury is the core value is that it’s a better experience. That’s the reason you use it. You’re not getting better other things, just it’s a better product experience. And so that ethos is very, very deeply held within the company. It comes from a number of the founders.”
    • “But if you can help users understand a product, why product is for them and how to use it and what’s most relevant to them, and it’s going to add friction, don’t shy away from it. Test it, confirm that it works for you, but I think this is something that most growth practitioners deeply understand.”
    • “I think if your core product value is very backed by AI, then it is shifting where you’re skewing more towards larger bets as opposed to smaller, medium experiments.”
    • “I think that smaller companies, if I’m at a 15 or 20-person company, I’m the only PM there working with some designers and engineers, I think in the smaller companies, you’ll see probably the biggest blend, where the PM will be doing all sorts of … They’ll be designing, shipping, et cetera, and I think you just have extreme bifurcation.” 
    • “I think zooming out though, Lenny, one of the biggest mistakes I feel like I see growth teams make, and particularly just hardcore growth practitioners, is just trying to squeeze every last dollar. I think this is like a general principle also in life. If you’re a founder raising money, you’re just trying to squeeze that last dollar.
    • You don’t want to do that because you want people to come back next time as well, is my view. And I think in growth, I think it’s really important that you just need to be okay leaving money on the table.
    • And that’s a core principle for us as a growth team, where we are very comfortable for going metric impact in order to prioritize safety, in order to protect our brand, in order to hold a high quality bar and to maintain a great user experience.”

    Reading Competing in the Age of AI: Strategy and Leadership When Algorithms and Networks Run the World by Marco Iansiti | Goodreads

    • Interesting this book is pre-ChatGPT mainstream. Names Moderna covid vaccine development as an example of AI Factory
  • Build Day 

    • Used Claude to write me easy CLI commands to rename and normalize files
    • Built a parser for kml files from Google Mymaps, csv with locations I saved traveling, and instagram
      • Had to refine a few times since country parsing was too naive 
    • Built a schema
      • Had to rewrite to use Cloudflare instead of Supabase since I’m already a Cloudflare customer
    • Claude guided me to install wrangler etc to build out database 
    • Had to do a few back and forth batches and make changes to PRD 
    • Struggled a bit building out and exporting info from Instagram, had it game out a few scenarios
    • Had to debug a few times due to npm dependencies which claude was able to do, but wish it could have anticipated 
    • More time consumed debugging and env wrangling than in actually building – pushing toward limits of vibe coding 
    • I think to get to this point of hello world took 5+ real hours of back and forth and wrangling, and lot more to go 

    Screenshot
    Screenshot
    Screenshot