Docs/Knowledge
Structure and folders
Folders are first-class: create one with the New folder button (or knowledge.create with kind: "folder"), then file pages inside it. A folder's own content is its description — a short note on what belongs inside, so teammates and agents can triage where things live without opening every page. Below the description, every folder carries an "In this folder" index listing each child with a one-line summary. The index maintains itself: whenever a page inside is created, renamed, rewritten, moved, or deleted, the folder's index updates to match, so an agent reading just the folder always knows what is inside. Pages can still hold subpages for lightweight nesting.
Instead of letting the base grow flat, keep a small set of top-level folders for your main areas — for example Brand, Product, Support & Ops — whatever fits how your team works.
Folders are containers, not topics. File the actual content as pages inside — a "Refund policy" page inside a Support & Ops folder, not a paragraph on the folder itself. Agents are instructed to do the same: when they capture a new fact, they read the folder descriptions and nest it inside the matching folder, creating a new folder only when nothing fits.
Personal, team, and workspace folders
Every page and folder is public (whole workspace), team (members of one of your workspace's teams), or private (only its creator — no admin bypass). Folders extend this in two ways:
- Inheritance: a page or subfolder takes the permissions of the folder that contains it. A page filed under a public Product folder is public; a note added under your private folder stays private; a page in the Support team's folder is visible to the Support team. Making a note private means moving it into your Private folder. Moving it into a Shared folder shares it with the workspace. Permissions follow the destination folder.
- Restricted folders hide their subtree: anything nested under a private or team folder you cannot see is invisible to you — it does not appear in the page tree, search results, or any agent tool. If a public page ends up under a restricted folder, it is hidden along with the folder.
The folder index respects visibility too: a restricted child is only listed in its folder's "In this folder" section when everyone who can see the folder can also see the child, so private drafts never leak titles into a public folder page.
A simple pattern: keep the top-level folders public for shared team knowledge, give each team a team folder for its internal playbooks, and give yourself one private top-level folder for personal notes and drafts. Move a draft into the right folder when it is ready to share.
How agents see the structure
knowledge.list returns every visible folder and page with its kind, full path (for example Support & Ops / Refund policy), and one-line description, so agents triage by folder before opening pages. Loading a folder with knowledge.get returns its description plus the auto-maintained index and subpage list. knowledge.search is visibility-filtered per user: your private pages never appear in anyone else's results. When agents create pages they pass the folder as the parent, keeping the tree tidy from both directions.