<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FConfiguration</id>
	<title>Help:Ephemera Agent/Configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FConfiguration"/>
	<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Configuration&amp;action=history"/>
	<updated>2026-05-19T11:48:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Configuration&amp;diff=5&amp;oldid=prev</id>
		<title>EphemeraAdmin: Import: Help:Ephemera Agent/Configuration</title>
		<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Configuration&amp;diff=5&amp;oldid=prev"/>
		<updated>2026-04-01T04:29:29Z</updated>

		<summary type="html">&lt;p&gt;Import: Help:Ephemera Agent/Configuration&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Ephemera Agent — Configuration}}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== API Keys File ==&lt;br /&gt;
&lt;br /&gt;
Rather than pasting API keys every session, you can create a local &amp;lt;code&amp;gt;ephemera-keys.json&amp;lt;/code&amp;gt; file and load it with one click per session. Keys are read into browser memory only — they are never sent to the server or written to disk.&lt;br /&gt;
&lt;br /&gt;
=== File Format ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;anthropic&amp;quot;: &amp;quot;sk-ant-YOUR-KEY-HERE&amp;quot;,&lt;br /&gt;
    &amp;quot;openai&amp;quot;:    &amp;quot;sk-YOUR-KEY-HERE&amp;quot;,&lt;br /&gt;
    &amp;quot;gemini&amp;quot;:    &amp;quot;AIzaYOUR-KEY-HERE&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;custom_endpoints&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;name&amp;quot;:    &amp;quot;Groq Llama&amp;quot;,&lt;br /&gt;
      &amp;quot;url&amp;quot;:     &amp;quot;https://api.groq.com/openai/v1/chat/completions&amp;quot;,&lt;br /&gt;
      &amp;quot;model&amp;quot;:   &amp;quot;llama-3.3-70b-versatile&amp;quot;,&lt;br /&gt;
      &amp;quot;api_key&amp;quot;: &amp;quot;gsk_YOUR-KEY-HERE&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete entries for providers you don&amp;#039;t use. The &amp;lt;code&amp;gt;custom_endpoints&amp;lt;/code&amp;gt; array is optional.&lt;br /&gt;
&lt;br /&gt;
=== Loading the File ===&lt;br /&gt;
&lt;br /&gt;
# In the &amp;#039;&amp;#039;&amp;#039;LLM&amp;#039;&amp;#039;&amp;#039; tab, click &amp;#039;&amp;#039;&amp;#039;📂 Choose keys file&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Select your &amp;lt;code&amp;gt;ephemera-keys.json&amp;lt;/code&amp;gt;&lt;br /&gt;
# The &amp;#039;&amp;#039;&amp;#039;LOADED KEYS&amp;#039;&amp;#039;&amp;#039; section shows which providers were found (first 8 characters of each key for verification)&lt;br /&gt;
# The API key field for the current provider auto-fills&lt;br /&gt;
# Switching providers auto-fills that provider&amp;#039;s key&lt;br /&gt;
&lt;br /&gt;
== Settings Tab ==&lt;br /&gt;
&lt;br /&gt;
=== LLM Tiers ===&lt;br /&gt;
&lt;br /&gt;
Two independent model pickers: &amp;#039;&amp;#039;&amp;#039;Planner&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Generator&amp;#039;&amp;#039;&amp;#039;. The planner handles task classification and entity extraction — use a fast, cheap model. The generator handles actual content creation — use the best model available.&lt;br /&gt;
&lt;br /&gt;
Dropdowns show only providers that currently have a key loaded. Settings persist via localStorage.&lt;br /&gt;
&lt;br /&gt;
=== Red Link AutoGen ===&lt;br /&gt;
&lt;br /&gt;
; Enable red link detection&lt;br /&gt;
: When enabled, red links in the browser preview pane are highlighted with a dashed underline and a ⚡ indicator.&lt;br /&gt;
&lt;br /&gt;
; Click to generate (explore mode)&lt;br /&gt;
: Clicking a red link triggers the agent to create that page immediately. The new page loads in the preview pane. The wiki grows as you browse.&lt;br /&gt;
&lt;br /&gt;
; Batch only&lt;br /&gt;
: Red links are highlighted but clicking does nothing. A &amp;#039;&amp;#039;&amp;#039;⚡ Generate N red links&amp;#039;&amp;#039;&amp;#039; button appears in the browser toolbar to process them all sequentially.&lt;br /&gt;
&lt;br /&gt;
; Context depth&lt;br /&gt;
: Controls how much wiki context is gathered before generation. &amp;#039;&amp;#039;&amp;#039;Minimal&amp;#039;&amp;#039;&amp;#039; uses only the World Bible and page title (works immediately). &amp;#039;&amp;#039;&amp;#039;Standard&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Deep&amp;#039;&amp;#039;&amp;#039; require the context assembly PHP pipeline to be deployed.&lt;br /&gt;
&lt;br /&gt;
; Page type to generate&lt;br /&gt;
: Auto-detect, Encyclopedia article, or Source document.&lt;br /&gt;
&lt;br /&gt;
; Add real-world Wikipedia context&lt;br /&gt;
: Fetches the introductory paragraph of the matching Wikipedia article for each named entity. Labelled as out-of-universe reference — for scientific and historical grounding only. Off by default.&lt;br /&gt;
&lt;br /&gt;
=== Context Assembly ===&lt;br /&gt;
&lt;br /&gt;
Placeholder controls for context assembly settings (active once &amp;lt;code&amp;gt;agent.php&amp;lt;/code&amp;gt; is deployed). Currently these values are controlled via [[Instructions:Config]] on the wiki.&lt;br /&gt;
&lt;br /&gt;
== Wiki-Native Configuration Model ==&lt;br /&gt;
&lt;br /&gt;
Ephemera Agent follows a &amp;#039;&amp;#039;&amp;#039;wiki-native configuration model&amp;#039;&amp;#039;&amp;#039;: important runtime settings are stored on wiki pages where they can be reviewed and edited without touching PHP files.&lt;br /&gt;
&lt;br /&gt;
== Instructions:Config ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;[[Instructions:Config]]&amp;lt;/code&amp;gt; wiki page controls all runtime behavior of the context assembly pipeline. Edit it on the wiki to change agent behavior without touching PHP files.&lt;br /&gt;
&lt;br /&gt;
Key settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
! Setting !! Default !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;max_tokens&amp;lt;/code&amp;gt; || 20000 || Total token budget for assembled context&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;max_depth&amp;lt;/code&amp;gt; || 2 || Instruction dependency graph traversal depth&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;fully_resolve&amp;lt;/code&amp;gt; || false || If true, resolve entire dependency graph regardless of depth&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;max_related_pages&amp;lt;/code&amp;gt; || 5 || Pages from 1-hop link expansion (top-k by co-occurrence)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;max_sources&amp;lt;/code&amp;gt; || 5 || Source documents retrieved per named entity&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;hop_depth&amp;lt;/code&amp;gt; || 1 || Link expansion hops (1 = direct links only)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;include_talk&amp;lt;/code&amp;gt; || true || Include filtered talk page sections in context&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;use_wikipedia&amp;lt;/code&amp;gt; || false || Fetch Wikipedia intros for named entities&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;max_wikipedia_lookups&amp;lt;/code&amp;gt; || 3 || Maximum Wikipedia lookups per context build&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Changes take effect immediately on the next agent call — no server restart required. If this page is missing or contains invalid JSON, all settings fall back to PHP defaults.&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:EphemeraAgent]]&lt;/div&gt;</summary>
		<author><name>EphemeraAdmin</name></author>
	</entry>
</feed>