Graphmd
GraphMD — Literate Programming Environment for Markdown-Based Executable Knowledge Graphs
Install / Use
/learn @graphmd-lpe/GraphmdREADME
GraphMD — Literate Programming Environment for Markdown-Based Executable Knowledge Graphs
📜 Manifesto
- As of today, the term
AIis overhyped, and 99% of content aboutAIis nothing more than marketing bullshit (the bubble). - The backbone of what is called
AIis just optimized statistical models. - An
LLMis a statistical model for generating templates, trained on large text datasets. - You should review hard the output of any
LLMbefore using it. - GraphMD is anti-AGI. We don't believe in or pursue Artificial General Intelligence. Instead, we focus on practical, verifiable, human-supervised AI assistance.
This project attempts to formalize the process of using LLMs as template generators in a reliable, reproducible, and reviewable way.
🎯 Anti-AGI Positioning
GraphMD explicitly rejects the AGI narrative.
- ❌ Not pursuing AGI - We don't believe current approaches lead to general intelligence
- ❌ Not autonomous agents - Humans must always be in control
- ❌ Not "thinking machines" - LLMs are statistical pattern generators, not minds
- ✅ Human-supervised assistance - AI as a tool, not a replacement
- ✅ Verifiable workflows - Every step reviewed and validated
- ✅ Reproducible processes - Documented, testable, auditable
- ✅ Mathematical rigor - Formal verification over blind trust
Why anti-AGI matters:
- Safety - Structured workflows prevent runaway automation
- Accountability - Humans responsible for all decisions
- Quality - Review and validation ensure correctness
- Honesty - We don't promise what we can't deliver
- Focus - Build practical tools, not science fiction
Our approach: Treat LLMs as sophisticated autocomplete, not artificial minds. Use them within formal structures that guarantee human oversight, validation, and control.
⚔️ Fighting AGI Development
GraphMD doesn't just reject AGI—we actively fight against attempts to create it.
The pursuit of Artificial General Intelligence is:
- Technically misguided - Current approaches won't achieve general intelligence
- Dangerously irresponsible - Racing toward uncontrollable systems
- Socially harmful - Diverting resources from solving real problems
- Intellectually dishonest - Marketing fantasies sold as scientific progress
How GraphMD fights back:
- Proving the alternative works - Demonstrating that structured, verifiable AI assistance is more practical and safer than AGI fantasies
- Building constraints - Creating formal verification systems (Pruf) that prevent uncontrolled AI behavior
- Enforcing human control - Designing workflows where humans must validate every step
- Exposing the hype - Showing that LLMs are statistical models, not minds
- Focusing on reality - Solving actual development problems instead of chasing sci-fi dreams
GraphMD proves you don't need AGI for effective AI assistance. You need structure, verification, and human oversight.
Join the fight: Use GraphMD. Build tools that keep humans in control. Reject autonomous agents. Demand verification. Choose practical solutions over AGI hype.
Author: Artem Kulyabin
📖 Overview
GraphMD is a Literate Programming Environment (LPE) where the Markdown document is the primary artifact. It enables bidirectional integration between AI Agents and the Literate Programming Environment, transforming Markdown documents into executable specifications through a collaborative intelligence model where humans write prompts, AI Agents perform actions, GraphMD orchestrates, and knowledge emerges.
The Knowledge Loop
Humans write prompts → AI Agents perform actions → GraphMD orchestrates → Knowledge emerges
🎯 Core Concept
Markdown documents become executable — AI Agents read prompts and Markdown documents, perform actions (extract knowledge, generate new Markdown documents, execute fenced code blocks, etc.), and interpret results. GraphMD provides the environment to orchestrate these interactions.
♻️ Core Principle
- Don't Repeat Others and Don't Reinvent the Wheel
- Reuse standards, tools, and prior work; integrate and reference rather than duplicating or rebuilding without strong justification.
🧠 Markdown-Based Executable Knowledge Graphs (MBEKG)
Definition: MBEKG are knowledge graphs whose canonical source is human-readable Markdown that's also machine-executable. Documents and sections encode entities and relations; fenced code blocks and commands define behaviors that can be executed by agents.
Core building blocks:
- Documents/sections as nodes — Typed sections represent entities, concepts, or processes
- Links as edges — Markdown links, anchors, and IDs connect entities and encode relations
- Metadata — Front matter and inline tags provide typing, provenance, and policy context
- Executable blocks — Code fences and commands perform checks, queries, generation, and transforms
- Artifacts as first-class — Results (logs, tables, files, etc.) are referenced back into the documents
Execution model: Agents interpret Markdown, execute declared actions, materialize results, and write findings back into the graph. GraphMD orchestrates execution, validation, and provenance so the graph remains consistent as it evolves.
Properties:
- Human-readable, machine-executable — A single source for understanding and automation
- Traceable and reproducible — Append-only evolution with provenance of prompts, actions, and outputs
- Policy-checked — Consistency and quality rules run as part of the loop
- Bidirectional collaboration — Humans describe and review; Agents execute and analyze
✍️ Literate Programming in GraphMD
Literate Programming treats programs as literature for humans, interleaving narrative and code so that readers understand the why and how together. In GraphMD, the Markdown document is the primary artifact, and execution is driven from within the prose.
How GraphMD applies literate programming:
- Narrative-first documents — Prompts, rationale, and design live alongside executable fenced code blocks
- Executable code fences — Agents execute commands directly from Markdown
- Weave and tangle model — Publisher (planned) weaves human-friendly docs; Sandbox (planned) tangles and serves as a safe, provenance-aware execution environment for Agent actions and Markdown fenced code blocks
- Provenance-aware updates — Prompts, results, and decisions are recorded in-place for reproducibility
Links:
- “Literate Programming” (1984), The Computer Journal (PDF)
- Literate Programming (1992 book) — Knuth’s Stanford page
🚀 Getting Started
This guide will help you set up GraphMD and start using the workflow to guide AI-driven development. You'll learn how to begin collaborating with AI Agents through the structured phase-by-phase workflow.
Prerequisites
- Bash - For running validation scripts
- Git - For version control
- Agent - Any AI coding assistant
Quick Start
1. Clone the Repository
# Clone the main repository
git clone https://github.com/graphmd-lpe/graphmd.git
cd graphmd
# Copy workflow templates to your project
cp -r templates/workflow /path/to/project/workflow/
# Copy validation scripts to your project
cp -r templates/scripts /path/to/project/scripts/
cd /path/to/project
# Initialize Git repository if not already initialized
git init
# Add the templates to the repository
git add workflow/ scripts/
# Create the initial commit
git commit -m "graphmd: add workflow templates and validation scripts"
2. Follow the Workflow
Research phase:
- Copy
workflow/before-research.mdcontent - Paste it into your Agent prompt to start the research phase
- Collaborate with the Agent to research the problem domain, requirements, and constraints
- Copy
workflow/after-research.mdcontent - Paste it into your Agent prompt to review and commit the research
Design phase:
- Copy
workflow/before-design.mdcontent - Paste it into your Agent prompt to start the design phase
- Collaborate with the Agent to create system architecture, data models, and technical decisions
- Copy
workflow/after-design.mdcontent - Paste it into your Agent prompt to review and commit the design
Roadmap phase:
- Copy
workflow/before-roadmap.mdcontent - Paste it into your Agent prompt to start the roadmap phase
- Collaborate with the Agent to define high-level phases, milestones, and dependencies
- Copy
workflow/after-roadmap.mdcontent - Paste it into your Agent prompt to review and commit the roadmap
Planning phase:
- Copy
workflow/before-plan.mdcontent - Paste it into a new Agent session to start the planning phase
- Collaborate with the Agent as it creates a
planningbranch and develops a detailed plan - Copy
workflow/after-plan.mdcontent - Paste it into your Agent prompt to validate, commit, and merge the
planningbranch
Development phase:
- Copy
workflow/before-development.mdcontent - Paste it into a new Agent session to start the development phase
- Collaborate with the Agent as it creates a
developmentbranch and implements your plan - Copy
workflow/after-development.mdcontent - Paste it into your Agent prompt to review, document, and merge the
developmentbranch
Understanding the Workflow
The GraphMD workflow consists of 6 phases, each with its own purpose:
- **Resear
