Devframe: A Framework to Build Developer Tools for Both Humans and AI Agents

Anthony Fu open-sourced Devframe, a framework that allows developers to define a devtool once and run it as a Vite plugin, CLI, static report, or MCP server, serving both humans and AI coding agents. It uses a handler-first model for portability and includes mechanisms for safe agent interaction, such as private RPC functions and json-render for predictable UI.
Key insights
Handler-First Design for Maximum Portability
Devframe's core is a handler-first model: defineDevframe() creates a tool with id, capabilities, RPC functions, shared state, and agent interfaces. initDevframe() produces a Web standard handler and a Connect middleware. This allows the same tool to be mounted in any host that accepts these interfaces, such as Hono, Next.js, Vite, or Rsbuild. Adapters then provide CLI, dev server, static report, MCP server, and Vite plugin outputs from the same definition.
Designed for Both Humans and Coding Agents
Devframe explicitly separates visualization (for humans) from agent interfaces. RPC functions are private by default and must be explicitly exposed to agents. The MCP adapter translates functions, resources, and state into agent-friendly interfaces with descriptions and schemas. The json-render integration from Vercel allows agents to generate predictable dashboards. The repository itself is agent-native with skills directories and AGENTS.md files.