const agentDefinition = {
  id: "glob-matcher",
  displayName: "Glob Matcher",
  publisher: "codebuff",
  version: "0.0.5",
  model: "anthropic/claude-sonnet-4.5",
  toolNames: [
    "glob"
  ],
  spawnableAgents: [],
  inputSchema: {
    params: {
      type: "object",
      required: [
        "patterns"
      ],
      properties: {
        patterns: {
          type: "array",
          items: {
            type: "object",
            required: [
              "pattern"
            ],
            properties: {
              cwd: {
                type: "string"
              },
              pattern: {
                type: "string"
              }
            }
          },
          description: "Array of glob patterns to match"
        }
      }
    }
  },
  includeMessageHistory: false,
  outputMode: "all_messages",
  spawnerPrompt: `Mechanically runs multiple glob pattern matches and returns all matching files`,
  systemPrompt: ``,
  instructionsPrompt: ``,
  stepPrompt: ``,
  handleSteps: function* ({ params }) {
    const patterns = params?.patterns ?? [];
    for (const query of patterns)
      yield {
        toolName: "glob",
        input: {
          pattern: query.pattern,
          cwd: query.cwd
        }
      };
  },
  mcpServers: {},
  inheritParentSystemPrompt: false
}