Unified Data Collector Orchestrator (collectors/index.js)

agentsys · automation, collector, data, aggregation, llm

Coordinates multiple data collectors (GitHub, docs, code, etc.) into a single LLM call, enabling token‑efficient data gathering for various agents.

// Source: https://github.com/mperkins0155/agentsys | License: MIT | Copyright 2026 Avi Fenesh
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Shared Data Collectors
 *
 * Composable data collection infrastructure for drift-detect, deslop, sync-docs.
 * Follows the "JS collectors + single LLM call" pattern for token efficiency.
 *
 * @module lib/collectors
 */

'use strict';

const github = require('./github');
const documentation = require('./documentation');
const codebase = require('./codebase');
const docsPatterns = require('./docs-patterns');
const git = require('./git');
const analyzerQueries = require('./analyzer-queries');

const DEFAULT_OPTIONS = {
  collectors: ['github', 'docs', 'code'],
  depth: 'thorough',
  cwd: process.cwd()
};

/**
 * Collect data fr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key