forked from agentsmd/agents.md
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompatibilitySection.tsx
More file actions
205 lines (202 loc) · 5.91 KB
/
CompatibilitySection.tsx
File metadata and controls
205 lines (202 loc) · 5.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
import React from "react";
import Image from "next/image";
import Section from "@/components/Section";
export default function CompatibilitySection() {
type AgentEntry = {
name: string;
url: string;
from?: string;
imageSrc?: string;
imageSrcLight?: string;
imageSrcDark?: string;
};
const agents: AgentEntry[] = [
{
name: "Codex",
url: "https://openai.com/codex/",
from: "OpenAI",
imageSrc: "/logos/codex.svg",
},
{
name: "Amp",
url: "https://ampcode.com",
imageSrc: "/logos/amp.svg",
},
{
name: "Jules",
url: "https://jules.google",
from: "Google",
imageSrc: "/logos/jules.svg",
},
{
name: "Cursor",
url: "https://cursor.com",
imageSrcLight: "/logos/cursor-light.svg",
imageSrcDark: "/logos/cursor-dark.svg",
},
{
name: "Codegen",
url: "https://codegen.com",
imageSrc: "/logos/codegen.svg",
},
{
name: "Factory",
url: "https://factory.ai",
imageSrc: "/logos/factory.svg",
},
{
name: "RooCode",
url: "https://roocode.com",
imageSrc: "/logos/roocode.svg",
},
{
name: "Aider",
url: "https://aider.chat/docs/usage/conventions.html#always-load-conventions",
imageSrc: "/logos/aider.svg",
},
{
name: "Gemini CLI",
url: "https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#available-settings-in-settingsjson",
from: "Google",
imageSrc: "/logos/gemini.svg",
},
{
name: "Kilo Code",
url: "https://kilocode.ai/",
imageSrc: "/logos/kilo-code.svg",
},
{
name: "opencode",
url: "https://opencode.ai/docs/rules/",
imageSrc: "/logos/opencode.svg",
},
{
name: "Phoenix",
url: "https://phoenix.new/",
imageSrc: "/logos/phoenix.svg",
},
{
name: "Zed",
url: "https://zed.dev/docs/ai/rules",
imageSrc: "/logos/zed.svg",
},
{
name: "Semgrep",
url: "https://semgrep.dev",
imageSrc: "/logos/semgrep.svg",
},
{
name: "Warp",
url: "https://docs.warp.dev/knowledge-and-collaboration/rules#project-scoped-rules-1",
imageSrc: "/logos/warp.svg",
},
{
name: "Coding agent",
from: "GitHub Copilot",
url: "https://gh.io/coding-agent-docs",
imageSrc: "/logos/copilot.svg",
},
{
name: "VS Code",
url: "https://code.visualstudio.com/docs/editor/artificial-intelligence",
imageSrcLight: "/logos/vscode-light.svg",
imageSrcDark: "/logos/vscode-dark.svg",
},
{
name: "Ona",
url: "https://ona.com",
imageSrcLight: "/logos/ona-light.svg",
imageSrcDark: "/logos/ona-dark.svg",
},
{
name: "Devin",
from: "Cognition",
url: "https://devin.ai",
imageSrcLight: "/logos/devin-light.svg",
imageSrcDark: "/logos/devin-dark.svg",
},
];
return (
<Section
id="compatibility"
title="One AGENTS.md works across many agents"
className="py-12"
center
maxWidthClass="max-w-3xl"
>
<p className="text-xl font-light text-gray-500 dark:text-gray-400 text-center max-w-lg mx-auto">
Your agent definitions are compatible with a growing ecosystem of AI
coding agents and tools:
</p>
<div className="mt-6 grid grid-cols-2 sm:grid-cols-3 gap-4 items-stretch">
{agents.map(
({
name,
url,
from,
imageSrc,
imageSrcLight,
imageSrcDark,
}) => {
return (
<a
key={name}
href={url}
target="_blank"
rel="noopener noreferrer"
className="flex w-full h-20 p-3 items-center rounded-lg transition-colors hover:bg-gray-100 dark:hover:bg-gray-800"
>
<div className="w-16 h-16 flex items-center justify-center mr-3">
{imageSrcLight && imageSrcDark ? (
<>
<Image
src={imageSrcLight}
alt={`${name} logo`}
width={64}
height={64}
className="block dark:hidden"
/>
<Image
src={imageSrcDark}
alt={`${name} logo`}
width={64}
height={64}
className="hidden dark:block"
/>
</>
) : imageSrc ? (
<span
aria-hidden
className="block w-16 h-16 bg-gray-700 dark:bg-gray-400"
style={{
WebkitMaskImage: `url(${imageSrc})`,
maskImage: `url(${imageSrc})`,
WebkitMaskRepeat: "no-repeat",
maskRepeat: "no-repeat",
WebkitMaskSize: "contain",
maskSize: "contain",
WebkitMaskPosition: "center",
maskPosition: "center",
}}
/>
) : null}
</div>
<div className="flex flex-col justify-center">
<span className="text-xl font-semibold leading-tight text-gray-700 dark:text-gray-400">
{name}
</span>
{from ? (
<span className="text-sm text-gray-500 dark:text-gray-400">
<span className="font-light">from</span>{" "}
<span className="font-semibold">{from}</span>
</span>
) : null}
</div>
</a>
);
}
)}
</div>
</Section>
);
}