MCPcopy Index your code
hub / github.com/OpenSourceAGI/qwksearch-research-agent

github.com/OpenSourceAGI/qwksearch-research-agent @v1.2.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.4 ↗ · + Follow
4,462 symbols 9,973 edges 1,004 files 524 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img width="400px" src="https://i.imgur.com/FfEdQbK.png" />






<a href="https://discord.gg/SJdBqBz3tV">
    <img src="https://img.shields.io/discord/1110227955554209923.svg?label=Chat&logo=Discord&colorB=7289da&style=flat"
        alt="Join Discord" />
</a>
 <a href="https://github.com/vtempest/reason-editor/discussions">
 <img alt="GitHub Stars" src="https://img.shields.io/github/stars/vtempest/reason-editor" /></a>
<img src="https://img.shields.io/badge/Next.js-16.0-black" alt="Next.js" />






<a href="https://github.com/vtempest/reason-editor/discussions">
<img alt="GitHub Discussions"
    src="https://img.shields.io/github/discussions/vtempest/reason-editor" />
</a>
<a href="https://github.com/vtempest/reason-editor/pulse" alt="Activity">
    <img src="https://img.shields.io/github/commit-activity/m/vtempest/reason-editor" />
</a>
<img src="https://img.shields.io/github/last-commit/vtempest/reason-editor.svg" alt="GitHub last commit" />







<a href="https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"
        alt="PRs Welcome" />
</a>
<a href="https://codespaces.new/vtempest/reason-editor">
<img src="https://github.com/codespaces/badge.svg" width="150" height="20" />
</a>

🚀 Demo 📑 Docs 🎯 API

🧠💻 Reimagine the Internet as Self-Organizing Mind Map

Critical times call for critical thinkers to create a crowdsourced argument reasoning dataset, for AI models to recommend research quotes, to evolve crowdsourced chain-of-thought reasoning, to unlock faster ways to read long articles, to monitor developments by topic modeling a knowledge base graph, and to provide a public service of answers to research.

Language Models can distill the essence of collective thought into a vector space where every point has a weighted value representing its contribution to the overall decision-making process. AI will show its reasoning based on what sentences and cites it used from the collective research, so that people can see it is aligned with our interests. Research Agents recommend articles for human researchers working alongside AI to develop a summarized topic outline as a public service. The agents monitor for any related articles via web searches for keywords associated with that Topic Model. Imagine uploading a research paper, then the app extracts full text of reference cites and creates topic model and keyword summaries, then monitors that literature base and stores highlights. People will make personal knowledge bases of what influences them to create AI assistants cloning their mind-uploaded perspective and interests in a self-organizing mind map.

# Download Source
bunx git0 vtempest/ai-research-agent
# Import Self-Hosted API
bun i ai-research-agent
# Import API Client 
bun i qwksearch-api-client

image

🤖🔎 STREAM: Search with Top Result Extraction & Answer Model

<img width="350px" src="https://i.imgur.com//LJ5hBjh.png" />

Reimagine The Web as Self-Organizing Mind Map

  • 🔍 Web Search - 100+ popular sites search across 10 categories: Web Search, Academic, Videos, Images, Files, News, etc
  • 📝 Article Preview - Extract and summarize articles before reading them
  • 🤖 User Choice of LLM - OpenAI, Claude, Gemini, Groq, Ollama, Anthropic, etc
  • 📄 File Upload Support - Ask questions about PDFs, URLs, DOCX, Google Docs, and Youtube
  • 📚 Search History - All searches saved locally for privacy
  • Follow-up Questions - Generate follow-up questions to ask language models

REASON Writing Agent

Research Editor for Annotated Summaries in Outline Notation

<img width="400px" src="https://i.imgur.com/pDvMC1Q.png" />
  • 📂 Nested Document Tree: organize research notes with a nested document organizer with drag-and-drop, tabs, and custom storage sources
  • 🖱️ Context Menu Operations: right-click to access quick actions for seamless document management
  • 🔍 Full-Text Search: instantly find documents by title or content with full-text search
  • AI Rewriting: leverage AI to rewrite and improve your text directly within the editor
  • 👥 Team Management: collaborate with team members and manage access rights
  • 🔄 View Modes: switch between Formatted, parsing HTML, and Markdown views for versatile editing
  • 🛠️ Find & Replace: powerful search and replace functionality with match highlighting
  • 📥 Google Docs Integration: seamless export, import, and sharing capabilities
  • 💾 Persistent Storage: reliable SQLite storage ensures your data is safe and accessible
  • ⌨️ Keyboard Navigation: efficient keyboard shortcuts for power users
  • 💬 Research Quotes: capture and organize key quotes and insights from your research
  • 🏗️ Built with: Claude Code, Lexical Editor, shadcn/ui, Cloudflare, Next.js, Google Docs API

🚜📜 Tractor the Text Extractor

  1. Main Content Detection: Extract the main content from a URL by combining Mozilla Readability and Postlight Mercury algorithms, utilizing over 100 custom adapters for major sites for article, author, date HTML classes.
  2. YouTube Transcript Processing: When a YouTube video URL is detected, retrieve the complete video transcript including both manual captions and auto-generated subtitles, maintaining proper timestamp synchronization.
  3. PDF to HTML: Extracts formatted text from PDF with parsing of linebreaks , page headers, footnotes, and section headings. Supports fonts, links, bold, italics, lists, headings, headers, footnotes, and Table of Contents, Quotes, and Code Blocks. Removes repeated headers, links footnote anchors to the footnote, and preserves number of the PDF page with invisible I element. This function uses pdfjs-serverless to work in more environments than PDF.js-based tools: Cloudflare workers, serverless, node.js, and front-end only.
  4. Basic HTML Standardization: Transform complex HTML into a simplified reading-mode format of basic HTML, making it ideal for research note archival and focused reading, with headings, images and links.
  5. Cite: Identify and extract citation metadata including author names, publication dates, sources, and titles using HTML meta tags and common class name patterns. The system validates author names against a comprehensive database of 90,000 first and last names, distinguishing between personal and organizational authors to properly format citations.

Further Research

🌟 Please star this repo so it will grow and get updates!

PRs Welcome

Extension points exported contracts — how you extend this code

IMemoryStorage (Interface)
(no doc) [9 implementers]
packages/research-agent/src/agents/memory/storage-interface.ts
IMemoryStorage (Interface)
(no doc) [9 implementers]
packages/agent-toolkit/src/memory/storage-interface.ts
DurableObjectStub (Interface)
(no doc) [3 implementers]
packages/render-url-to-html/scraper-cloudflare/scraper-utils.ts
UserMenuProps (Interface)
Props for the UserMenu component.
packages/reason-editor/src/layout/UserMenu.tsx
HttpClient (Interface)
(no doc) [2 implementers]
packages/youtube-transcript-api/src/types.ts
RateLimitEntry (Interface)
* In-memory rate limiter for guest users using global env API keys. * Limits usage to 100 requests per day per IP addre
apps/qwksearch-web/lib/rate-limit/guestRateLimiter.ts
ThemeDropdownProps (Interface)
(no doc)
packages/shadcn-theme-menu/src/theme-dropdown.tsx
XGBoostParams (Interface)
(no doc)
packages/language-model-training/src/correlate-statistics/types.ts

Core symbols most depended-on inside this repo

cn
called by 329
apps/qwksearch-web/lib/utils/index.ts
cn
called by 260
packages/render-url-to-html/scraper-jsdom/demo/lib/utils.ts
cn
called by 158
packages/reason-editor/src/lib/utils.ts
find
called by 144
apps/qwksearch-ext/components/TabList.tsx
resolveSrc
called by 138
packages/reason-editor/src/lexical/ui/Icon.tsx
get
called by 119
packages/youtube-transcript-api/src/types.ts
toString
called by 113
packages/render-url-to-html/scraper-cloudflare/scraper-utils.ts
update
called by 100
packages/research-agent/src/extractor/html-to-cite/extract-date/extract-date.ts

Shape

Function 2,791
Method 891
Interface 464
Class 310
Enum 6

Languages

TypeScript97%
Python2%
Rust1%

Modules by API surface

packages/language-model-training/src/next-word-prediction/src/training/wikipedia_transformer.py70 symbols
packages/youtube-transcript-api/src/errors.ts65 symbols
packages/youtube-transcript-api/src/formatters.ts37 symbols
packages/reason-editor/src/editors/useReasonDocsState.ts30 symbols
packages/research-agent/src/extractor/html-to-content/extract-content/extract-content-mercury-utils.ts27 symbols
packages/reason-editor/src/lexical/plugins/ShortcutsPlugin/shortcuts.ts27 symbols
packages/research-agent/src/extractor/html-to-content/extract-content/extract-content-mercury.ts25 symbols
packages/render-url-to-html/scraper-jsdom/demo/components/ui/sidebar.tsx25 symbols
packages/reason-editor/src/ui/sidebar.tsx25 symbols
packages/reason-editor/src/lexical/ui/ColorPicker.tsx25 symbols
apps/qwksearch-web/components/ui/sidebar.tsx25 symbols
packages/research-agent/src/extractor/html-to-cite/extract-date/extract-date.ts24 symbols

For agents

$ claude mcp add qwksearch-research-agent \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page