🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
'use client';
import type { BuiltinRenderProps } from '@lobechat/types';
import { Highlighter } from '@lobehub/ui';
import { memo } from 'react';
interface GrepArgs {
glob?: string;
output_mode?: 'files_with_matches' | 'content' | 'count';
path?: string;
pattern?: string;
type?: string;
}
const Grep = memo<BuiltinRenderProps<GrepArgs>>(({ content }) => {
if (!content) return null;
return (
<Highlighter
wrap
language={'text'}
showLanguage={false}
style={{ maxHeight: 240, overflow: 'auto' }}
variant={'borderless'}
>
{content}
</Highlighter>
);
});
Grep.displayName = 'ClaudeCodeGrep';
export default Grep;