Taking Claude Platform 101
- Context is everything on a given turn – input to every API call. Your goal in usage is to fit the right thing in
- The system prompt
- The message history
- Tool definitions and tool results
- Attached files and skills
- Thinking blocks
- Just-in-time context: load what’s needed now, let tools pull in the rest. This is the design pattern of the four.
- Load just in time, compact what’s old, remember what has to survive across sessions in cache and memory
- Server-side compaction: add a context_management key, and the API summarizes old turns automatically when input crosses the trigger threshold.
- Prompt caching: mark stable parts of the request and reuse them across calls at a fraction of the cost.
- The memory tool: Claude reads and writes a memory directory via tool calls; you own the storage backend, so context survives across sessions.
How to turn your AI into a world-class designer
- AI models are capable of amazing creativity, but that creativity gets stifled by how they’re trained. Large language models are next-token predictors: at each step, they look at a sequence of text and predict what comes next based on millions of examples.
- This makes typical LLMs great at most tasks but poor designers.
- Great design, on the other hand, starts with feeling and aims to create an emotional response. It bends the rules and delights users with memorable, unexpected choices. Great design is exactly the opposite of what an LLM does naturally, which is to make the most predictable choice at every step.
- However, if we can get the model to reach beyond the most predictable choices, we can access a vast landscape of creative ideas that most people miss out on.
- Loosely inspired by the Double Diamond design process, I’ve reimagined the design process for a team of AI agents instead of human designers:
- Discover new ideas beyond the average slop by exploring a variety of directions and creating bold, ambitious design briefs.
- Define an individual design identity by pushing AI beyond its familiar patterns and chaining models together to fully realize the design’s potential.
- Deliver a stunning final result by polishing away the sloppy rough edges and focusing on the key elements.
- The problem is that the model can’t inherently act randomly. It can only predict the most likely token. If we want variety, we have to bring it from outside the model. One technique for this is String Seed of Thought, published by Sakana AI. We make the AI generate a random string and use it as design inspiration. That way, the model is truly making different decisions each time.
- Here’s a system I use to find unique prompt ideas with AI:
- 1. Ask AI to list a bunch of ideas, intentionally lacking detail. The goal is just to inspire your imagination.
- 2. Visualize your favorites and note how you react to different directions. Then ask AI to refine them.
- 3. Iterate until you’re satisfied, then ask AI to write the prompt to build it.
- To solve this, instead of letting the coding agent decide when the design is good enough, have it ask another agent—a “design critic.” The critic’s job is to look at screenshots of the current design and provide feedback. It doesn’t care how the current design is implemented or how much effort went into it, only if it actually hits the quality bar.
- This approach has an extra benefit: we can use a big, expensive model for the critic without breaking the bank, because we’ll only use it for executive decisions. A cheap, fast model can do the grunt work, while the strong critic model provides taste.
- AI loves to add more, but it rarely takes away. One of the biggest signs that a design is AI-generated is that it overexplains everything or contains elements that don’t serve any practical purpose. By contrast, a design that exercises restraint immediately looks premium and tasteful.
- Various commands in copilot, cody, genie, intellicode, tabnine can explain code blocks, provide suggestions




