Skip to content

Context Files

Context files are reference documents you upload that give agents the background knowledge they need about your business.

Where context files live

Context files are part of Knowledge (/knowledge) — the unified home for documents, context, guidelines, and connected folder vaults. They are no longer a separate surface; everything below still applies.

What It Does

Agents work best when they understand your organization. Context files are where you put that understanding — your product overview, company conventions, org chart, brand guidelines, and anything else agents should know.

Unlike memory (which agents build up over time), context files are documents you provide upfront. Think of them as the onboarding packet you would give a new team member.

Examples

Good candidates for context files include:

  • Product overview — what your company does, key products, and target customers
  • Company conventions — naming standards, formatting rules, approval processes
  • Org chart — who is on which team, reporting lines, key contacts
  • Brand guidelines — voice, tone, terminology, and style rules
  • Technical specs — API documentation, system architecture, data dictionaries
  • Process documents — standard operating procedures, escalation paths

Key Properties

PropertyDescription
FilenameName of the context file (e.g., product.md)
ContentThe text content of the file
Activation ModeWhen the file is included in agent context
Source URLOptional — fetch content from a URL
Sync Schedulemanual, daily, or weekly

Activation Modes

You control when each context file is included in an agent's prompt.

ModeBehaviorBest For
AlwaysIncluded in every agent runCritical context — company name, key policies, core terminology
When relevantIncluded only when semantically similar to the current taskDomain-specific knowledge — product specs, department procedures
NeverStored but not injected into agent contextArchived or draft documents you want to keep but not use yet

TIP

Keep your "always" files small and focused. Every always-on file uses part of the agent's context window, leaving less room for the actual task. Put detailed reference material in "when relevant" files instead.

URL Sync

You can link a context file to a URL. Pencel will periodically fetch the latest content, keeping your agents up to date with changing information.

  • Manual — you trigger the sync yourself from Knowledge
  • Daily — Pencel fetches the URL once per day
  • Weekly — Pencel fetches the URL once per week

This is useful for living documents like wikis, dashboards, or shared docs that change frequently. Instead of manually updating the file, point it at the source and let Pencel handle the rest.

INFO

URL sync fetches plain text content. If your source is a web page, Pencel extracts the readable text and discards navigation, ads, and other non-content elements.

Context Files vs. Memory

These two features complement each other:

Context FilesMemory
SourceYou provide themAgents generate them
UpdatesManual or URL syncAutomatic after runs
ContentStatic reference materialDynamic learnings and patterns
Best forBackground knowledgeOperational experience

Use context files for what your agents need to know on day one. Use memory for what they learn on the job.

What's Next

  • Memory — how agents build knowledge over time
  • Agents — agents use context files as part of their system prompt
  • Guidelines — set rules for how agents interpret context