<?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%2FAgent_Interface</id>
	<title>Help:Ephemera Agent/Agent Interface - 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%2FAgent_Interface"/>
	<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Agent_Interface&amp;action=history"/>
	<updated>2026-05-19T12:45:18Z</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/Agent_Interface&amp;diff=6&amp;oldid=prev</id>
		<title>EphemeraAdmin: Import: Help:Ephemera Agent/Agent Interface</title>
		<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Agent_Interface&amp;diff=6&amp;oldid=prev"/>
		<updated>2026-04-01T04:29:30Z</updated>

		<summary type="html">&lt;p&gt;Import: Help:Ephemera Agent/Agent Interface&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Ephemera Agent — Agent Interface}}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;AGENT&amp;#039;&amp;#039;&amp;#039; view is the main task interface. Type a natural language instruction and the agent will plan and execute the necessary MediaWiki API calls to complete it.&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;kbd&amp;gt;Ctrl+Enter&amp;lt;/kbd&amp;gt; to run, or click the &amp;#039;&amp;#039;&amp;#039;RUN&amp;#039;&amp;#039;&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
== Example Tasks ==&lt;br /&gt;
&lt;br /&gt;
Quick-access example task buttons appear below the input area (click the &amp;#039;&amp;#039;&amp;#039;▶ EXAMPLES&amp;#039;&amp;#039;&amp;#039; label to expand them). Clicking a button fills the prompt and runs it immediately.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
* &amp;#039;&amp;#039;Search for pages about &amp;quot;installation&amp;quot;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;Show me the last 10 recent changes&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;Create a page called &amp;quot;Sandbox&amp;quot; with placeholder content&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;List the first 20 pages in the main namespace&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;Get my current user info and rights&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;Append a timestamp to the bottom of the Main Page&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== The Agent Log ==&lt;br /&gt;
&lt;br /&gt;
The log shows the agent&amp;#039;s work in real time:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Symbol !! Colour !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ▶ || Gold || Your task (user input)&lt;br /&gt;
|-&lt;br /&gt;
| ◆ || Blue || Agent reasoning (thoughts before a tool call)&lt;br /&gt;
|-&lt;br /&gt;
| → || Green || API call being made&lt;br /&gt;
|-&lt;br /&gt;
| ← || Grey || API response received&lt;br /&gt;
|-&lt;br /&gt;
| ✓ || Green || Task complete — final result&lt;br /&gt;
|-&lt;br /&gt;
| ✗ || Red || Error&lt;br /&gt;
|-&lt;br /&gt;
| ●●● || Grey || Thinking (blinking dots while waiting for LLM)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Mode Indicator ==&lt;br /&gt;
&lt;br /&gt;
A pill in the header shows the current operational mode:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Mode !! Colour !! When Active&lt;br /&gt;
|-&lt;br /&gt;
| AGENT || Blue || Manual task execution&lt;br /&gt;
|-&lt;br /&gt;
| AUTOGEN || Green || Red link auto-generation (click mode)&lt;br /&gt;
|-&lt;br /&gt;
| BATCH || Amber || Sequential batch generation of red links&lt;br /&gt;
|-&lt;br /&gt;
| BROWSE || Grey || Browsing in the Browser panel&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Context Preview Panel ==&lt;br /&gt;
&lt;br /&gt;
After any call that goes through &amp;lt;code&amp;gt;agent.php&amp;lt;/code&amp;gt; (context-aware generative tasks), a collapsible &amp;#039;&amp;#039;&amp;#039;▶ CONTEXT&amp;#039;&amp;#039;&amp;#039; bar appears below the agent log. Click it to expand and see:&lt;br /&gt;
&lt;br /&gt;
* Detected task type&lt;br /&gt;
* Named entities extracted&lt;br /&gt;
* Token counts by section (instructions / encyclopedia / sources / talk / Wikipedia)&lt;br /&gt;
* Section count pills showing what was included&lt;br /&gt;
&lt;br /&gt;
This panel is essential for debugging context assembly once &amp;lt;code&amp;gt;agent.php&amp;lt;/code&amp;gt; is deployed.&lt;br /&gt;
&lt;br /&gt;
== Post-Edit Automation ==&lt;br /&gt;
&lt;br /&gt;
After every successful wiki edit, the agent automatically:&lt;br /&gt;
&lt;br /&gt;
# Adds the page to the bot account&amp;#039;s watchlist (visible at [[Special:Watchlist]])&lt;br /&gt;
# Appends an &amp;#039;&amp;#039;&amp;#039;EphemeraAgent Edit Record&amp;#039;&amp;#039;&amp;#039; section to &amp;lt;code&amp;gt;Talk:PageName&amp;lt;/code&amp;gt; with a human-readable line and a hidden JSON metadata block recording the exact model, provider, context settings, and timestamp&lt;br /&gt;
# Pre-computes the before/after diff for the &amp;#039;&amp;#039;&amp;#039;DIFF&amp;#039;&amp;#039;&amp;#039; tab&lt;br /&gt;
# Switches to BROWSER view and loads a live preview of the edited page&lt;br /&gt;
&lt;br /&gt;
The JSON metadata in the Talk page enables future features such as &amp;quot;regenerate with the same settings used to create this article.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Agent Loop Details ==&lt;br /&gt;
&lt;br /&gt;
The agent operates in an agentic loop with a maximum of 20 iterations:&lt;br /&gt;
&lt;br /&gt;
# LLM receives the task and available tools (&amp;lt;code&amp;gt;wiki_api_call&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;task_complete&amp;lt;/code&amp;gt;)&lt;br /&gt;
# LLM calls &amp;lt;code&amp;gt;wiki_api_call&amp;lt;/code&amp;gt; with method, params, and reasoning&lt;br /&gt;
# System executes the API call via &amp;lt;code&amp;gt;proxy.php&amp;lt;/code&amp;gt;&lt;br /&gt;
# Result is fed back into the conversation history&lt;br /&gt;
# Loop continues until LLM calls &amp;lt;code&amp;gt;task_complete&amp;lt;/code&amp;gt; or the iteration limit is reached&lt;br /&gt;
&lt;br /&gt;
All writes (edits, creates, moves, deletions) are performed one at a time. CSRF tokens are fetched fresh before each write operation.&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:EphemeraAgent]]&lt;/div&gt;</summary>
		<author><name>EphemeraAdmin</name></author>
	</entry>
</feed>