Thriving Thriving Python PY JavaScript JS
↑ 41 ?
LingDraft HyxiaoGe/LingDraft

A conversational AI agent that can search, read, and answer with cited sources. It can view images and files, query the user's own knowledge base, and write finished work (documents, web pages, code) into files, with the right-hand pane showing the writing as it happens and each revision producing a new version. Built on LangGraph: create_agent + 16 custom middleware, parallel sub-agents, context compression designed around the prefix cache, multi-model and free-quota routing, and Postgres + pgvector.

Translated from Chinese by Claude Β· original on GitHub β†—

https://lingdraft.seanfield.org β†—
HEALTH ? 90 / Healthy
// solo builder ai-agentcontext-engineeringdeepseekfastapilangchainlanggraphllmlong-term-memorymulti-agentpostgresql ?

// readme

灡稿 · LingDraft

From an idea to a piece of work you can be proud of.

An AI conversational agent that can search, read, and answer with cited sources. It can view images and files the user sends, and it can query the user’s own knowledge base. When the user asks for a finished product, it writes documents, web pages, and code into files; the right-hand pane shows the writing as it happens, and each revision produces a new version. If it reaches a point that only the user can decide, it stops and asks, then continues once the user answers. It can also schedule work: say β€œsend me an AI news digest every morning at 8,” and when the time comes it runs another round on its own within that conversation, with the results kept for the user to read later. The main agent and sub-agents are both LangChain create_agent, with 16 custom middleware attached. The runtime layer is also custom: it handles queueing, stopping, interjections, pausing to ask the user a question, launching scheduled tasks on time, and resuming the event stream after a disconnect. It uses DeepSeek by default and connects directly to 7 other model providers; β€œauto” picks a model based on the first message.…