Getting Started

Quick Start

git clone https://github.com/YOUR_USER/JanusLM.git
cd JanusLM

Open the repo in any coding agent — each one picks up its own instruction file automatically:

claude       # reads CLAUDE.md
codex        # reads AGENTS.md
gemini       # reads GEMINI.md

Works with Cursor (.cursorrules) and Cline (.clinerules) too.

On the very first prompt, the agent detects that Python dependencies are missing and installs them automatically — no manual setup needed.

Usage

You can talk to the agent in natural language or use shorthand:

ingest raw/report.md                       # add a document to the wiki
query: what does the wiki say about agents?   # ask a question across the KB
health                                     # structural integrity checks
build graph                                # generate the knowledge graph

Or just say what you need:

"Ingest this paper and tag it as ai-strategy"
"What does the wiki say about RAG across all projects?"
"Are there contradictions in project-alpha?"
"Build the graph and tell me what's most connected"

try it

Ingest raw/report.md and tag it as ai-strategy

JanusLM is multi-agent by design, optimized for Claude but it works with any coding agent that can read markdown instructions and run Python scripts — the workflows and tools are the same for everyone.

The Python scripts in tools/ can also run standalone from terminal, without a coding agent.

Commands

Everything you can do with JanusLM — via the agent or standalone from terminal.

Knowledge Base

CommandWhat it does
ingest raw/doc.mdRead a document, extract entities and concepts, create/update wiki pages
query "your question"Search the wiki and synthesize an answer with citations
healthStructural integrity checks — empty pages, index sync, log coverage, tag validation
healAuto-fix issues found by health (creates missing pages, repairs links)
statsWiki dashboard — page counts by type, tag distribution, link density
forgetRemove a project, entity, or concept from the wiki (with safety confirmation)
rename tagRename a project tag across all wiki pages (frontmatter + sections)
wiki-indexManage wiki/index.md entries deterministically (add, remove, update descriptions)
wiki-protectCheck or toggle wiki permission flags (can_modify, can_forget, can_anonymize_pii)
wiki-logShow recent wiki activity — ingest, heal, graph operations with date filtering
wiki-validateCheck domain affinity of a document against a project tag (TF-IDF + entity/concept overlap)
wiki-termsExtract term frequencies from a document for blind review during ingest
helpShow all capabilities with natural language examples

Knowledge Graph

CommandWhat it does
build graphExtract wikilinks, detect communities, generate graph data and analysis report
print graphRender interactive graph.html from the graph data

File Conversion & Maintenance

CommandWhat it does
/convertConvert any non-markdown file to markdown for ingest
/privacy-modeEnable or disable local PII anonymization (Claude Code only)
/scaffoldCheck project structure and recreate any missing directories or scaffold files
/setupInstall or reinstall Python dependencies

All scripts accept --help for full options. Most also support --json for machine-readable output and --save to write results to the wiki.