You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 42fbd08
Browse filesBrowse the repository at this point in the historyBrowse files
authored
A plugin names the adapter's files as a deployment does (#108)
* A plugin names the adapter's files as a deployment does; training deploys as hermit deploy does
A Claude Code plugin prints, from a SessionStart hook, where its embedded adapter is and the files no export
connects, the list a deployment's context gives. Codex, Pi and Hermes plugins, which cannot say where they are
installed, list those files under unnamed_files. A test holds that training deploys an adapter as hermit deploy
does, file for file on every host, the tools' server entry aside.
* Review fixes: a Hermes plugin names the adapter's folder; README and Windows wording; tighter tests
A Hermes plugin's register appends the folder note and the list of other files to its system prompt section,
within its 4,000 characters. The Claude Code README mentions the hook only when there is one, and the docs say
the hook needs a POSIX shell. Tests: a reconversion removes a hook no longer needed; the deployment records
differ only in the tools' entries.
* Wrap the Hermes plugin's docstring
* Hermes plugins report the files, as Codex and Pi do; shorter docs
* Name the adapter folder by its constant in the README
* Parity test: compare the tool-server files with only the tools' entry taken out
The test let a whole tool-server file differ between training and `hermit deploy`, so training losing
Hermes's skills settings passed, and whether a host's tools come from the workspace or the session's own
server was checked only when a file differed. Now every other file must match byte for byte, the
tool-server file must match once the tools' entry is removed (OpenCode, Hermes, mini-swe-agent), and
each host's tool handoff is asserted on its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Haizhong Zheng <hzzheng@umich.edu>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/framework/commands.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,13 +136,20 @@ names the machine that produced it.
136
136
| Tools |`.mcp.json`|`mcp.json`| generated extension, `pi.registerMcpServer`|`ctx.register_tool`, forwarding to `hermit serve`|
137
137
| Roles |`agents/`| refused | refused | refused |
138
138
| Hooks | refused | refused | refused | refused |
139
+
| The adapter's folder and its other files | named by a `SessionStart` hook | not named: listed under `unnamed_files`| not named: listed under `unnamed_files`| not named: listed under `unnamed_files`|
139
140
140
141
A part the target's plugin format cannot carry is refused: `convert` exits 2 and names every such part before writing
141
142
anything. A non-empty context (`ADAPTER.md`) makes Codex and Pi refuse, and a context over 4,000 characters makes
142
143
Hermes refuse. Hooks make every target refuse: no plugin carries them yet, and `deploy --host codex` or
143
144
`--host claude-code` connects them in a workspace. `--allow-lossy` emits the plugin without those parts and lists them
144
145
under `omitted` in the result.
145
146
147
+
In training and in a `deploy` workspace, the agent's context says where the adapter's copy is (paths in its
148
+
instructions, skills and roles are relative to that folder) and lists the files no export connects, such as a
149
+
README or a tool's source. A Claude Code plugin names them with a `SessionStart` hook, which prints the installed
150
+
folder and the same list (an output style gets no `${CLAUDE_PLUGIN_ROOT}`); the hook needs a POSIX shell (Git Bash on
151
+
Windows). The other targets list them under `unnamed_files` and in the plugin's README.
152
+
146
153
Why the refusals:
147
154
148
155
-**Codex** reads no instruction file and no subagent from a plugin. Its plugin format is Agent Plugins v1: root
0 commit comments