pyphi.mcp.agents#

Delivery of the PyPhi agent skills to the coding agents installed on a machine.

A skill is matched against the task before the model acts. The skills shipped under pyphi/mcp/skills/ are copied out of the package into each agent’s own skills directory. The IIT Expert plugin, which covers the theory, is installed through each agent’s own plugin commands.

Nothing here imports the optional mcp dependency.

Module attributes

AGENTS

Agent name mapped to the directory probed under the home directory and the name shown to the user.

SENTINEL

Written inside every installed skill directory, holding the PyPhi version that wrote it.

REFERENCED

Skills whose references/ is filled from the reference topics at install time.

RETIRED

Skills earlier versions of PyPhi installed and this one no longer ships.

CURSOR_READS

Agents whose skills directory Cursor also reads, so writing to Cursor's own directory as well would load every skill twice there.

PLUGIN

the iit-expert skill and the connector to the IIT literature at mcp.learniit.org, published for Claude Code, Codex and Cursor from one repository.

PLUGIN_TIMEOUT

Seconds each plugin command may take; adding the marketplace clones it.

PLUGIN_COMMANDS

Agent name mapped to the commands that install the plugin, run in order.

PLUGIN_REMOVAL

Agent name mapped to the command that removes the plugin.

PLUGIN_REGISTRY

Agent name mapped to the file, under its probe directory, in which the agent records the plugins it has installed.

CURSOR_STEPS

Cursor installs plugins from its settings rather than a command line.

Functions

chosen(names, paths[, home])

Return targets named explicitly rather than found by probing.

confirm(question)

Ask question and return whether the answer was yes.

deliver(target)

Write every shipped skill into target, replacing earlier copies.

describe(*, names, paths[, home])

Return what install_step() would write, writing nothing.

describe_plugin(*, names, paths[, home])

Return what plugin_step() would run, running nothing.

detect([home])

Return a target for every agent whose probe directory exists.

install_step(*, skills, names, paths[, home])

Offer the skills, install them where accepted, and report what happened.

interactive()

Whether a question can be put to a person.

plugin_removal_hint(*, names, paths[, home])

Say how to remove the plugin, which PyPhi installs but does not own, from each agent whose plugin registry lists it.

plugin_step(*, plugin, names, paths[, home])

Offer the IIT Expert plugin and install it through each agent's commands.

remove(target)

Delete the skills written by deliver() from target, and any RETIRED skill an earlier PyPhi wrote there.

remove_step(*, names, paths[, home])

Delete the installed skills and report what was removed.

resolve(names, paths[, home])

Return the explicit targets where any were given, the detected ones otherwise.

skill_names()

Return the names of the skills shipped with this PyPhi.

Classes

Target(name, display, path)

A skills directory to write to.