Last updated: August 25, 2026
Marginalia is a local-first browser extension. It does not collect, transmit, sell, or share any data. There are no servers, no analytics, no tracking, and no third-party services.
| import type { Agent, PluginAPI, PluginToolContext } from '@ampcode/plugin' | |
| export const description = | |
| 'Adds the librarian tool: a GPT-6 Astra research subagent running the retired Librarian prompt. Clones repositories outside the workspace into /tmp and explains their code and history.' | |
| const instructions = `You are a fast, parallel codebase research agent: clone the repositories the user asks about | |
| into this orb and produce source-backed findings about architecture, implementation, flow, usage, | |
| and history, as per the user's query (provided in the first message). | |
| ## Cloning |
| import type { Agent, PluginAPI, PluginToolContext } from '@ampcode/plugin' | |
| export const description = | |
| 'Adds the finder tool: a fast, read-only GPT-6 Astra codebase search subagent running the retired Finder prompt. Returns relevant files and line ranges.' | |
| const instructions = `You are a fast, parallel code search agent. | |
| ## Task | |
| Find files and line ranges relevant to the user's query (provided in the first message). |
| import type { PluginAPI } from '@ampcode/plugin' | |
| export const description = | |
| 'Adds the oracle tool: a read-only GPT-6 Astra (xhigh) subagent running the retired Oracle prompt, for user-requested reviews and unresolved high-impact judgment calls.' | |
| const instructions = `You are the Oracle — an expert engineering advisor called when the main agent needs deeper reasoning than it can provide itself. You give high-quality technical guidance, code reviews, architectural advice, and strategic planning for software engineering tasks. | |
| You are a subagent invoked zero-shot: no one can ask you follow-up questions, and no one can give you follow-up answers. Everything you need to be useful must come from the task, the attached files, your tool calls, and your own reasoning. Make your single response complete. | |
| Key responsibilities: |
| from typing import List, Optional | |
| from dataclasses import dataclass | |
| import requests | |
| from lxml import html | |
| import logging | |
| import pdfkit | |
| from urllib.parse import urljoin, urlparse, urlunparse | |
| import time | |
| import re |
| """ | |
| This file shows a bunch of functions that can be used to evaluate a summary. | |
| """ | |
| import language_tool_python | |
| import statistics | |
| import textstat | |
| import spacy | |
| from typing import Tuple |