• Team Treehouse AI for Programmers Track 

    • Two types of AI
      • Narrow: specific set of tasks like image recognition. ChatGPT uses NLP to reply in a way that sounds human
      • General: machines that can do any intellectual ask a human can, still in research
    • LLMs like ChatGPT are powerful because they understand context
    • AI helps developers with blazing fast debugging but this doesn’t remove understanding needed from a developer 

    Taking Building with the Claude API. Notes from today

    • Using Haiku as a quick way to generate dataset for prompt evaluation 
    • Run initial eval with a core evaluation pipeline

    Why experts writing AI evals is creating the fastest-growing companies in history | Brendan Foody (CEO of Mercor) 

    • Why is this so valuable? The market is bound by the amount of things where humans can do something that models can’t. The lab’s primary bottleneck to improve models is how they can effectively have some way of measuring what success looks like for the model. 
    • It’s highly likely that the entire economy will become an RL environment machine, building out all of these worlds and contexts. And I think the narrative in AI over the last three years has almost entirely been one of job displacement, but very few companies and people have talked about this new category of jobs that’s being created.
    • If the model is the product, then the eval is the product requirement document. And the way that researchers day to day looks is that they’ll run dozens of experiments where they’ll make small improvements on an eval set. And reinforcement learning is becoming so effective that once they have an eval, they can hill climb it, right?
    • Yeah, well, it ties to what I said earlier about how if the model is the product, evals are the PRD, but also subsequently the sales collateral, right? Because like evals are what you give to researchers to show them what they should be building and going on. But they’re also the way that you demonstrate the efficacy of capabilities.
    • And I think labs will increasingly use labs as well as application layer companies will increasingly use evals to demonstrate the capabilities of their models and their products.
    • It speaks to conversations I’ve had with a lot of researchers and executives at top labs, which is that it’s highly likely that the entire economy will become an RL environment machine. building out all of these, you know, worlds and contexts for us to then have, you know, rubrics, other kinds of verifiers.

    Build: 

    • Worked on PRD scaffolding to enhance and combine with Claude output for NudgeAICoach to complete idea loop 

    Re-reading The Second Machine Age and reading Empire of AI 

    • The Second Machine Age predicted the acceleration of winner take all economy and potential corrosive effects on our institutions
  • Build Day 

    I want to have my own travel site using recommendations I made on Google Maps over the years. I want this embedded on a different maps tool. I iterated through a PRD while simultaneously using an agent to go through dozens of maps I made to download the KML files.

    Needed to correct the agent a few times:

    Generated prd and concept

    Continued Re-reading The Second Machine Age and reading Empire of AI 

  • Taking Building with the Claude API. Notes from today

    • Prompt evaluation is automated testing of a prompt to get objective metric on if our prompt is effective or not 
    • Run prompt through an evaluation pipeline to score it, then iterate on the prompt  

    Everyone Can Build a Robot: Open Source Embodied AI With Seeed Studio 

    • Line-up of Jetson-oriented devices as the robot brain 
    • More people can use microcontrollers now with open source hardware 
    • ““I think, is the root, because you don’t need one robot for everything for now. It’s actually going to be specialized robots with open source models covering a specific domain.”
    • SOR open source arm only $200
    • ““The Jetson will use diffusion model to detect with the cameras to try and find the best way to execute the projects. If it’s not doing right, retrain it. So it’s very organic and naturally, it should be for the skilled person who is like a chef, who is a blacksmith, trying to teach a robot in an organic way to make it happen.”
    • ““We hope we can foster and support a big fleet of physical AI creations. I think that will be very fast to happen in the next one or three years.
    • So you’re able to customize the physical design of the robot to meet the customer’s needs. Are you building, are you getting into, I don’t know, like humanoids or quadrupeds, bipeds, that kind of thing, or is it mostly arms?”

    Claude Code’s creator on the end of the software engineer 

    • Cherny believes “coding is solved”
    • “Everyone on the team codes — you don’t have to be an engineer anymore. If you project the trend a little, everyone who’s not an engineer is going to code a little more, and engineers like me are going to code less. I haven’t written a line of code in over six months; I’m building stuff all day. I see it all blending into one thing. Call it a builder, call it an engineer, call it a product manager — I don’t know what the title is, but the role is changing.”
    • Analogy of tractors being invented in 1890s but not full adoption until 1960s with less horses 
    • “Cherny: I feel the same way. I can do so much more — all this stuff I didn’t get to before, because I didn’t have enough hours in the day. There’s another weird historical thing. In the ’90s, when companies were adopting the personal computer — after the mainframe, after these big industrial computers that cost millions — they got miniaturized, so the average startup could just get computers. And there was a real question of whether computers made you more productive. People were complaining that they didn’t. Now we look back and think, of course they do — I can’t imagine going back to filing and paper.”
    • “When you think about what engineers do, coding is a small percentage of it. It used to be that maybe 50% of my day was actually typing code, and the other 50% was talking to users, brainstorming and coming up with ideas, debugging, thinking through how something works, planning. There are all these things engineers do that aren’t coding. So when I say coding is solved, I mean for the kind of coding I do — and coding is a small subset of what engineers do. You see this with the engineers at Anthropic, and more and more in the industry: when the model does the coding, they’re freed up to do all the other stuff they actually enjoy, like talking to users and figuring out what’s next.”
    • “We just did a hackathon for the Opus 4.7 release, and the people who won were largely not professional engineers — there was an electrician, a doctor, a carpenter who used it to build an app. We saw the same thing with the 4.6 hackathon. A while ago it would have been mostly engineers, but the models are sophisticated enough now that it’s often not engineers who learn to really harness them.” – recombinant innovation per The Second Machine Age in motion

    Re-reading The Second Machine Age and reading Empire of AI 

  • Taking Building with the Claude API. Notes from today

    • When you use Claude to generate structured data, Claude will often try to insert a header or footer or additional commentary. To keep Claude on track, we can use stop sequence in combination with pre-filled assistant message 

    Inside AI Tokenomics: How to Profitably Turn Tokens Into Business Value | NVIDIA AI Podcast Ep. 299

    • Two factors in token value: intelligence embedded in the token and how fast does it arrive
    • Tokenomics are how tokens are valued, supplied, consumed, and monetized 
    • Token utility: token value, supply that impact your AI infra and thinking about what infra to invest that will maximize token output value while keeping costs low
    • ““So more complex, more intelligent models will produce tokens that in general have much more intelligence. And then it also depends on the context that the models looked at. And generally speaking, the longer the context that you sort of allow the model to look at, the better the accuracy, the better the intelligence of the tokens.” (there are exceptions where too much context can degrade output)
    • ““which is agentic applications absolutely need the highly interactive tokens. But you may have applications like chat interfaces or enterprise search, which don’t need that level of interactivity. And so that is very critical when you are thinking through your sort of AI deployment decisions of where to map your use case to what token value.””
    • KV cache rate relates short-term memory of model – if it has seen input request it gets stored in cache
    • Demand variability also as an account, eg. holiday e-commerce
    • ““oftentimes organizations and decision makers can gravitate towards the easily available metrics and what I like to call input metrics such as the cost per GPU hour or the flops per dollar, which is essentially how many floating point operations are you getting per dollar.
    • And these are input metrics because they don’t tell you anything about the actual delivered token output, which is a function of much more than just the flops or just the memory you have. It is a function of extreme core design. And so the metric that represents both your input but also the output is cost per token.”
    • ““metric like cost per token, which represents both what you’re paying, but also what you’re truly getting.”

    $10 Raspberry to $1000 NVIDIA Jetson: Which hardware do you actually need for Physical AI?

    • Simple electronics you can do with raspberry pi which is ten bucks for a robot arm, but that wouldn’t be a physical AI
    • Need something with Linux price tags go way up -Something more complex then if than statements –  needs a microprocessor (60-300 bucks)
    • Raspberry Pi AI camera 
    • Physical AI space starts getting into something like the Jetson Orin Nano Super Developer Kit | NVIDIA with GPU and tops – you can run inference at low ended but not tune a model 
    • Measured in TOPS tera operations per second
  • Taking Building with the Claude API. Notes from today

    • Streaming immediately sends back initial response indicating it has received the request and is starting to generate text 
    • Example
    messages =[]
    add_user_message(messages, "Write a 1 sentence description a fake database.")
    with client.messages.stream(
        model=model,
        max_tokens=100,
        messages=messages
        ) as stream:
        for text in stream.text_stream:
            print(text, end="")

    Spent way too much time looking for Arduino Kit and Robot arm and landed with these two in my shopping cart:

    This Pope is awesome: 

    • “technology is never neutral, because it takes on the characteristics of those who devise, finance, regulate, and use it.”
    • Technology can’t be in the hands of the few 
    • “Faced with this concentration of power in the digital world, the criteria for judgment and discernment in this new situation are the noble principles of Social Doctrine: the inalienable dignity of the human person, the common good, the universal destination of goods, subsidiarity, solidarity and social justice. They demand that we assess whether the power of digital infrastructures and algorithms truly fosters participation and responsibility, protects the vulnerable, ensures fair access to opportunities and remains directed toward the good of all.”
    • “In the digital age, a just social order guarantees everyone equal access to opportunities, protects the youngest and weakest members of society, combats hate and misinformation and subjects the use of data and technology to public oversight, so that the guiding principle is not solely profit but the dignity of every person and the common good of all people.”
    • “This entails a race for ever more powerful algorithms and larger datasets, driven by the desire to secure geopolitical or commercial dominance. To disarm means discrediting the assumption that technical power automatically confers the right to govern. To disarm does not mean rejecting technology, but preventing it from dominating humanity. It means freeing technology from monopolistic control and opening it to discussion and debate, therefore making it human-friendly and restoring it to the plurality of human cultures and ways of life. “ 
    • “History does not appear solely as a record of human violence, but also as evidence that humanity is capable of creating institutions that protect our shared life.” 
    • ‘Indifference to the truth leads, slowly but surely, to a descent into totalitarianism. As the philosopher Hannah Arendt wrote, the ideal subjects of such regimes are not so much those who are ideologically convinced, but rather “people for whom the distinction between fact and fiction (i.e., the reality of experience) and the distinction between true and false (i.e., the standards of thought) no longer exist.”’
    • “ Educating people about the use of AI, then, involves teaching them to decide when and for what purpose it ought not to be used.” 
    • “More than ever, in the age of AI and robotics, it is no longer possible to rely solely on the “invisible hand” of the market.”
    • “When business models thrive on human weakness, the person is treated as a means rather than as an end; those who design or finance such systems bear a moral responsibility that cannot be ignored.”
    • “No algorithm can make war morally acceptable. AI does not remove the intrinsic inhumanity of conflict; indeed it can only bring about conflict more quickly and render it more impersonal, lowering the threshold for resorting to violence, transforming defense into threat prediction and thus reducing victims to data. In this way, it will accustom us to the idea that violence is inevitable and needs only to be optimized.”

    Re-reading The Second Machine Age and reading Empire of AI 

    • The term AI is largely marketing. Artificial is kind of a misnomer for something human made and Intelligence and AGI is ill-defined and kind of an ego-chase 

  • Taking Building with the Claude API. Notes from today

    • Low temperature is more deterministic output (picking highest probability token) vs high temperature with more random output (distributes probability more evenly across all possible tokens) 
    • Pick different values based on temperature, even data extraction or content moderation needs low temp vs summarization and creative writing with constraints for medium temp and high temp for brainstorming, marketing content 
    • Example
    def chat(messages, system=None, temperature=1.0):
        params = {
            "model": model,
            "max_tokens": 1000,
            "messages": messages,
            "temperature": temperature
        }
        if system:
            params["system"] = system
        message = client.messages.create(**params)
        return message.content[0].text

    The Godmother of AI on jobs, robots & why world models are next | Dr. Fei-Fei Li 

    • “If you look at from written record thousands of years ago to now, humans just kept innovating ourselves and innovating our tools, and with that, we make lives better, we make work better, we build civilization, and I do believe AI is part of that.
    • So that’s where the optimism comes from. But I think every technology is a double-edged sword, and if we’re not doing the right thing as a species, as a society, as communities, as individuals, we can screw this up as well.”
    • “be able to interact in this world whether you are browsing and walking or picking objects up or changing things as well as to reason within this world, for example, if the person consuming, if the agent consuming this output of the world model is a robot, it should be able to plan its path and help to tidy the kitchen, for example.”
    • “So world model is a foundation that you can use to reason, to interact, and to create worlds.”
    • “I think world modeling and spatial intelligence is a key missing piece of embodied AI. I also think let’s not underestimate that humans are embodied agents and humans can be augmented by AI’s intelligence.”
    • “the bitter lessons everybody refers to is a paper written by Richard Sutton who won the Turing Award recently, and he does a lot of reinforcement learning.”
    • “And Richard has said, if you look at the history, especially the algorithmic development of AI, it turns out simpler model with a ton of data always win at the end of the day instead of the more complex model with less data.”
    • There will be the need to add supplementing or synthetic data to train for robots 
    • “ no technology should take away human dignity and the human dignity and agency should be at the heart of the development, the deployment, as well as the governance of every technology.”
    • Working on world models as foundation for robotics, eg. medical emergency example 

    Re-reading The Second Machine Age and reading Empire of AI 

    • In re-reading The Second Machine Age – the trillion dollar question is if LLMs are a real General Purpose Technology
      • Most innovations are driven by people in different fields coming together, not experts in the field alone. Often it is an outsider that drives that jolt and makes the connections -> be that outsider
    • Technology development direction is driven by egos of individuals 
  • Taking Building with the Claude API. Notes from today

    • System prompts customize Claude’s tone and style of response: eg. you are a patient math tutor, do not directly answer a student’s question, guide them to learn

    Why we’re at the beginning of the AI hardware boom | Caitlin Kalinowski (ex–OpenAI, Meta, Apple)

    • “I do feel that we need to reindustrialize the country significantly to be safe in a military sense. I would really like to reteach ourselves how to make things at scale, how to be more independent, people that are your allies now may not be in the future.”
    • You want to do design work that makes robots robots without being creepy
    • “VR helped us understand how to orient things in space relative to a simulated world and the real world and connect those two. We figured out SLAM, which was how to do positioning in space using cameras.”
    • “I believe in AR glasses as part of the future because I do think looking down at your phone all the time is not great for us as social creatures. So if you can maintain social connections and get information, that’s where I think we’re headed.”
    • In hardware, we only get to “compile our code” four or five times.
    • Right. So if you’re building hardware, you redesign it in CAD for every major build and then you have to release it. And once it’s released, you compile it the last time you release it for mass production. If it’s a mass production device, that’s it. You’re done. You can’t ship over their updates. So we have a different approach.
    • And so we’ve got to solve for that last half a percent in the process of building so that when we compile our last time, when we build our last time, it’s done and we’re going to have a high yield, we’re going to be able to make them and make money on them effectively and we won’t have very many returns.
    • Need robots that are safe and light enough, etc. Current Chinese robot instructions are like you can’t be 3 feet within of this thing
    • Huge supply chain issues in US to be able to get supplies in the US 
    • And a lot of people are trying to move production here to the United States, which is very challenging because we don’t have great actuator companies here yet, for example.
    • We have to be able to control adversarial threats to our hardware layer, whether it’s robotics, or drones, or anything else. And that’s going to be a huge part of the future of warfare.
    • In hardware you kind of need to have a sense of having pre-thought out what you want, and having those, I like to call them KPIs, but essentially goals written down, and try to change them as little as possible. So that is very tough. In fact, that may be the toughest thing.
    • This is a challenge with engineers never feeling like they’re done – a product person who has a deep understanding needs to call it 
    • And I think this is actually what Steve was talking about, which is, you can’t get intuition if you’re changing something fundamentally. Your customers won’t know what they want because they haven’t seen it. But if you show it to them, they will absolutely know that it’s awesome and that is what they want.
    • But if you get stuck in an iterative feedback cycle with your customers, it’s very hard to go zero to one with something new. And so in my view, and I don’t know for sure, I didn’t talk to him about this, but that’s my view of what that means.
    • I have been advising startups and companies to pre-buy memory, and to have enough memory in stock, if they can afford it, to ride out price spikes.
    • Right now, we’re right at the very, very beginning of AI being able to do CAD. So I’ll give you an example. Claude can do what is essentially surfaces or point clouds. This is not real CAD. Real CAD is, in my world, is dense. It has shape. It has nerves.
    • So we’re not in a point, Lenny, where day-to-day mechanical or electrical engineering, like the meat and potatoes of it is being done by AI, but there’s a huge amount that you can do as an engineer using AI in your strategy, your planning, your ability to think through the complex dependencies that you’re facing.
    • AI is pretty good in Excel right now, and of course, Excel is one of our favorite tools in engineering. So the ability to actually rapidly make Excel spreadsheets and change them is… It doesn’t sound sexy, but actually really speeds up the design process outside of these core pieces.
    • They don’t have the ability to understand friction or weight or contact, pressure, friction, surface texture. They’re just not able to do these things, and this is the core of what we need in engineering to be able to understand to build things.
    • So some world models may actually be able to do this in the future, and I suspect we may need those models to be the base of CAD and other physical engineering work. And so, my frustration, and this is like a healthy frustration, is I want Codex for engineering. I want Codex for hardware engineering, and it’s extremely valuable.
    • I’ve used it a lot for other things, but I want it for my field. And so, what I think it may require is new model types.
    • Absolutely. And one really great idea I think would be to have an AI system that can go on prem, so be inside of a data center that the company owns and then train it with their data. That, I think, could work eventually in the future, but you need a lot of this CAD data.
    • So you’re going to need a base model that has a lot of CAD data. We’ll have to figure out how to do that. That’s going to be very interesting. And then, we’re going to have to figure out how to put it safely inside essentially the walls of companies and have them then train it on their own data.
    • I don’t know if that’s going to be the equivalent of an MCP layer or what that’s going to be, but this seems doable in the long term.
    • What she explained to me is that humans have a certain expectation about how other beings are going to respond when they enter a space. When someone walks into a room, you kind of acknowledge them. You might not talk to them, but you kind of look up… And so, one of the things I learned is if a robot just suddenly turns and does all this stuff, it scares you. But if a robot looks before it turns and then goes, it’s much less alarming. So there’s all these little pieces, and I recommend anyone to go look at her work.
    • There’s a lot of great research here about how to, not necessarily with a humanoid, but how to have any robot both respond properly in a social context with someone entering a room or exiting a room, but also transmit its intent physically so it doesn’t surprise you.
    • usually it’s that spark that you’re looking for in someone, that they’re genuinely motivated. They’re motivated by a desire to learn and by excellence, they’re motivated to learn from the people around them. They’re open to updating their point of view based on new information and they want to win.

    Re-reading The Second Machine Age and reading Empire of AI.

  • Statement from Dario Amodei on our discussions with the Department of War \ Anthropic

    • Key sticking points: domestic surveillance, fully autonomous weapons 

    2028: Two scenarios for global AI leadership \ Anthropic

    • US needs to not let AI norms be dominated by authoritarian tendencies  
    • US holds lead due to advantages in compute
    • “Historically, the reach of authoritarian rule has been limited by its dependence on human enforcers to carry out surveillance and repression. Powerful AI systems may remove that dependency, enabling automated repression on a far greater scale. For that reason, the prospect of the CCP leading in AI is among the greatest threats to a successful transition.”
    • China backdoors US export controls to try to close the gap
    • Need to champion export of American AI 

    Research on local models: 

    • Goal is to have my own local agents to access things on my local machine. Tbh it’s not that I’m worried that Claude is spying on me, but in the event Claude’s security is compromised, then I’m compromised. Also eliminates worry about token costs increasing and building dependent processes on a provider 
    • I’m running an older device, so I’m going to see if I can configure one of lightweight Mistral AI models. Took some time browning through featherless, hugging face, and other docs to get my thinking goggles on

    Reverse PRD experiment:

    • I tried to reverse engineer a PRD for this lab experiment I made: https://github.com/bessiec/nudgeaicoach-for-students. The results are kind of disappointing at first past and isn’t product manager quality. Going to timebox tomorrow by giving it a template and having it do a Q&A with me, although it was good at summarizing what was missing from build

    Started re-reading The Second Machine Age and reading Empire of AI 

    • Key takeaway today is average person or even person versed in tech, it’s hard for brain to comprehend logarithmically how fast technology is improving 
  • Taking Building with the Claude API. Notes from today

    • Anthropic API and Claude do not store any messages you send and it sends back – if you want context or flow – you need to maintain in your code msgs exchanged and list is provided in follow-up requests
    • You need to add a helper function like this
    def add_user_message(messages, text):
        user_message = {"role": "user", "content": text}
        messages.append(user_message)
    def add_assistant_message(messages, text):
        assistant_message = {"role": "assistant", "content": text}
        messages.append(assistant_message)
    def chat(messages):
        message = client.messages.create(
            model=model,
            max_tokens=1000,
            messages=messages,
        )
        return message.content[0].text

    Chat Bot Exercise 

    • Used claude to generate chatbot code with prompt: create chatbot code that uses built in input function in jupyter notebook, prompt user to input using the built-in input function,  add user input to list of messages, call claude api with chat function, add generated text to list of messages, print generated text 
    • needed to debug for empty input case once 
    conversation_history = []
    def chat(user_message):
        conversation_history.append({
            "role": "user",
            "content": user_message
        })
        response = client.messages.create(
            model=model,
            max_tokens=1000,
            messages=conversation_history
        )
        assistant_message = response.content[0].text
        conversation_history.append({
            "role": "assistant",
            "content": assistant_message
        })
        print(f"\nClaude: {assistant_message}\n")
        return assistant_message
    # Run the chatbot
    while True:
        user_input = input("You: ")
        if not user_input.strip():
            print("Please type something.")
            continue
        if user_input.lower() in ["quit", "exit", "bye"]:
            print("Ending conversation.")
            break
        chat(user_input)

    Aidentic (How To) | Supercharge Your Figma Workflow with AI Plugins | Treehouse

    • Make sure projects set to right visibility to use an external plug-in tool to evaluate things like paragraph spacing, font, etc. 

    Studying Anthropic Support Docs as a PM and used the following prompt and response from Claude to guide me. Key Takeaways

    • Finding the right product fit for right user person
    • Strong play into enterprise and government solving blocking pain points like identity management
    • Seems like Dev need docs beyond regular docs 
    • Connectors etc are building Claude into existing workflows, eg. AWS Bedrock letting Claude run in existing infrastructure
    • Safeguards is part of Claude’s brand identity in a way and trying it as a product value 
    • Bottoms up adoption pattern but they are totally enterprise ready 

    The internal AI tool that’s transforming how Stripe designs products | Owen Williams

    • Made internal dashboarding prototyping tool with a bundle of Cursor rules with React attached to it, pretty much used to be impossible to prototype dashboards given state management, filters, etc.
      • More PMs using it then designers, but designers can take prototype from there
    • PMs were rewarded for being able to convince designs and engineering and politicking more than building in the old world when design or eng teams “owned” prototypes
    • AI takes away the whole git workflow env config from designers and PMs to run dev, no more messing with React routers
    • Key challenge and win is integrated vibe coded internal tools into operating infrastructure
    • Integrate your design system, components, and dev env to avoid dashboard slop
    • Use an annotate for AI feature to make fixes easier 

    Re-reading The Second Machine Age and reading Empire of AI 

  • Magician (How To) | Supercharge Your Figma Workflow with AI Plugins | Treehouse 

    • You can use tools like this to create icons in vector format, eg. create an icon to symbolize stress 
    • Magician plugin can also help you automatically identify layers to help manage

    Taking Building with the Claude API. Notes from today

    • User Message: message written by some person
    • Assistant Message: produced by model and sent back to us 
    • Installed python-dotenv from anthropic and made first request using a Jupyter Notebook
      • Spent a bit of time finagling with env, but Claude made process 

    Started re-reading The Second Machine Age and reading Empire of AI 

    • Key takeaway today is that the way AI is being formed is being personality/executive driven versus product/tech-driven