Help:Ephemera Agent/Context Tab

From Encyclopedia Ephemera

Overview

The CONTEXT tab is the third main view in the Ephemera Agent interface (alongside AGENT and BROWSER). It has two purposes:

  1. Inspect — shows the context package assembled by agent.php for the most recent agent task: which instruction, encyclopedia, source, talk, and Wikipedia pages were included, how many tokens they used, and what task type was detected.
  2. Compose — provides a stub/prompt field and a set of tools for assembling custom context and triggering content generation without writing a task prompt manually.

Context Panel (right side)

After every context-aware agent run, the panel updates with:

  • Task type — the classifier's determination (e.g. create_stub, stub_expansion)
  • Token counts — total, instructions, encyclopedia, sources
  • Page list — all pages that were included, grouped by section (ENCYCLOPEDIA, INSTRUCTIONS, SOURCES, TALK PAGES, WIKIPEDIA). Click any page to load it in the Browser tab.

Custom Pages Section

Pages manually added via the + CONTEXT button (in the Browser toolbar) appear here under CUSTOM PAGES. These pages are force-included in the context package for every subsequent agent call, regardless of what the classifier selects.

Use CLEAR ALL to remove all custom pages, or click ✕ on any individual page.

Stub / Prompt Field

A textarea at the top of the Context tab. It is populated in two ways:

  1. Auto-populate — when you browse to a short page (under 1,500 characters) or a page containing {{stub}}, the field is filled automatically with that page's wikitext and the page title is noted below the field.
  2. Manual — paste any text directly into the field.

POST ↑

Posts the stub field content directly to the wiki as a new or updated page — no LLM involved. If any Custom Pages are loaded, they are appended as a == See also == section.

Requires a known page title (auto-populated from browsing). The button is disabled if no title is set.

EXPAND ↵

Sends the stub field content to the LLM agent with the task type stub_expansion, using the full context assembly pipeline (plus any custom pages). After the agent finishes, the browser switches to the newly expanded page.

See Help:Ephemera Agent/Stub Workflow for the complete workflow.