MCPcopy Index your code
hub / github.com/wshobson/agents / CommandSource

Class CommandSource

tools/adapters/base.py:272–287  ·  view source on GitHub ↗

One slash command: plugins/ /commands/ .md.

Source from the content-addressed store, hash-verified

270
271@dataclass
272class CommandSource:
273 """One slash command: plugins/<plugin>/commands/<name>.md."""
274
275 plugin: str
276 name: str
277 path: Path
278 frontmatter: dict
279 body: str
280
281 @property
282 def description(self) -> str:
283 return (self.frontmatter.get("description") or "").strip()
284
285 @property
286 def argument_hint(self) -> str:
287 return (self.frontmatter.get("argument-hint") or "").strip()
288
289
290@dataclass

Callers 2

_make_commandFunction · 0.90
load_pluginFunction · 0.85

Calls

no outgoing calls

Tested by 1

_make_commandFunction · 0.72