Building at Work

  • Built verification and testing scripts in using Claude connected to external API on VSCode

Finished Reading If Anyone Builds It, Everyone Dies

  • Basically the toughest part of stopping, regulating, and cooperating AGI/GAI/ASI is what are the metrics and limits because we don’t know, we don’t know how many GPUs or too much computing is too dangerous
  • Huge incentives for companies and individuals to not act on it, but draws about examples of human cooperate to defeat axis powers and avoidance of nuclear war in recent human history 

Effective context engineering for AI agents \ Anthropic 

  • “what configuration of context is most likely to generate our model’s desired behavior?”
  • Context refers to the set of tokens included when sampling from a large-language model (LLM). The engineering problem at hand is optimizing the utility of those tokens against the inherent constraints of LLMs in order to consistently achieve a desired outcome.
  • Context engineering refers to the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference, including all the other information that may land there outside of the prompts.
  •  LLMs, like humans, lose focus or experience confusion at a certain point. Studies on needle-in-a-haystack style benchmarking have uncovered the concept of context rot: as the number of tokens in the context window increases, the model’s ability to accurately recall information from that context decreases.
  • Context, therefore, must be treated as a finite resource with diminishing marginal returns. Like humans, who have limited working memory capacity, LLMs have an “attention budget” that they draw on when parsing large volumes of context.
  • System prompts should be extremely clear and use simple, direct language that presents ideas at the right altitude for the agent. The right altitude is the Goldilocks zone between two common failure modes. At one extreme, we see engineers hardcoding complex, brittle logic in their prompts to elicit exact agentic behavior. This approach creates fragility and increases maintenance complexity over time. At the other extreme, engineers sometimes provide vague, high-level guidance that fails to give the LLM concrete signals for desired outputs or falsely assumes shared context. The optimal altitude strikes a balance: specific enough to guide behavior effectively, yet flexible enough to provide the model with strong heuristics to guide behavior.
  • Rather than pre-processing all relevant data up front, agents built with the “just in time” approach maintain lightweight identifiers (file paths, stored queries, web links, etc.) and use these references to dynamically load data into context at runtime using tools. 

Taking Building with the Claude API. Notes from today

  • We can use MCP to pass in documents and document references using resources, that allow MCP servers to expose data to the client, eg.
    • get list of doc names
    • Expose document
Posted in , , ,

Leave a Reply