• Taking Building with the Claude API. Notes from today

    • Files API can help handle file uploads, eg. use container upload block to specify file and then Claude can execute code in Docker container. Workflow:
      • Upload your data file (like a CSV) using the Files API
      • Include a container upload block in your message with the file ID
      • Ask Claude to analyze the data
      • Claude writes and executes code to process your file
      • Claude can generate outputs (like plots) that you can download
    • Claude Response
      • Text blocks – Claude’s analysis and explanations
      • Server tool use blocks – The actual code Claude decided to run
      • Code execution tool result blocks – Output from running the code – claude produces some pretty decent visualizations 

     Open Weights and American AI Leadership 

    • “Our AI leadership will be judged not by one frontier AI model, but by whether the United States builds a strong, open ecosystem that diffuses into every sector. This is essential for creating opportunities for innovation and prosperity across the country. It requires expanding access to AI, encouraging competition, robust application layers, and giving Americans greater control over the technology they rely on. Open weight models—AI models that anyone can download, inspect, modify, and run on their own infrastructure—are an important part of that foundation because they make advanced AI more accessible, adaptable, and widely available. “
    • “That discipline is what will make AI economically sustainable as its use scales into the billions of everyday tasks. America wins the AI era by diffusing it into the workflows of factories, hospitals, farms, classrooms, and main street businesses.”
    • “Open weights also give customers greater control. As organizations invest in AI, they want to know that they will not become locked into a single provider or lose the knowledge and capabilities they build over time. Open weight models help provide that assurance by allowing organizations to control their own data, evaluate and adapt models to their own needs, and deploy them wherever their business requirements demand.”
    • “To be sure, open weights carry real and distinct risks. Once released, the weights are beyond the original developer’s control, and modified versions are difficult to trace or reverse. But the right response to this risk is not to prohibit open weights. In a world where cybersecurity attackers use advanced AI, defenders need access to models with comparable capabilities so they can detect, simulate, and respond to emerging threats. Open models broaden defensive capability, increase transparency, and allow vulnerabilities to be discovered and remediated across many teams.”
    • “In fact, openness may be one of the most important paths to AI safety and security. Relying solely on closed models is not inherently safe: they can be breached, misused, or fail in ways that outsiders cannot detect. And concentrating advanced AI capabilities behind a small number of closed models compounds that risk.”
  • Reading If Anyone Builds It, Everyone Dies

    • They make the point AI is more “grown” now than built by people and are unpredictable
      • People don’t exactly know how answers are produced
    • They believe eventually AI will develop wanting or preferences and act on them independently in a way that’s unkind to humans 

    AI on the Edge LESSON 1: Introduction and Class Overview | Technology Tutorials – finished Lesson 1

    • Concerned overuse of ChatGPT removes analytic thinking, creativity, and problem solving and the connections between each because people are not solving hard problems themselves
    • The overall idea is inputs come from sensors, etc. that AI layer acts on, and then something is modified in real world, eg. turn a motor on
      • Inputs to real world -> ai layer -> effect on real world
    • Example of talking to project and having it reply as a simple text to speech
      • Saying color blue and having a blue light turn on 
    • Example of a camera program
      • Read a frame
      • Showing a frame
      • Doing this means you’re showing a movie/live stream
      • Using voice to speech to move camera around with voice, making use of intelligence layer
      • Use a camera to find a pen – tune and train what the object of interest based on the Hue, Saturation – put a box and frame around it, and turn on servos to tracks it 
    • Example of showing servos tracking fingers after decorating frame so you can make your own pong game you play with your finger or showing how camera and identify your hand movements, eg. find hand, recognize hand gestures like live long and prosper 
    • Using facemesh and make an avatar
  • Build Day

    Joy Tracker App

    • Updated the Joy Tracker App so there’s a warning about clearing browser memory since it uses local storage
    • Added Lazy Render and Filter by Time Period functionality 

    Food Recs App

    • Consolidate some maps and used Claude Agent to check for uniques but not have it operate since Claude advised that would be error-prone and potentially slower 
    • Changed some of the wording and styling and added a map for Stockholm and Tallin
    • Did some clean-up on Worker and naming across Cloudflare and Github
    • Modified to incorporate pushing updates in one github push request

  • Taking Building with the Claude API. Notes from today

    • You can enable prompt caching and pass in tools and system prompt 
    • You can add a cache control field to last tool in list
    • You can structure cache system within a system prompt

    AI on the Edge LESSON 1: Introduction and Class Overview | Technology Tutorials | AI on the Edge LESSON 1: Introduction and Class Overview 

    • “Future will be comprised of those driving AI and those destroyed by AI”
    • “If you’re sitting and typing prompts into ChatGPT you will be replaced by ChatGPT” – companies will keep their favorite personalities and everyone is training their replacement to be displaced
    • His thesis is that “AI on the Edge is a Sweet spot for Being an AI Driver” 
    • Views LLMs as a black box and “no one person actually knows what’s going on” 
    • Alternative is AI models running on local hardware you own as a matter of ownership of ideas 
    • Example of how he has local hardware with its own AI layer to create an environmental control system for his greenhouse vs on inputs from real world
    • Side note: Paul McWhorter seems resentful of “AI executives and their ethical guidelines” 
    • Challenge of keeping dependencies working: OS, Python, OpenCV, YOLO, MediaPipe, Numpy, Matplotlib
      • All want to work with a specific version of each other

    Reading If Anyone Builds It, Everyone Dies

    • Authors Yudkowsky and Soares believe that building Artificial General Intelligence/Superhuman Intelligence is possible and AI companies are not being safe about it 
    • Defines unique human capabilities as prediction and steering (making decisions), especially in generalist areas. Artificial Super Human Intelligence as they define it would do these things better than us and lead to humanity’s destruction
  • Taking Building with the Claude API. Notes from today

    • Prompt caching in Claude works by storing the computational work done on your messages so it can be reused in follow-up requests.
      • Requests that used cached consent are cheaper and faster to execute – only useful if you’re repeatedly sending the same content 
    • You can put in textblock with a breakpoint to pass into the cache 
    • Breakpoints and request ordering matter for what is retained in cache
    • Content must be 1024 tokens long to be cached 

    Riffing with a colleague on current AI start-up funding environment

    • “For AI companies, it’s unclear what is the moat” in the context of so many fast evolving changes

  • Adam Mosseri: AI is a tailwind for authenticity  

    • so this idea of product staff so the idea is on these new pods so this is like a new thing you guys are doing so there’s these pod teams product staff engineers and maybe one specialist that’s going deep on say pricing algorithm or something like that
    • the businesses needs and so this is definitely happening another thing is you’ve had people who had good ideas about how to contribute it to other functions but didn’t have the mechanical or technical skills to do so and ai reduces the boundary to do that and then all of a sudden they can 
    • or are you anti-ai it’s like people aren’t binary i said that to the team yesterday and the state of the tools isn’t binary either you know they’re amazing at some things and remarkably bad at others and the people who i think are gonna make the most of it are the ones who are clear-eyed about what ai is good at and what it’s not good at and also have an instinct or a nose for what it will be good at and not good at you know not you know next month or in a couple months from now
    • that there’s so much power and value and people underestimate just the the need for just like a really good curator of of the team’s ideas
    • there’s a i’m not oblivious to the overall paradigm shift and sort of revolution that we’re sitting in but i don’t think we should judge content based on the tool that made it um i think we should judge it based on the content the point of view the person behind the content
    • like i don’t i don’t think we should filter out ai content i think we should let you know if content is ai content or not i think we should let you know more about the person who posted anything so that you can make informed decisions about whether
    • or not to believe or trust them based on you know knowing who they are or where they are or how many times they’ve changed their profile or you know you know if their profile is three days old or three years old but i don’t think we should be making value judgments based on what tool you use
    • the long run people are fundamentally more afraid of things that they don’t understand um and about things where people are more secretive and less accessible
  • Finished the book Deep Medicine | Eric Topol

    • He emphasizes the need and possibility for personal medical assistants/coaches but cautions about how medical data creates many false positives
    • A lot of data systems now are not exposed to patients and trapped within hospital systems and lack interoperability 
    • A lot of the promise of AI combining medical data lacks a precise methodology on how to handle multiple variables 
    • AI should reduce burnout, not make medical more dense and intense, which is what we currently see in organizational scrambles toward AI 
    • He emphasizes how AI should allow doctors to return to a practice of deep empathy versus a computer in the room 
  • 🎙️ How I AI: How the founder of Morning Brew built a Claude content machine that never runs out of ideas

    • AI slop is mostly a people problem, not a model problem.
    • The interview panel is the step most people skip and the one that matters most. The system deploys six interviewer personas (Tim Ferriss, Joe Rogan, Larry King, Howard Stern, Barbara Walters, Michael Barrow) that ask follow-up questions until they’ve extracted enough specifics to write something real.
      • You can build a “council” like this to proof work you’re sending out
    • “Map your current workflow before you touch any AI tool. Alex’s process started with drawing out every step of content creation as it already existed, then rebuilding it from scratch with no constraints. He found that most companies discover huge inefficiencies in this step that have nothing to do with AI at all. AI just forced them to look.”
    • “Your voice lives in a Markdown file, and that file changes everything. Alex’s Content Machine pulls from a personal voice guide that captures his top-performing posts, hook formulas, content structures, and even specific language patterns like “self-deprecating confidence.”
    • “Your employees are your most underleveraged marketing channel, and most companies are actively suppressing them. Alex ran a version of employee content at Storyarb called “Own the Internet,” and it drove 40% of all inbound leads that quarter. At Tenex, he launched the Creator Cup with $5,000 in prizes to make posting feel like a team sport, not a chore. His argument to skeptical CEOs: the fastest way to lose a great employee is to make it impossible for them to build a personal brand.”
  • Why Netflix is betting on systems thinkers—not specialists—in the AI era | Elizabeth Stone (CPTO)  

    • Anytime a new technology comes along, you go through a storming phase before you go through the forming phase of things. We are in the middle of that right now. 
    • I still see a craft excellence that’s really important that I don’t think is going away anytime soon. I still find great engineering to be scarce, great data science to be scarce, great creativity to be scarce.
    • If you look at the early culture deck of Netflix, high agency, autonomy, paying top of market, this is what I hear constantly now from how the top AI labs operate.
    • We need more systems thinkers, people who can look across all the business domains and abstract that to here’s the building blocks we’re going to need.
    • So, there’s something there about the hypothesis generation, prototyping, thinking deeply about problems, that feels like it’s accelerating and that functions are able to do that in a more fluid way. But I still see comparative strengths. So, data scientists are still going to be experts at, can we trust this data? Are we interpreting it the right way?
    • What’s the data versus judgment that we should be applying here? A product manager is still going to be exceptional at saying, have we really framed the what of this, the problem we’re solving in the right way? An engineer still has a craft around the how. How does this scale? What does high quality look like?
    • I still see a craft excellence that’s really important in the disciplines that I don’t think is going away anytime soon, even if there’s fluidity or blurring of the work across the functional lines. It goes back to what I mentioned earlier of you still have humans who have to make sure that what we’re doing makes sense.
    • So, that means that engineering profiles are more distributed systems, more infrastructure, more of that system thinking mindset than a local business expertise. Though, of course, we still have people who are deep in personalization and advertising and content delivery. So, it’s more something additive for us to have that core infrastructure and systems thinking.
    • If I take another example, like design, it’s extremely important that our experienced design team is developing templates and again, systems thinking for what does great user design look like at Netflix, so that they can enable lots of people, including those who are not designers by training, to develop products that are coherent, that fit into the end-to-end member experience.
    • I get really nervous about having different design languages or different types of user interactions and shipping Frankensteins, basically. So, designers need to then be the people we’re hiring again for design systems thinking. How do we think about templates and expression of the brand? And what a good user experience looks like.
    • Small trick. Each problem you’re trying to solve, step out one click to the like, what am I assuming is true about the broader space in solving this problem? So, I was given a task to build some new feature for the Netflix member experience.
    • Let me take one beat and think about, what is the bigger consumer problem we’re trying to solve here? What’s the type of content that this feature is going to be able to support? Do I think that the way I was planning to build this is going to make sense in a way that scales across multiple content types?
    • Or it could be something that’s a capability that then is contributed to a platform set of offerings from multiple areas.
    • Is the consumer problem that I’m solving with this feature going to be one of the most important consumer problems that Netflix is going to need to solve, as we have an expanding world of entertainment and we want to make it more personalized and immersive? Those are all questions that you don’t have to boil the whole ocean.
    • You don’t have to solve for Netflix’s overall strategy and who are we relative to competition. But you take the thing you’re responsible for and you just do one zoom out of the problem you’re solving and question that. I wouldn’t spend too long in the questioning state, because then you’re stuck, then you’re not making forward progress.
    • But I think that helps people to think in terms of systems, and question that, are we solving the right problem in the right way that matters for the end consumer?
    • High agency, autonomy, high talent density, very bottoms-up thinking, super quick experiments and launching, paying top of market. This is what I hear constantly now from how the top AI labs operate.
    • It does feel like we have to be more explicit about the types of people and talent that tend to thrive at Netflix versus other companies, like some of the Frontier Labs. So, people at Netflix have to be passionate about the application of technology and the application or building products to solve a certain set of problems.
    • I might use an agent to help me understand those things, help me detect an anomaly or something that’s broken faster and triage it, but I still need to have a fluency of what is this thing that we’re building and how does it work, so I know if it’s good and I know how to fix it.
    • I don’t know. I hope that doesn’t go away, because that’s like a, how do we make the world a better place through the stuff that we’re building? I think requires some understanding of what we’ve built.
  • Reading the book Deep Medicine | Eric Topol

    • Other possibilities are of course the usual suspects in medical research and finding patterns to suggest working with a researcher
    • There are huge problems with nutritional recommendations as well as variations in how people respond to different diets. If someone can figure out how to look at people’s medical data and find ways to measure nutrition impact on an individual level, it would change the game