agentleFS
YesIamGodtYesIamGodt/knowledge-pipline/AGENTS.md

knowledge-pipline

AGENTS.md38 starsChanged 8 months agoMITView on GitHub

This wiki is maintained entirely by your coding agent. No API key or Python scripts needed — just open this repo in Codex, OpenCode, or any agent that reads this file, and talk to it. Describe what you want in plain English: - "Ingest this file: raw/papers/my-paper.md" - "What does the wiki say about transformer models?" - "Check the wiki for orphan pages and contradictions" - "Build the knowledge graph" Or use shorthand triggers: - ingest <file> → runs the…

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every wiki page uses this frontmatter:

    line 41
  2. Very specific:

    Use [[PageName]] wikilinks to link to other wiki pages.

    line 53
  3. Distinctive:

    Read the source document fully

    line 62
  4. Very specific:

    Read wiki/index.md and wiki/overview.md for current wiki context

    line 63
  5. Very specific:

    Write wiki/sources/<slug>.md — use the source page format below

    line 64
  6. Very specific:

    Update wiki/index.md — add entry under Sources section

    line 65
  7. Very specific:

    Update wiki/overview.md — revise synthesis if warranted

    line 66
  8. Distinctive:

    Update/create entity pages for key people, companies, projects mentioned

    line 67
  9. Distinctive:

    Update/create concept pages for key ideas and frameworks discussed

    line 68
  10. Very specific:

    Read wiki/index.md to identify relevant pages

    line 108
  11. Very specific:

    Ask the user if they want the answer filed as wiki/syntheses/<slug>.md

    line 111
  12. Distinctive:

    If Python/deps unavailable, build manually:

    line 137
  13. Very specific:

    Search for all [[wikilinks]] across wiki pages

    line 138
  14. Very specific:

    Write graph/graph.json with {nodes, edges, built: date}

    line 141
  15. Very specific:

    Write graph/graph.html as a self-contained vis.js visualization

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

LLM Wiki Agent — Schema & Workflow Instructions

This wiki is maintained entirely by your coding agent. No API key or Python scripts needed — just open this repo in Codex, OpenCode, or any agent that reads this file, and talk to it.

How to Use

Describe what you want in plain English:

  • "Ingest this file: raw/papers/my-paper.md"
  • "What does the wiki say about transformer models?"
  • "Check the wiki for orphan pages and contradictions"
  • "Build the knowledge graph"

Or use shorthand triggers:

  • ingest <file> → runs the Ingest Workflow
  • query: <question> → runs the Query Workflow
  • lint → runs the Lint Workflow
  • build graph → runs the Graph Workflow

Directory Layout

raw/          # Immutable source documents — never modify these
wiki/         # Agent owns this layer entirely
  index.md    # Catalog of all pages — update on every ingest
  log.md      # Append-only chronological record
  overview.md # Living synthesis across all sources
  sources/    # One summary page per source document
  entities/   # People, companies, projects, products
  concepts/   # Ideas, frameworks, methods, theories
  syntheses/  # Saved query answers
graph/        # Auto-generated graph data
tools/        # Optional standalone Python scripts (require ANTHROPIC_API_KEY)

Page Format

Every wiki page uses this frontmatter:

---
title: "Page Title"
type: source | entity | concept | synthesis
tags: []
sources: []       # list of source slugs that inform this page
last_updated: YYYY-MM-DD
---

Use [[PageName]] wikilinks to link to other wiki pages.


Ingest Workflow

Triggered by: "ingest <file>"

Steps (in order):

  1. Read the source document fully
  2. Read wiki/index.md and wiki/overview.md for current wiki context
  3. Write wiki/sources/<slug>.md — use the source page format below
  4. Update wiki/index.md — add entry under Sources section
  5. Update wiki/overview.md — revise synthesis if warranted
  6. Update/create entity pages for key people, companies, projects mentioned
  7. Update/create concept pages for key ideas and frameworks discussed
  8. Flag any contradictions with existing wiki content
  9. Append to wiki/log.md: ## [YYYY-MM-DD] ingest | <Title>

Source Page Format

---
title: "Source Title"
type: source
tags: []
date: YYYY-MM-DD
source_file: raw/...
---

## Summary
2–4 sentence summary.

## Key Claims
- Claim 1
- Claim 2

## Key Quotes
> "Quote here" — context

## Connections
- [[EntityName]] — how they relate
- [[ConceptName]] — how it connects

## Contradictions
- Contradicts [[OtherPage]] on: ...

Query Workflow

Triggered by: "query: <question>"

Steps:

  1. Read wiki/index.md to identify relevant pages
  2. Read those pages
  3. Synthesize an answer with inline citations as [[PageName]] wikilinks
  4. Ask the user if they want the answer filed as wiki/syntheses/<slug>.md

Lint Workflow

Triggered by: "lint"

Check for:

  • Orphan pages — wiki pages with no inbound [[links]] from other pages
  • Broken links — [[WikiLinks]] pointing to pages that don't exist
  • Contradictions — claims that conflict across pages
  • Stale summaries — pages not updated after newer sources
  • Missing entity pages — entities mentioned in 3+ pages but lacking their own page
  • Data gaps — questions the wiki can't answer; suggest new sources

Output a lint report and ask if the user wants it saved to wiki/lint-report.md.


Graph Workflow

Triggered by: "build graph"

First try: python tools/build_graph.py --open

If Python/deps unavailable, build manually:

  1. Search for all [[wikilinks]] across wiki pages
  2. Build nodes (one per page) and edges (one per link)
  3. Infer implicit relationships not captured by wikilinks — tag INFERRED with confidence score; low confidence → AMBIGUOUS
  4. Write graph/graph.json with {nodes, edges, built: date}
  5. Write graph/graph.html as a self-contained vis.js visualization

Naming Conventions

  • Source slugs: kebab-case matching source filename
  • Entity pages: TitleCase.md (e.g. OpenAI.md, SamAltman.md)
  • Concept pages: TitleCase.md (e.g. ReinforcementLearning.md, RAG.md)

Index Format

# Wiki Index

## Overview
- [Overview](overview.md) — living synthesis

## Sources
- [Source Title](sources/slug.md) — one-line summary

## Entities
- [Entity Name](entities/EntityName.md) — one-line description

## Concepts
- [Concept Name](concepts/ConceptName.md) — one-line description

## Syntheses
- [Analysis Title](syntheses/slug.md) — what question it answers

Log Format

## [YYYY-MM-DD] <operation> | <title>

Operations: ingest, query, lint, graph

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.