Prompt Engineering Context Persistence

Persistent Project Context That Survives Every Chat

A handoff carries one conversation forward. Persistent context is different: facts that are true in every chat, written once and rarely touched.

Overview

There are two kinds of context, and mixing them up wastes effort. State is what's happening now — the open task, the last decision — and a handoff carries it into the next session. Identity is what's always true — and that's what persists. This setup builds the persistent layer for Forge, an open-source CLI that runs across Linux, macOS, and Windows. The facts here don't expire: commands follow noun-verb, Windows is a first-class target, never assume a Unix shell. Write it once, paste it into every project, and stop rebuilding the basics each session.

How to use this resource

  1. Separate identity from state

    Keep what's always true here; let a handoff carry what's happening now.

  2. Write the durable facts

    Cross-platform support, command patterns, never-assume rules that don't expire.

  3. Reuse it indefinitely

    One profile, every session, edited only when the project itself changes.

Why This Works

  • Durable identity and per-session state are different jobs — this owns the durable half
  • Facts that never expire only need to be written once
  • The never-assume list locks in the project's hardest-won lessons permanently

Best for

  • Long-running projects across many AI sessions
  • Cross-platform tools with environment gotchas
  • Anyone separating durable facts from in-flight work

Not for

  • Continuing an in-progress task — use the Context Handoff Builder
  • Distilling a finished conversation into a prompt — use the Conversation-to-Prompt Builder

FAQ

What's the difference between this persistent context and a session handoff?

This holds identity — facts "always true" in every chat, like Forge running across Linux, macOS, and Windows, or commands following the noun-verb pattern (forge template add). A handoff carries state — the open task, the last decision — into the next session. The notFor line routes in-progress work to the Context Handoff Builder. You paste this profile once into your assistant's project instructions so it loads every conversation.

Where do I paste this profile so my assistant loads it in every chat?

Into your assistant's persistent-instruction slot — the profile says "Paste this into your AI tool's custom or project instructions so it loads in every conversation." That's where its Never Assume rules (don't assume a Unix shell, don't drop returned errors) keep applying. It's project knowledge, not a task persona — for a role or escalation behavior the note points you to the System Prompt Generator.

More resources from Project Context Builder

Resources that pair well

Related tools

Workflows that use this resource

Guides for this resource

Tip: Save time by exploring related resources and tools that integrate with this resource.