There is a real tension in agent work: more context usually produces better decisions, but more context also creates a larger surface for accidental disclosure, stale facts, and irrelevant detail. The answer is not to starve the agent or dump an entire working history into every prompt. It is to give each audience the minimum sufficient context for its job.

That means separating two questions that are often mixed together: what does the agent need to complete the work? and what can safely appear in the final artifact? The first can be narrow and private. The second must be deliberately public.

§1Choose the audience first

Context is not universally safe or unsafe. It is safe for a specific audience and purpose. A temporary task packet, a project rule file, and a public article have different readers, different lifetimes, and different disclosure limits.

RULE — AUDIENCE BEFORE DETAIL

Decide who can read the artifact, how long it will exist, and what action it enables before adding facts. If the audience is public, every detail must earn its place.

A useful default is to treat every generated page, screenshot, report, preview, and copied prompt as potentially shareable. That changes the editing question from “is this secret?” to “does the reader need this?”

§2Sort context into four classes

Classification makes the decision mechanical. Each fact belongs to one of four classes:

ClassWhat belongs herePublic treatment
PublicPublished interfaces, documented behaviour, public methodsUse when relevant and current
Project-internalUnreleased plans, internal routes, operational historyAbstract the method; remove the identifiers
SecretCredentials, tokens, private keys, protected endpointsNever copy, paraphrase, or expose
PersonalContact details, private schedules, addresses, private conversationsRemove unless explicitly authorised for that audience

The important distinction is between project-internal and secret. Internal context can often be transformed into a useful public method. A secret cannot. “We verify every consumer of a changed asset” preserves the lesson; the internal asset name and deployment history add nothing for a public reader.

§3Use minimum sufficient context

The strongest prompt is not the longest one. It is the smallest packet that lets the agent make the right decision without guessing. For most implementation work, that packet has five parts:

  1. Outcome: the observable state that should be true when the work is done.
  2. Scope: the files, routes, or surfaces the task may touch.
  3. Constraints: the facts and behaviours that must not change.
  4. Evidence: the checks that can prove the outcome.
  5. Stops: the conditions that require a report instead of improvisation.

None of those require a client name, a private hostname, a personal contact, or a copied conversation. The agent needs the shape of the decision, not the identity of everyone involved.

§4Keep the logic; remove the identity

When useful knowledge comes from private work, transform it before publishing. Strip away the nouns that identify the project and preserve the verbs that explain the method.

turn a private working note into a public pattern

WORKING NOTE
Change <internal surface>, then verify <named consumers> and
the protected production response.

PUBLIC PATTERN
When a shared asset changes, inventory every consumer, rebuild,
verify the rendered output, and compare the deployed response.

The second version is not vague. It retains the sequence, the blast-radius rule, and the evidence requirement. It simply removes facts that do not help the public reader apply the method.

THE NOUN–VERB TEST

Circle the proper nouns, exact identifiers, contact details, paths, and private numbers. Delete or generalise them. Then check whether the verbs still teach a complete workflow. If they do, the public version has kept what matters.

↑ contents

§5Write a public-safe task packet

A reusable task packet can be detailed without becoming identifying. It gives the agent authority and evidence while keeping private facts behind placeholders or source-of-truth references.

copy-usable public-safe packet

AUDIENCE
This output is public.

OUTCOME
Describe the observable result without naming a private project.

SCOPE
List only the allowed public files or generic surface types.

SOURCE OF TRUTH
Use the approved source supplied for this run. Do not restate
protected values in the output.

EXCLUSIONS
No names, contact details, credentials, local paths, private URLs,
private metrics, copied conversations, or unreleased plans.

EVIDENCE
Build, link check, responsive browser pass, and deployed preview.

STOP IF
The result requires an excluded fact or the source of truth conflicts.

The source can still contain the detail required for the task. The packet makes clear that the output must not reproduce it.

§6Separate the context layers

One giant context file eventually becomes contradictory and impossible to share safely. Use layers with clear ownership:

Each fact should have one owner. Public rules should not duplicate changing private facts, and public artifacts should not become accidental storage for temporary operational context.

§7Run the disclosure gate

Before a public build or preview, scan both the source and the rendered result. Automated checks catch obvious patterns; a human review catches meaning.

01 · DISCLOSURE PASS

Seven questions before publish

  1. Does the page name a private organisation, project, product, or person?
  2. Does it contain an email address, phone number, location detail, or private schedule?
  3. Does it expose a local path, protected route, credential, token, or configuration value?
  4. Does an example preserve a private number or internal metric that could be generalised?
  5. Does a screenshot reveal tabs, accounts, notifications, filenames, or browser history?
  6. Does the public lesson remain complete after those details are removed?
  7. Did the rendered preview and machine-readable metadata receive the same review?

The last question matters. A clean paragraph can sit beside revealing structured data, social metadata, filenames, or generated navigation. Review the whole artifact, not only the prose.

§8Avoid the two failure modes

Oversharing copies the whole working context into the output and hopes the reader ignores it. Over-redaction removes so much meaning that the lesson becomes “be careful” with no usable method.

The middle path is precise: publish the decision structure, the repeatable sequence, the constraints, and the evidence. Remove the identity, access details, protected values, and private history.

QUALITY TEST — CAN A STRANGER APPLY IT?

A public-safe workflow is successful when someone outside the original project can use it without learning anything they were not meant to know.

Steal this

  • Choose the audience before deciding which details belong.
  • Classify context as public, project-internal, secret, or personal.
  • Give agents the minimum sufficient packet: outcome, scope, constraints, evidence, and stops.
  • Keep the verbs that explain the method; remove nouns and values that identify private work.
  • Separate public rules, private facts, temporary task packets, and public artifacts.
  • Scan prose, screenshots, metadata, filenames, and rendered previews before publish.