@dcyfr/ai is a portable agent framework with plugin architecture, multi-provider routing and fallback, and built-in telemetry. TypeScript-strict. Tree-shakeable.
Extensible validation system with custom agents and a secured marketplace. Rate plugins, audit scores, TLP classification.
OpenAI, Anthropic (Claude), Ollama, and GitHub Copilot behind one unified API — swap providers without changing application code.
Track usage, costs, quality metrics, and performance automatically. No additional setup required.
import {
AgentRuntime,
ProviderRegistry,
TelemetryEngine,
ValidationFramework,
getMemory,
loadConfig,
} from '@dcyfr/ai';
// Zero-config setup: auto-detects .dcyfr.yaml, .dcyfr.json or package.json
const config = await loadConfig();
// Providers, with a fallback chain
const providers = new ProviderRegistry({
primaryProvider: 'anthropic', // or 'github-models', 'ollama'
fallbackChain: ['anthropic', 'ollama'],
autoReturn: true,
healthCheckInterval: 60_000,
});
// Agent name, providers, memory, telemetry
const runtime = new AgentRuntime('assistant', providers, getMemory(), new TelemetryEngine());
// Current limitation: execute() runs the loop but does not call a model yet.
// Its output is a placeholder. See Known Limitations in the @dcyfr/ai README.
const result = await runtime.execute({ task: 'Explain this codebase' });
console.log(result.success ? result.output : `Failed (${result.outcome}): ${result.error}`);
// Run quality gates before shipping
const validation = new ValidationFramework({ gates: config.validation.gates });
const report = await validation.validate({
projectRoot: config.project.root,
files: config.project.include,
config: config.agents,
});
console.log(`Quality gates: ${report.valid ? '✓ PASS' : '✗ FAIL'}`);Route tasks automatically to the right agent using capability manifests, reputation scoring, and contract-based SLAs. Built-in security hardening with mitigations for 8 adversarial delegation scenarios, rate limiting, and TLP clearance enforcement.
Core AI agent framework — plugin system, multi-provider, telemetry, delegation.
CLI toolkit for AI workflows — config validation, init, and project scaffolding.
RAG library for semantic search and retrieval-augmented generation workflows.
| Feature | @dcyfr/ai | LangChain | Vercel AI SDK | Mastra |
|---|---|---|---|---|
| Multi-Provider | ✓ | ✓ | ✓ | ✓ |
| Plugin System | ✓ | Complex | — | — |
| Built-in Telemetry | ✓ | — | — | ✓ |
| Quality Gates | ✓ | — | — | Evals |
Quickstarts and references live on-site, with the API reference in the framework repository. The component registry is live, so you can build on top.
Parallel and serial validation gates to enforce standards before code ships. Design token, test, and security checks.
Tree-shakeable with a minimal footprint compared to full-stack AI frameworks — more surface area means more attack surface.
Config init and validation via `npx -p @dcyfr/ai dcyfr-ai config:init`. Bring your own YAML, JSON, or package.json config.
See all packages at /code.
| Zero Config | ✓ | — | ✓ | — |
| TypeScript Strict | ✓ | Partial | ✓ | ✓ |
| Delegation System | ✓ | — | — | Workflows |
As of .