MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / find_commands

Function find_commands

claw-code/src/commands.py:69–72  ·  view source on GitHub ↗
(query: str, limit: int = 20)

Source from the content-addressed store, hash-verified

67
68
69def find_commands(query: str, limit: int = 20) -> list[PortingModule]:
70 needle = query.lower()
71 matches = [module for module in PORTED_COMMANDS if needle in module.name.lower() or needle in module.source_hint.lower()]
72 return matches[:limit]
73
74
75def execute_command(name: str, prompt: str = '') -> CommandExecution:

Callers 1

render_command_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected