Skip to main content

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.
All three need the same thing: shallow folders with non-overlapping purposes, and one home per entity. Qontext proposes a structure when your repository is first built. You can change it at any time.
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.md says what it contains; teams/sales/docs/file-2.md does 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
One primary home per cross-team project, linked from each team involved. Goal, owner, status, milestones, risks, and next steps go in 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
One folder per skill, named to match the 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
An overview carries durable state — what is true now, and the dated history behind it. Action items and open questions belong in the meeting record that raised them; here they go stale within days and lose their origin. Mark what a source does not establish, in place: “role not recorded”, “cause not confirmed”. Otherwise an agent answering from this file presents your inference as fact.

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
One meeting per file, and the home for action items and open questions — both stay tied to the conversation that produced them. Where the meeting exists in a source, link it and update this file when the source note changes.

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
Mark a superseded decision and leave it in place rather than deleting it.

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
The Confirmed and Not confirmed split is the point: an agent answering from this file must not pass an open hypothesis off as established.

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 customers and pipeline, and propose which record should survive.”
  • “Which folders contain no files, or only a single placeholder file?”
  • “Draft an overview.md for teams/sales/customers/acme from everything you can find about Acme.”