New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

moltext

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moltext

Agent-native documentation compiler that converts human docs into deterministic context.md for Moltbots and autonomous agents.

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
4
-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

Moltext

Note: Moltext was previously released as ContextMD.

Agent-native documentation compiler for Moltbots and autonomous agents.

CI status NPM Version CC BY-NC 4.0 TypeScript

Human documentation is optimized for humans, not agents. Agents ingest context; they do not navigate websites. Moltext is the compile step between human docs and agent memory. It output is a deterministic context.md.

Moltbots & Agent Systems

Moltbots and other autonomous agents require single-file, noise-free context to operate reliably. context.md is designed to be dropped directly into Moltbot workflows (memory or RAG pipelines). Moltext exists to standardize agent-readable documentation, ensuring deterministic input, memory stability, and entropy reduction.

Pipeline

  • Parse: Crawl the documentation site.
  • Normalize: Clean and standardizing the HTML.
  • Compile: Use an LLM to structurally compress the content into agent-readable form.
  • Emit: Generate the final context.md.

Installation

npm install -g moltext

Usage

moltext [options] <url>

Options

  • -k, --key <key>: API Key (optional for local LLMs)
  • -u, --base-url <url>: API Base URL (default: https://api.openai.com/v1)
  • -m, --model <model>: Model name (default: gpt-4o-mini)
  • -o, --output <path>: Output file path (default: context.md)
  • -l, --limit <number>: Max pages to parse (default: 100)

Examples

Standard Usage (OpenAI):

moltext https://docs.example.com -o context.md

Using a Moltbot / Local Model (Ollama): Instruct the compiler to use the same brain as your agent.

moltext https://docs.example.com \
  --base-url http://localhost:11434/v1 \
  --model llama3

License

© Udit Akhouri — Moltext

CC-BY-NC-4.0

Keywords

agent

FAQs

Package last updated on 02 Feb 2026

Related posts