npx derived-cli add auth

Application primitives for yourAI agents

Reusable building blocks that agents can compose into any application, so they spend less context on boilerplate and more on your product.

Use it directly with `derived-cli` or through MCP-enabled coding agents

Reuse over regeneration

Insert proven blocks instead of re-generating boilerplate every run.

Determinism

Versioned patterns keep output predictable across agents and teams.

Governance

Control quality, ownership, and rollout for private and shared blocks.

derived-cli · live
$ npx derived-cli add auth-helper
⠋ Searching block library...
✔ Matched `auth-helper-v3` (score 0.99)
✔ Resolved variables from project context
+ src/server/auth-helper.ts
+ src/server/session-policy.ts
✔ Added 3 files in 1.2s
mainlower token usage · higher consistency
Context Efficiency

Stop burning context on boilerplate

Prompt-only generation keeps paying the same token cost. Derived inserts tested patterns so your agent can focus on the parts that are unique.

Prompt-only generation

higher cost, variable output

tokens used
0
• Repeats scaffolding logic each run
• Hard to enforce team-level consistency

Derived block insertion

deterministic, reusable output

tokens used
0
waiting for command trigger...
Consistent architecture across teams
Saves up to 90% context for core logic

Reusable foundations

Keep auth, data, and API patterns as reusable blocks instead of one-off prompts.

Verified behavior

Review, version, and enforce trusted patterns for both private and public use.

Context-aware blocks

Variables resolve at insertion time so templates adapt to each project instantly.

Derived MCP

Connect once, ship blocks from inside your agent

Add the Derived MCP server and let your coding agent discover and insert production-ready patterns directly into your repo.

Agent autonomy

Derived finds matching blocks and resolves them without requiring repetitive prompting.

Context-light by design

The integration avoids bloating context windows so your model budget stays focused.

MCP compatible

Works with Cursor, GitHub Copilot, and any MCP-enabled coding environment.

npm: npx derived-mcp-server

PROTOCOL INSPECTOR

Validate tool flow before wiring it into your workspace.

[User]Add Stripe payment gateway integration.

Runtime

Node + MCP

Install

~ 60 sec

Status

Active

Desktop Workspace

Run a full template workflow from one app

Build templates, validate variable data, and publish blocks to private or community projects without leaving the Derived desktop client.

derived.desktop / template-studio
Template Source
Resolved Output
Context Variables (JSON)
{ "fnName": "greet", "user": "Developer" }
mainLn 14, Col 2
UTF-8TSX● Synced