Overview
Three consumers read your folder structure:- People browsing the Context tab.
- Retrieval agents traversing paths with
qontext_ls,qontext_find,qontext_grep, and hybrid search. - Continuous update agents placing each incoming record.
Recommended structure
Organize the top level by ownership and lifecycle, not by topic:agents
skills
company
teams
engineering
sales
projects
This resolves the ambiguous case: a customer account belongs to the team that owns it, while a time-boxed migration for that same customer belongs in
projects/ and links back to the account.
Matches the repository root structure file template.
By business function instead.
engineering, growth, operations, product works when every topic has one departmental home. It breaks as soon as work crosses functions, because a cross-team initiative then has several plausible homes.Principles
- One entity, one primary record. One file per customer, person, project, or topic. Search before creating; update rather than add a second record.
- Link instead of copying. References are returned inline as file IDs, so an agent follows a link straight into
qontext_cat. A copy diverges silently; a link cannot. - Keep folder purposes non-overlapping. When continuous updates are enabled for a source, its agents read the structure files of every folder that could hold a record. Where two folders both qualify, strictness decides placement, not your intent.
- Name for retrieval. Agents traverse paths before reading content.
teams/sales/customers/acme/overview.mdsays what it contains;teams/sales/docs/file-2.mddoes not. - Create folders when content arrives. Every empty folder is a path an agent must consider and rule out.
Access boundaries follow your folder tree.Access widens deeper in the tree but never narrows — restricting a subtree means setting the narrower access on its parent. Content that only some members or API keys should reach needs its own subtree from the start, not a restricted file inside an open folder. See Access management.
Naming conventions
Date prefixes sort chronologically and make a record’s period visible in a
qontext_ls listing without reading it.
Folder patterns
Sales and customer knowledge
teams
sales
customers
acme
overview.md
meetings
2026-09-04-quarterly-review.md
support
sso-login-failure.md
contacts
jane-smith.md
pipeline
northstar
overview.md
rev-ops
deal-stages.md
qualification-criteria.md
sales-handoff.md
Northstar has only
overview.md because nothing else exists yet — the subfolders appear when content does.
One location per company. Let your CRM decide pipeline or customers; when the status changes, move the folder in the Context tab rather than creating a second record. Use the sales structure file template to automate this layout.
Projects
projects
customer-portal
overview.md
decisions
2026-09-02-authentication.md
meetings
2026-09-04-kickoff.md
overview.md; decisions and meetings get their own files. Use the project summaries structure file template.
Agent skills
agents
skills
prepare-customer-meeting
SKILL.md
references
briefing-format.md
name in SKILL.md. Supporting files go in references/, scripts/, or assets/ and load only when needed. Link to shared company knowledge rather than copying it into each skill. See Skills distribution.
File templates
Fictional examples. Adapt the sections, not the content.Entity overview
Place at:<entity folder>/overview.md
Use when: A customer, prospect, person, product, or team needs one record answering the common questions.
overview.md
Meeting record
Place at:<entity folder>/meetings/YYYY-MM-DD-<topic>.md
Use when: A conversation produced decisions or actions that later work depends on.
2026-09-04-quarterly-review.md
Decision record
Place at:projects/<project>/decisions/YYYY-MM-DD-<topic>.md
Use when: A choice constrains later work and its reasoning must outlive the people who made it.
2026-09-02-authentication.md
Issue record
Place at:<entity folder>/support/<issue>.md
Use when: A distinct problem needs its own investigation thread, separate from the entity overview.
sso-login-failure.md
Anti-patterns
Check your structure
Each case should have exactly one answer:
Two plausible homes means that boundary is not distinguishable yet. Tighten the folder definitions, then record the rule in the folder’s structure file.
Set up your structure
1
Shape the top level
In the Context tab, create your top-level folders. Every one is a boundary you will maintain, so keep the count small.
2
Write the root structure file
Add
/.qontext.structure.md from the repository root template. Root guidance is inherited by every folder, so shared conventions belong here and nowhere else.3
Set access on folders, not files
Set restrictions on the parent of the subtree you want to limit. See Access management.
4
Add folder-specific guidance
Give folders with their own rules — accounts, policies, projects — a structure file covering only what differs from the root.
5
Review what lands
Watch the Changes tab. Misplacements and duplicates point at a folder boundary that needs sharpening, not a missing folder.
Prompts to get started
- “List my top-level folders and tell me which two have the most overlapping purpose.”
- “Find companies that appear in both
customersandpipeline, and propose which record should survive.” - “Which folders contain no files, or only a single placeholder file?”
- “Draft an
overview.mdforteams/sales/customers/acmefrom everything you can find about Acme.”