diff --git a/src/components/landing/CodeBlock.astro b/src/components/landing/CodeBlock.astro new file mode 100644 index 00000000..bb712007 --- /dev/null +++ b/src/components/landing/CodeBlock.astro @@ -0,0 +1,198 @@ +--- +/** + * Theme-aware syntax-highlighted code block for the landing page. + * Renders both light and dark variants at build time, toggles via CSS on [data-theme]. + * Includes a copy-to-clipboard button. + */ +import { Code } from 'astro:components' + +interface Props { + code: string + lang?: string + filename?: string +} + +const { code, lang = 'python', filename } = Astro.props +--- + +
+
+ {feature.description}
++ Any model. Any cloud. Open source for Python and TypeScript. +
+pip install strands-agents
+
+ npm install @strands-agents/sdk
+
+ + Early agent frameworks wrapped models in orchestration logic because models couldn't reason reliably. Now they can. Strands gives you back control: define your tools as functions, write a system prompt, and the agent loop handles execution. No step definitions, no workflow graphs. Just code. +
++ The model handles orchestration. When it makes a mistake, a plugin handles recovery. Your agent code stays the same. +
++ You wrote the rules. The model skipped them. Longer prompts make it worse: by line 40, the model is guessing which instructions still matter. Hard-coded workflows are the other extreme: predictable but brittle, and they strip away the reasoning that makes agents useful. +
++ Steering hooks intercept the agent loop the same way middleware intercepts HTTP requests. Before a tool call, check the inputs. After a model response, validate the output. Each handler is a Python function you can read, test, and debug. +
+{feature.description}
-