<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sami Ullah</title>
    <description>The latest articles on DEV Community by Sami Ullah (@sami606713).</description>
    <link>https://dev.to/sami606713</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4077625%2F0a05548c-0d90-47ab-bce3-7f5c9cde9496.jpg</url>
      <title>DEV Community: Sami Ullah</title>
      <link>https://dev.to/sami606713</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sami606713"/>
    <language>en</language>
    <item>
      <title>I built langctl — stop wasting 2 days on agent project scaffolding</title>
      <dc:creator>Sami Ullah</dc:creator>
      <pubDate>Fri, 14 Aug 2026 11:43:24 +0000</pubDate>
      <link>https://dev.to/sami606713/i-built-langctl-stop-wasting-2-days-on-agent-project-scaffolding-1g37</link>
      <guid>https://dev.to/sami606713/i-built-langctl-stop-wasting-2-days-on-agent-project-scaffolding-1g37</guid>
      <description>&lt;p&gt;Every LangGraph agent project I shipped started the same way:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set up a LangGraph Agent Server&lt;/li&gt;
&lt;li&gt;Scaffold a Next.js frontend&lt;/li&gt;
&lt;li&gt;Figure out CORS between them&lt;/li&gt;
&lt;li&gt;Hide API keys from the browser&lt;/li&gt;
&lt;li&gt;Write a proxy&lt;/li&gt;
&lt;li&gt;Wire up a dev command that runs both&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two days. Every single time. Before writing a single line of agent logic.&lt;/p&gt;

&lt;p&gt;I got tired of it. So I built &lt;strong&gt;langctl&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;langctl
langctl new my-agent
&lt;span class="nb"&gt;cd &lt;/span&gt;my-agent
langctl dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Agent + chat UI running at &lt;code&gt;localhost:3000&lt;/code&gt;. No CORS. No exposed API keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Get
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Backend:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LangGraph Agent Server on &lt;code&gt;:2024&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;agent.yaml&lt;/code&gt; as single source of truth&lt;/li&gt;
&lt;li&gt;Long-term memory on by default (SQLite or Postgres)&lt;/li&gt;
&lt;li&gt;25 model providers (OpenAI, Ollama, OpenRouter, any OpenAI-compatible)&lt;/li&gt;
&lt;li&gt;Middleware pipeline: cost limits, tool retries, guardrails&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Frontend:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LangChain's own &lt;code&gt;agent-chat-ui&lt;/code&gt; on &lt;code&gt;:3000&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Built-in proxy — &lt;code&gt;/api/agent/*&lt;/code&gt; routes to the agent server&lt;/li&gt;
&lt;li&gt;Same origin = zero CORS&lt;/li&gt;
&lt;li&gt;API keys stay server-side&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  All Commands
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;langctl new&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Scaffold backend + frontend&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;langctl dev&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Run both as one app, health-gated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;langctl share&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Public tunnel for instant demos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;langctl add&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add tools, memory, middleware&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;langctl sync&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Regen langgraph.json from agent.yaml&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;langctl doctor&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Verify setup before failure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Browser → localhost:3000 (Next.js)
              ↓
         /api/agent/* (proxy)
              ↓
         127.0.0.1:2024 (LangGraph Agent Server)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same origin. The proxy attaches &lt;code&gt;x-api-key&lt;/code&gt; server-side. Moving to production? Change one env variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Not Existing Templates?
&lt;/h2&gt;

&lt;p&gt;LangChain has &lt;code&gt;langchain-nextjs-template&lt;/code&gt; and &lt;code&gt;agent-chat-ui&lt;/code&gt;. But:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They require manual CORS config&lt;/li&gt;
&lt;li&gt;API keys sit in &lt;code&gt;.env.local&lt;/code&gt; (frontend)&lt;/li&gt;
&lt;li&gt;You run two separate dev servers&lt;/li&gt;
&lt;li&gt;No memory, no middleware, no tunnel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;langctl automates all of that into one command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;langctl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python 3.11+, Node.js 18+&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/Sami606713/agent_cli" rel="noopener noreferrer"&gt;github.com/Sami606713/agent_cli&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;PyPI&lt;/strong&gt;: &lt;a href="https://pypi.org/project/langctl/" rel="noopener noreferrer"&gt;pypi.org/project/langctl&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;License&lt;/strong&gt;: Apache-2.0&lt;/p&gt;

&lt;p&gt;15 releases in 4 days. PRs and feedback welcome.&lt;/p&gt;

</description>
      <category>langgraph</category>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
