NenjoNenjo Docs
PagesLibrary

Library

Platform source material, knowledge packs, document metadata, graph relationships, and agent retrieval.

Library

The Library is Nenjo's source-material surface. It stores explicit knowledge and exposes it to agents through knowledge pack indexes, metadata search, graph traversal, and full-document reads.

Use the Library for material agents should be able to find, cite, and reason from:

  • Architecture and product references
  • Policies, procedures, and compliance rules
  • Domain glossaries and taxonomies
  • Research notes and source-backed guidance
  • Project-relevant references that should stay explicit

Library knowledge is separate from project settings, memory, artifacts, and packages.

Resources it contains and manages

ResourceWhat it manages
Knowledge packsNamed collections of source documents (platform-managed or package-installed)
DocumentsIndividual knowledge items with title, summary, selector, kind, tags, content, and version
Graph edgesExplicit depends_on, references, classifies, etc. relationships between documents for traversal
IndexesDerived pack indexes and embeddings used by retrieval tools (search_knowledge, rendered {{ lib.<slug> }})

What belongs where

NeedUse
Source material, policy, docs, referencesLibrary
Learned preferences, corrections, recurring factsMemory
Saved generated outputs or workspace filesArtifacts
Work items, dependencies, acceptance criteriaProject tasks
Short project orientation and metadataProject settings
Versioned installable resource bundlesPackages

Agent retrieval flow

Library variables render compact indexes, not full source content. When an agent needs Library material, it should:

  1. Use list_knowledge_packs or a rendered {{ lib.<pack_slug> }} index to find available packs.
  2. Use search_knowledge to find candidate documents.
  3. Use list_knowledge_neighbors to follow outgoing edges from the most relevant documents.
  4. Use read_knowledge_doc for the selected full documents.
  5. Answer from the documents actually read.

This keeps prompts small and prevents agents from answering source-backed questions from summaries alone.

Graph and globe views

The Library UI is not only a document list. Use the visual views when the structure of the knowledge matters:

ViewUse it for
GlobeSeeing the whole pack at once: clusters, isolated documents, dense areas, and high-value hubs
GraphInspecting the local neighborhood around one document and checking its outgoing relationships
Document listSearching, filtering, editing metadata, and opening source content
Library knowledge pack globe view showing document clusters, high-value hubs, and isolated nodes
Globe view — the whole pack at once: clusters, high-value hubs, and isolated documents.

The globe helps humans spot missing structure before agents hit it at runtime. If an important policy, guide, or reference is isolated, an agent that starts from a nearby seed document will not naturally traverse to it. Add a meaningful outgoing edge from the seed material that should lead there.

Library knowledge graph view showing a selected document and its outgoing relationships
Graph view — the local neighborhood and outgoing edges around a selected document.

Write surface

Library maintenance uses the library:write scope and the active write-enabled mode. Agents should not treat package-installed knowledge as mutable. User-managed Library documents can be created, updated, and deleted. Library pack deletion removes pack metadata, documents, edges, and object storage completely.

Prompt example

Knowledge index:
{{ lib.product_docs }}

When the user asks for a policy, architecture, or reference-backed answer,
search the Library, read the selected source docs, and cite the document titles
or selectors used.

See Knowledge Graphs for the document/graph model and retrieval flow, and Authoring Library Knowledge for document shape.

On this page