Skip to main content

AIN Infinite Research Daemon. Engineered to sit on top of LLMs to autonomously guide research, provide storage, and retrieval functionality via CLI and MCP.

Project description

AIN Research Daemon Library

Welcome to the AIN Infinite Research Daemon (ain-research), an open-source Python library built by That-Tech-Geek. This library provides the core infrastructure for an Autonomous Intelligence Network (AIN), sitting seamlessly on top of LLMs to guide, automate, and orchestrate open-ended domain research.

What is it?

ain-research is a sophisticated pipeline for automated research ingestion, storage, and retrieval. It allows LLMs and autonomous agents to asynchronously fetch papers from ArXiv, crawl open-source repositories from GitHub, and store them securely into a local SQLite queue before finally syncing them into a hyper-fast, modular knowledge base (the Vault).

Key capabilities include:

  • Infinite Research Daemon: Time-boxed, autonomous daemon that fetches domain-specific research using intelligent rate-limiting and rotating APIs.
  • LLM Steering Integration: It is engineered to sit on top of LLMs. You can use the CLI or built-in MCP Server to dynamically add new search queries, refine categorizations, and prioritize processing.
  • Atomic Concurrency Control: Uses OS-level kernel FileLocks to ensure zero data corruption during heavy concurrent reading/writing by different agents.
  • Model Context Protocol (MCP): Directly expose your AIN Second Brain to any MCP-compatible LLM client (like Claude Desktop or other agents), allowing them to queue research, check system health, and compile the wiki on demand.

Use Cases

  1. Automated Overnight Crawling Let the daemon run overnight (ain-daemon). It crawls ArXiv and GitHub based on your configured categories (e.g., Quant Finance, LLMs) and stores the results securely. By the time you wake up, your Vault is packed with fresh, tagged Markdown files.

  2. LLM-Guided Research If you have a primary agent researching "Agentic Frameworks", the agent can use the MCP server (ain-mcp) to dynamically add "Agentic Frameworks" to the daytime priority ingestion queue. The daemon will immediately fetch relevant papers and repos, syncing them into the Vault for the LLM to read.

  3. Hyper-fast Retrieval The core indexing engine (ain compile) resolves thousands of nodes into lightweight Maps of Content (MOCs) and exact tag inversions, enabling LLMs to quickly query specific subjects without context-window bloat.

Installation

pip install ain-research

Quick Start

1. Configure Workspace

By default, the package uses ~/.ain/ as the root workspace. You can override this using the AIN_WORKSPACE environment variable.

2. Start the Daemon

ain-daemon

Runs the overnight crawler. By default, it operates actively between 22:00 and 23:59.

3. Add to Queue via CLI

ain queue add --arxiv 2305.14314
ain queue add --github karpathy/nanoGPT

4. Compile the Knowledge Base

ain compile

Generates the Maps of Content (MOCs), Mermaid network graphs, and visualizer data.

5. Launch MCP Server

To allow LLMs to natively hook into the daemon's research capabilities:

ain-mcp

(Configure this in your LLM client's MCP configuration settings).

Author

That-Tech-Geek

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ain_research-0.1.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ain_research-0.1.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file ain_research-0.1.1.tar.gz.

File metadata

  • Download URL: ain_research-0.1.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ain_research-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4aafd98883109a4383d6b2f4efd0938ee48406730288f4e0084aa8d745e4d01d
MD5 ee5ad62b90be35f2d2101dc1778032a4
BLAKE2b-256 d644d99fe436c0e4385f25b2db52607018c7669139c159c0ea23681168000425

See more details on using hashes here.

File details

Details for the file ain_research-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ain_research-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ain_research-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d08ecb1a7bfd780a3caa91e1dc57fb3417e1728f48f2304ae4d08f646d9c7b4
MD5 eb6d90203369f8cb7d59b3402cf153ee
BLAKE2b-256 d323b80413d13b9e4f6a5a969cdc5edce520a78d94226dda117d9469eb78800c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page