← Catalog

@introspection-ai/operator

The Introspection Operator: a Recipe and skills that build an agent with its owner (brainstorm, draft and review).

Package

Install

Install with PiG

pig install npm:@introspection-ai/operator

Install with Pi

pi install npm:@introspection-ai/operator
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "issues": [
    {
      "provider": "introspection"
    }
  ],
  "skills": [
    "skills"
  ],
  "prompts": [
    "prompts"
  ],
  "channels": [
    {
      "commands": [
        "reply",
        "send",
        "list",
        "read",
        "react",
        "fetch_file"
      ],
      "provider": "slack"
    }
  ],
  "documents": [
    {
      "format": "docx"
    },
    {
      "format": "pdf"
    }
  ],
  "extensions": [
    "extensions/workspace",
    "extensions/runtime"
  ]
}

README

Written by the package's publisher, shown as published in version 0.4.11 (README.md). PiG does not review it.

Introspection Operator

The Operator is the agent that builds, deploys and improves other agents (Recipes) on Introspection. This repository holds the Operator: its Recipe, its skills and the evals that measure it, so a change to how the Operator works and the evidence that it helps land in the same pull request. Everything here is written from scratch; nothing is carried over from the previous Operator.

FolderWhat it is
skills/The Operator's skills, published in @introspection-ai/operator
SYSTEM.md, agents/The Operator Recipe: the repository root is the Recipe, so its skills are the ones in skills/. agents/build.yaml runs build end to end, then deploy, improve for an agent that is already deployed, and improve-memory for one that keeps memory per subject, before or after deploy: see Run build locally
evals/The evals that measure each loop (to come)
docs/DESIGN.md: what the Operator is being rebuilt to, and the decisions still open

Choose a skill

Each skill is one step of a phase, and each step's last instruction names the next.

PhaseSkillUse it to
onboardingonboardingSet a new project up from nothing: where the code lives, how the team talks, which workspace suite it uses.
onboardingonboarding-repositoryChoose GitHub (a new or existing repository) or Introspection for the agent's code.
onboardingonboarding-issuesChoose Linear, Jira (to follow) or Introspection for tracking work, and connect Linear.
onboardingonboarding-collaborationConnect Slack (Teams to follow) so the team can talk to its agents.
onboardingonboarding-productivityConnect Google Workspace (Office 365 to follow): the project's connector and the person's own account.
buildbuild-brainstormStart a new agent: draft its cases from the owner's own material, ask only about the gaps, and get the cases approved.
buildbuild-draftWrite the agent from its approved cases, locally, and run the cases until they pass.
buildbuild-reviewReview the drafted agent with fresh-context reviewers, fix what they find, and package it as a pull request.
buildbuild-migratePlaceholder, not in any flow yet: start an agent from one on another harness (eve, Deep Agents, Claude Code or Codex skills). Its playbooks are still to write.
deploydeploy-connectDeploy starts here: check the CLI, login and scopes, then connect the MCP servers the Recipe declares, or fake them with introspection dev --mcp.
deploydeploy-createChoose the repository with the owner, land the branch on main and create the runtime.
deploydeploy-testRun on the version only what the platform must prove, report it and hand the owner the chat link.
deploydeploy-tryGive the owner a chat with the version built from a branch's head commit, without pinning anything.
improveimprove-selectChoose the deployed agent and the one version to improve, with each version's conversations over the last 14 days.
improveimprove-classifyRead the version's eval baseline, tool errors, annotations, feedback, judgements and observations, rank the failure modes, and have the owner pick one.
improveimprove-baselineOpen the failure mode's issue I-…, cut pr/improve-I-… from the deployed commit, and set the baseline, with up to three new approved cases.
improveimprove-proposeThe owner picks one of up to three remedies; a proposer writes it without the evals, a fresh reviewer accepts it, cloud trials prove it, and the pull request opens.
improveimprove-simulateOnly when asked: hold simulated conversations with a deployed agent toward the owner's outcome, review each with one gap or good, and synthesize their observations.
improveimprove-memoryFor an agent that keeps memory per subject: search memory blocks over the same subjects' conversations, with a meta agent revising the best, and keep one that beats the control on held-out subjects.
optimizeoptimize-qualitySearch candidate changes against the approved cases held fixed, with proposal and review subagents, and keep one that beats the noise and passes the held-out cases: the quality floor.
optimizeoptimize-costFind the cheapest version that holds the quality floor, measured per completed task: the cost ceiling.
optimizeoptimize-latencyFind the fastest version that holds both, check recent production traffic, and hand the branch with its measured trade-off to deploy.
platformplatform-triageTake a message from Slack, the app's chat or a routine: answer it, or open the issue that tracks the work and say what happens next.
platformplatform-investigateFind which agent and what kind of cause across the organization, read-only, and record it on the issue; one agent's evidence is improve's.
platformplatform-resolveLaunch the agent that does the work, follow it to a reviewed result, tell whoever raised it and close the issue.
platformplatform-issuesKeep an issue: open or continue it, add evidence, ask a person, hand a pull request over for review, and close it.
routinesroutines-scheduleCreate, change or pause a routine so work happens later, recurs or answers an event (Slack, GitHub, a webhook connector).
routinesroutines-respondDo a firing routine's assignment and report it, or stay quiet.
routinesroutines-adjustChange a routine's prompt, schedule or triggers from what its runs showed, or pause or resume it.
evaleval-caseWrite or change a case's goal file, evals/cases/<id>.md, including one taken from a real conversation, and get it approved.
evaleval-authorWrite a case's implementation and its verifier, for Vitest or Harbor, producing reward.json and reward-details.json.
evaleval-simulateSimulate the bindings an eval needs (MCP servers today): the fakes/ layout, the contract, scenarios and drift checks.
evaleval-runRun a suite with introspection eval run and read run.json: incomplete cases, trials, retries and replays.
evaleval-compareCompare two runs case by case, keep a baseline, and gate a pull request on it.

The eval-* steps are the mechanics every phase uses to write, run and compare cases and to simulate their bindings; they aren't a phase of their own. Outside an Operator session, introspection evals <step> prints one.

Run build

You need Node 24, uv and credentials for the model in agents/build.yaml (sign in once with /login in Pi).

npm i -g @introspection-ai/cli && introspection setup   # once: Pi and the Recipes release it needs
npx @introspection-ai/operator                          # a new agent, in ~/.introspection/agents/new-<n>
npx @introspection-ai/operator ~/work/my-agent          # start or resume a build in that folder
npx @introspection-ai/operator ~/work/my-agent --model <model>   # flags after the folder go to Pi

npx @introspection-ai/operator runs the package's launcher, bin/introspection-operator.js. It starts the build agent (pi --recipe <the package> --agent build --no-context-files) in a folder of its own, because build treats the folder it starts in as the owner's workspace: it creates the agent's repository there and resumes from what it finds there.

  • No AGENTS.md or CLAUDE.md: it turns off Pi's loading of those files from that folder and the folders above it. They're written for coding agents and can describe other agents, which build must not copy.
  • Folder safety: it refuses a folder inside the package or nested in another git repository; the agent's own repository is allowed, to resume.
  • Python: it checks that uv is installed. The Operator has no Python of its own: each documents package brings its own, and Pi builds it when the session starts.
  • Shared documents: it creates files/ and outputs/ in the build folder, beside the agent's repository. The Recipe's workspace extension (extensions/workspace) tells the agent where they are, as the cloud does with /workspace/files and /workspace/outputs. Put the documents you'll share in files/: the documents tool opens files only inside the build folder. Given a path elsewhere, the agent copies the file into files/ first.
  • Versions: it checks that Pi's @introspection-ai/recipes satisfies the peerDependencies range, and says to run introspection upgrade when it doesn't.

Set INTROSPECTION_AGENTS_DIR to put new builds somewhere other than ~/.introspection/agents.

In a checkout of this repository, pnpm build runs the same launcher, and installs the dependencies with pnpm once.

The launcher is being retired. introspection init starts the same session from the Operator the CLI keeps in ~/.introspection/operator, installing it the first time; introspection setup installs it too.

Installed with pi install

package.json#pi is read twice: by Recipes when the package runs as a Recipe, and by Pi when it's installed as a Pi package, which loads its extensions and skills in every session.

  • Extensions (extensions/workspace) act only where Recipes loads them: it asks Recipes for its session (getRecipeSessionContext), and an instance Pi loaded as a plain package has none, so it registers nothing. It acts only in the Operator's own build session.
  • Runtime extensions (extensions/runtime) are for the Introspection platform only: the labelled shell tool, recording the GitHub pull requests a task opens (pr_urls), and acknowledging the Slack message a task answers. They act only for the operator agent in a platform task (INTROSPECTION_TASK_ID); anywhere else they register nothing.
  • The platform's agent (agents/operator.yaml) is the one the Introspection platform runs, with its model, the Slack channels tool (pi.channels) and the issues tool (pi.issues). Their provider packages are peers the platform's image installs; locally they stay inactive, since build lists neither tool.
  • Skills are listed in pi.skills, because an explicit pi block turns off Pi's discovery of skills/. Pi then offers them in every session, including an owner's own Recipe runs. Pass --no-skills to a Recipe launch to keep them out: Recipes still adds the Recipe's own skills.

Package

@introspection-ai/operator is the npm package published from this repository's root. It contains the Recipe a person runs (SYSTEM.md, agents/, skills/ and extensions/) and its launcher (bin/), so npx @introspection-ai/operator starts a build, and npx skills sync finds the skills in it. docs/, scripts/ and the evals are never published.

Phase skills are grouped by the stage of an agent's life (see docs/DESIGN.md), and the phase is the prefix of each skill's name, because npx skills sync finds skills only at skills/<name>/SKILL.md and not in nested folders:

PhaseSkillsWhat the phase coversStatus
buildbuild-brainstorm, build-draft, build-reviewCreate a new agent: ask until the design is clear, write it up locally, end with a pull request ready for review, and deploy it to stagingFirst version in skills/; replaces today's create (migrate is an open decision in docs/MIGRATION.md)
deploydeploy-connect, deploy-create, deploy-test, deploy-tryConnect a pull request's Recipe to its data, put it on a runtime, and hand the owner a chat with itBuilt: deploy-connect, deploy-create, deploy-test, deploy-try
improveimprove-select, improve-classify, improve-baseline, improve-proposeTurn traces from testing and production into cases, and propose changes with evidenceDesigned; replaces today's improve and operate
optimizeoptimize-quality, optimize-cost, optimize-latencyRaise quality, then cut cost, then latency, each holding the gains of the one beforeBuilt: optimize-quality, optimize-cost, optimize-latency; replaces today's optimize
hardenharden-scan, harden-spar, harden-stressLast, and optional apart from the scan: check the Recipe against the OWASP Agentic Skills Top 10, spar with it as a red team, and test it under load; failures become permanent casesDesigned; new, with no workflow behind it today

Evals aren't a phase. Each phase's steps decide when to evaluate and what passes; how to write and run a case is in the eval-* steps in skills/, which version with the Operator so its own evals measure them (see docs/DESIGN.md).

Releases are cut by release-please (.github/workflows/release.yml): Conventional Commit titles on main update a release pull request, and merging it tags operator-vX.Y.Z and publishes to npm through trusted publishing, starting at 0.1.0. CI runs node scripts/check-skills.mjs (frontmatter, folder names, that the "Choose a skill" table above has one row per skill folder, that each agent's skills list holds every skill its skills name, that each skill folder stands alone (no link out of it, except to a subagent's brief in agents/, or to a missing file, every reference linked, every step name a folder, no private issue or PR numbers), that every subagent the skills start has a linked agents/<name>-brief.md that no skill writes out, and that exactly the Recipe and its launcher are packed: skills/, agents/, prompts/, extensions/, SYSTEM.md and bin/introspection-operator.js; that pi.skills lists skills; and that there's no pi.runtime.python) and npm pack --dry-run; publishing also requires at least one skill.

Research behind build and improve

How the Operator builds and improves an agent draws on published work. This list is for people reading the code; the skills don't load it.

SourceWhat we tookWhere it lives
Rensin (Google), Elephants, Goldfish, and the New Golden Age of Software Engineering, and its Elephant-Goldfish Model pluginBrainstorm, then draft a written plan with an assistant that holds the whole conversation; review it with fresh-context reviewers that read only the plan and what it cites, looking for omissions, unstated assumptions and unexplained decisions; the owner checks the findings and approves the plan before anything is built.build-brainstorm, build-draft, build-review
Chen, Jin, Helenowski et al. (Meta AI, RAM), Self-Improving Memory: Meta-Optimization and Harness Distillation for Continual Learning Agents (2026)The meta agent: start from a few seed harnesses, run each over the same stream of tasks, keep the best as parents, and have a model read their trajectories and rewrite the load and offload instructions; choose the winner on a held-out set it never saw.improve-memory
Li, Jin, Kim et al. (FAIR at Meta and others), Aligning Autoresearch: Co-Improvement between Agents & Humans (2026)The simulated subject knows the hidden truth the agent must learn, and checks in code count for more than how realistic the subjects are. Proposed, not yet adopted: subject profiles taken from real conversations and spread across their traits; a weak and a strong harness the world must separate, each within a set band, before any candidate runs.eval-simulate world reference (to come)
Bergstra, Bardenet, Bengio and Kégl, Algorithms for Hyper-Parameter Optimization (NeurIPS 2011)The Tree-structured Parzen Estimator, for searching settings with a fixed menu (model, effort, tool mode) once the space is too big to order by hand.optimize-quality (scripts/tpe.ts)

What we changed from them:

  • A world built from one interview stands in for real users, seeded so a comparison measures only the harness, with whatever a series can use up sized so it can't decide the result. The RAM work evaluates on fixed benchmarks.
  • Each revision is reviewed against the owner's rules before it runs, and every metric comes from the fakes' recorded state, never a model's account of its own run.
  • Ties are settled held out: finalists within the noise on training run twice on held-out subjects, since the training leader is usually luck.

What the sources and our own runs agree on:

  • Most revisions lose. In the RAM work 37 of 44 revisions failed to beat the best so far; in ours, every searched block beat a weak shipped block by about ten points of pitch miss (25.9 against 15.7 to 16.7 on ten held-out venues), but the search methods tied, and a rebuild that began from a strong block found nothing better. Expect ties, and report them as ties.
  • The training leader is usually luck. Our best block on the training venues lost on the held-out ones, which is why ties are settled held out.
  • A model's verdict is not evidence. Aligning Autoresearch's best monitor caught about two thirds of reward hacks; removing its checks in code cost more than removing its simulated users (34.0 to 25.0, against 32.0). Score from the record and guard in code.
  • The world can decide the result by itself. In our first runs the question bank ran short, and the block that rationed questions best looked best. Size what can run out before comparing anything.
  • People choose what matters. Aligning Autoresearch leaves "which problems are meaningful" to people; here the owner's interview fixes the subjects, the metrics and the rules, and nothing the loop finds changes them.

License

What @introspection-ai/operator publishes (SYSTEM.md, agents/, skills/ and bin/) is licensed under the Apache License 2.0; see skills/LICENSE. Everything else in this repository is proprietary to Introspection and not licensed for use outside it.