↓ Skip to main content
  1. Tags/

BYF

2026

Tools Are Capability: AI Agent Tool System Design Philosophy
Deep Thoughts · 2026-05-12 · 8 分钟

Tools Are Capability: AI Agent Tool System Design Philosophy

Last time we talked about the Think-Act-Observe loop — the skeleton of an AI coding assistant. A skeleton can’t work on its own; it needs muscle. In Claude Code, that muscle is tools. Without tools, the loop loses the Act between Think and Observe and degenerates into plain Q&A. With tools, the model can touch the real world: read your code, change your configs, run your tests.

1624 字 阅读 ➔
The Soul of an AI Coding Assistant: The Think-Act-Observe Loop
Deep Thoughts · 2026-05-07 · 8 分钟

The Soul of an AI Coding Assistant: The Think-Act-Observe Loop

If you dig through the Claude Code source, you will discover a counterintuitive fact: The core of the entire program is a while loop. Not a complex state machine, not an elaborate pipeline, not distributed coordination — just a plain while loop that does three things over and over: let the model think, let the model act, feed the results back. 1 2 3 4 5 6 7 8 9 while (user hasn't quit) { thinking = callLLM(conversation history + tool definitions) if (thinking.wants to call a tool) { result = executeTool(thinking.toolCall) conversationHistory.push(result) } else { output(thinking.reply) } } That’s it? The entire secret of an AI coding assistant lives in this loop?

1645 字 阅读 ➔