Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

context-layer-dreaming

Skill by PostHog

Synthesizes recent organizational activity into a sourced context wiki. Built by PostHog for nightly or incremental context-layer dreams, it adds only facts that pass an admission test.

  • Score 84
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install context-layer-dreaming

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/context_layer/skills/context-layer-dreaming ~/.claude/skills/context-layer-dreaming

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install context-layer-dreaming in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Context layer dreaming is an agent skill from PostHog that improves a mounted context wiki with durable, sourced facts from recent organizational activity. It runs as a nightly or incremental dream. The agent reads the wiki's AGENTS.md and index.md, then reviews completed tasks, merged pull requests, completed loop runs, and newly created event and property definitions.

Each candidate fact must pass an admission test. It has to change a durable fact, decision, priority, ownership, reusable definition, constraint, or an evidenced recurring pattern. Updates record sources and review dates, and unresolved conflicts are marked as disagreements. The agent also logs wiki misses and publishes the result through a server-side publisher. It is for teams that maintain a sourced organizational context wiki.

Written from the project's SKILL.md and checked against it.

What it can do

  • Nightly and incremental dreamsRuns a context-layer dream over recent completed work within the run's activity windows.
  • Space scanningMatches public channels to Space pages and reads each matched page before editing.
  • Admission testAdmits only facts that change a durable fact, decision, priority, ownership, or constraint.
  • Sourced page updatesRecords sources and review dates and marks unresolved conflicts as disagreements.
  • Wiki miss loggingRecords wiki misses in the run summary to set health check priorities.
  • Lint and publishRuns scripts/lint, then publishes the dream through scripts/publish.

What you need

  • A mounted context wiki repository
  • Access to channel-list and activity sources
  • Access to the context layer API for publishing

Try asking

  • Run an incremental context-layer dream on this week's completed work.
  • Update the context wiki from merged pull requests and completed tasks.
  • Review recent loop runs and record any wiki misses in the run summary.

Good to know

  • Inspects at most 100 newest items per Space and per organization-wide source per run.
  • The server owns AGENTS.md, CLAUDE.md, index.md files and scripts/, and the skill must not edit them.
  • Publication counts as successful only when the publisher returns publish: landed.
  • GitHub signed-commit tools cannot commit the local bundle repository.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: products/context_layer/skills/context-layer-dreaming/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to context-layer-dreaming

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

context-layer-dreaming: common questions

What does context layer dreaming update?

It updates the owning pages in the mounted context wiki, limited to org/, areas/, decisions/, and existing project Space pages.

Which facts does it reject?

It rejects routine task completions, commit or PR mechanics, transient failures, raw transcripts, and facts that can be retrieved live from their authoritative system. It never infers a decision from a task's title, prompt, or plan alone.

Can it edit the index files?

No. The server owns AGENTS.md, CLAUDE.md, every index.md, and scripts/, and the skill must not change them.

How do I install context-layer-dreaming?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is context-layer-dreaming free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is context-layer-dreaming safe to use?

It scores 84 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to context-layer-dreaming?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

context-layer-dreaming Install

Add to stack

Loading.