npx derived-cli add block_name

Next-Gen Scaffolding For AI Coding Agents

Search, reuse code blocks designed to minimize token usage and maximize output right from your IDE.

Terminal — zsh
~npx derived-cli add auth
⠋ Searching for auth...
✔ Block 'auth' found
✔ Auth requires user input to resolve
User Input Required:
Edit Block Input (JSON)
Edit Block Input (AI)
Use Default
Successfully created 3 files
~

The Art of Precision

Don't waste expensive tokens by letting AI write from scratch everytime. Use battle-tested, reusable blocks that snap directly into your project.

AI Ad-hoc Generation

Expensive & Unpredictable

Tokens Used
0
Prone to hallucinations
Heavy token consumption

Derived + AI

Instant & Battle-Tested

Tokens Used
0
Waiting for block trigger...
Zero Hallucinations
Save 98% of your context window

Code Recycling

Instead of generating code every time, reuse high-quality patterns.

Verified Accuracy

Public and private blocks, You are in control.

Dynamic Blocks

Blocks aren't static snippets; they're smart templates that adapt to context.

Derived MCP

Effortless Integration

Derived MCP does not bloat agent context. It uses its own mechanism to find precise block based on user queries.

Agent Autonomy

Searches relevant blocks from the library and resolves them independently.

Smart Resolution

Intelligently handles queries and asks for clarification when needed.

MCP Standard

Compatible with any MCP-enabled client like GitHub Copilot or Cursor.

[User]Add Stripe payment gateway integration.
Live Template Editor

Manage Everything with a Desktop App

Secure your internal patterns and preview complex templates in real-time with the Derived integrated workspace.

Derived.dev — visual_editor_v2
Template String
Resolved Block
Context data (JSON)
{ "fnName": "greet", "user": "Developer" }
mainLn 14, Col 2
UTF-8TypeScript React● Recording