Repository navigation
feat(tree): the graph as nested folders and files - #290
Merged
Merged
Conversation
Namespaces, collections, topics and entities become folders; each asset is its own file, a .json metadata sidecar and a .txt of its text. Shared layer (app/domain/filetree.py) for the S3, SMB and NFS servers, browsable now through GET /api/v1/tree and the MCP tools list_files and read_file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017MjvZcE48RUyNdztPNBgid
Per Adeel: drop the Topics and Entities folders and namespace.json; the tree is namespaces and collections holding each asset's files and sidecar. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017MjvZcE48RUyNdztPNBgid
…-88khx4 # Conflicts: # CHANGELOG.md
Collections nest by parent, topics by broader/narrower, entities by type; each folder holds its assets' files. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017MjvZcE48RUyNdztPNBgid
6 of 8 tasks
…-88khx4 # Conflicts: # CHANGELOG.md # mkdocs.yml
…-88khx4 # Conflicts: # CHANGELOG.md
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Before: there was no way to browse Lens as files.
After: the graph is a tree of folders and files. In each namespace,
Collections/nests collections,Topics/nests topics under their broader topics, andEntities/<type>/<name>/holds what mentions each entity. Every folder holds its assets' files, named<title> [<id>]: the original file, a.jsonmetadata sidecar, a.txtof the text, and a.pdfrendition for converted documents. You can browse it withGET /api/v1/treeandGET /api/v1/tree/file(byte ranges, ETag), and agents can use the MCP toolslist_filesandread_file.Motivation and Context
Adeel asked for the graph as a dir tree with graph nodes as nested folders and files at the leaves. This is the shared layer that the S3/WebDAV (next PR), SMB and NFS servers serve.
Types of changes
Checklist:
docs/accordingly.## UnreleasedinCHANGELOG.md.Done questions
list_files/read_file.🤖 Generated with Claude Code
https://claude.ai/code/session_017MjvZcE48RUyNdztPNBgid