context-layer-dreaming

context-layer-dreaming is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 39 tokens per session (1,202 once invoked), scanned A, original, MIT.

A process for turning recent organizational activity into lasting, sourced pages in a context wiki. It reviews merge commits, public team spaces, and existing wiki content before making updates.

In plain words
What is it for?
Use it for nightly or incremental wiki updates based on recent repository and team-channel activity.
Why use it?
It helps preserve useful decisions and facts after work is completed without treating unsourced activity as reliable knowledge.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it for nightly or incremental wiki updates based on recent repository and team-channel activity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/context-layer-dreaming
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill context-layer-dreaming
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-layer-dreaming

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/context-layer-dreaming/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/context-layer-dreaming)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/context-layer-dreaming"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/context-layer-dreaming/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-layer-dreaming

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/context-layer-dreaming"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/context-layer-dreaming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,202 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01202
Opus 5.5 $0.00016 $0.00481
Sonnet 5.5 $0.00008 $0.00240
Haiku 4.5 $0.00004 $0.00120

Measured today against content hash 5497b9e2b0da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-layer-dreaming scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/context_layer/skills/context-layer-dreaming/SKILL.md · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context layer dreaming

Improve the mounted context wiki with durable, sourced facts from recent organizational activity.

Protocol

  1. Work in the mounted context wiki. Read AGENTS.md, index.md, and the last ten merge commits with git log --merges --format='%s%n%b' -10. The server owns AGENTS.md, CLAUDE.md, every index.md, and scripts/; never edit, delete, move, or replace them. Do not change the wiki's tooling to make a proposed edit pass.
  2. Take the activity windows from the run prompt. Start with Spaces: call channel-list, exclude the personal #me channel, and match every public channel id against the frontmatter of projects/<project-id>/spaces/*.md. The server scaffolds every public Space and regenerates its indexes before the dream starts. Read every matched page. If a page is unexpectedly missing, record wiki-miss: missing scaffold for <channel_id> in the run summary and leave structure repair to the server; do not create, move, or rename Space pages. On a first or seed dream, include every public Space page with no substantive content in the activity scan and inspect qualifying activity attributable to its channel. Populate an empty Space only when activity in the seed window passes the admission test; leave genuinely inactive Spaces untouched. Continue in priority order with completed tasks and their outcomes, merged pull requests, completed loop runs and summaries, and newly created event and property definitions. Use the recovery cutoff for completed tasks and their outcomes so a task that was still in progress during an earlier dream is reconsidered after completion, and the incremental cutoff for the other sources. A queued, running, test, demo, fixture, or abandoned task is not evidence of an organizational fact or decision. Inspect at most 100 newest activity items across all channel-scoped sources for each Space, and at most 100 newest items from each organization-wide source. Page through a source while it returns a next or next_cursor; for offset pagination, advance offset by the number of results returned. Stop when the applicable item budget is reached, the source is exhausted, or the oldest item is before the applicable cutoff. When a budget prevents covering the full window, record the oldest covered item, unreviewed source, and remaining cursor in the run summary. When a source is unavailable or a query fails, record that limitation in the run summary; do not treat it as evidence that the source contains no candidate facts.
  3. Review the same recent task and loop conversations for moments where the wiki itself failed the agent: context it needed that no content page held, a page that misled it, or a page it was told to read and clearly didn't need. Fix or create a content page when the admission test permits, and record each miss as a line in your run summary starting wiki-miss: — these lines set the health check's priorities and identify server-owned map changes for a later product update.
  4. List candidate facts before editing. For each candidate, record the completed source and read the existing owning page plus its directly linked context before deciding. Apply the admission test: a fact enters the wiki only if it changes a durable fact, decision, priority, ownership, reusable definition, constraint, or an evidenced recurring pattern. Existing context that identifies activity as dogfooding, testing, demo data, or fixtures defeats promotion into real organizational strategy. A contradiction is a reason to reject the candidate or preserve an explicit disagreement, never permission to silently overwrite the existing claim.
  5. Find the owning page through the index and update it. Record sources, set review_after for claims that will age, condense superseded text, and use **Disagreement:** for unresolved conflicts.
  6. Keep sourced Markdown changes only under org/, areas/, decisions/, and existing projects/<project-id>/spaces/ pages. Run scripts/lint; fix content errors without editing the linter, publisher, generated indexes, or repository instructions. Then run scripts/lint --report for the consolidation queue.
  7. Finish consolidation and the health check before publishing. Write a concise run summary to /tmp/dream-summary.md, including the reason for each deletion, and run scripts/publish --dream /tmp/dream-summary.md. The publisher creates the dated dream branch, commits the wiki edits locally, and sends the bundle to the context layer API. GitHub signed-commit tools cannot commit this local bundle repository. Report publication as successful only when the publisher returns publish: landed; publish: no changes means no changes were needed. A nonzero exit means publication failed: fix the reported error or state that the dream was not published.

Read the full file on GitHub · 30 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines 5497b9e2b0da
  2. 2mo ago Changed 26244bb6d94f
  3. 2mo ago First seen · 28 lines · 39 tokens per session scan A 0865bf1cc101

Subscribe to this mod's changes

context-layer-dreaming is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,202 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

context-layer-dreaming compared with skills from other repositories

context-layer-dreaming next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-layer-dreamingPostHog/posthog-fossSkill734todayMITA39Claude Code, Codex
orbit-notionnexu-io/open-designSkill110ktodayApache-2.0A117Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A123Claude Code
report-to-pdfasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A17Claude Code, Codex
legal-holdanthropics/claude-for-legalSkill10ktodayApache-2.0A68Claude Code
artifact-template-minimal-letterheadasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A54Claude Code, Codex
feishuHmbown/CodeWhaleSkill41kyesterdayMITA33Claude Code, Codex