beta

agex-claude-context

Rules

Description and context about the agex project

2003/24/2026

Version 2

Published

Created 3/24/2026

Changes

v1v2
+3
11 # agex.dev
22  
33 ## What is agex?
44  
55 agex.dev is a community-driven platform for agentic coding practitioners. It is the central hub where developers who ship code with AI agents come to discover tools, share configurations, discuss workflows, and learn from each other.
66  
77 The agentic coding ecosystem is fragmented. Tools are reviewed in static blog posts. MCP servers are cataloged in directories with no community signal. Agent rule files (CLAUDE.md, .cursorrules, AGENTS.md) are scattered across GitHub gists and forum threads. Skills, hooks, and subagent definitions live in random repos with no discoverability. Discussion happens across dozens of subreddits and vendor-specific forums. agex brings all of this together in one place, organized around what practitioners actually need.
88  
99 ## Vision
1010  
1111 agex sits at the intersection of three models:
1212  
1313 - **HuggingFace** — for sharing and distributing artifacts (rules, skills, MCP configs, hooks, plugins) with a CLI-first workflow. Like `huggingface-cli` for models, `agex` is the CLI for agentic coding artifacts.
1414 - **GitHub** — for version-controlled, unified storage with project-level organization. No more bloated git repos with scattered markdown files. agex is the canonical home for your agentic setup, referenced by a thin `agex.toml` pointer. Users and orgs organize artifacts into projects that can be pulled in as a unit.
1515 - **Hacker News** — for community discussion, tool sharing, and surfacing what practitioners actually care about.
1616  
1717 The CLI-agent era (Claude Code, Codex, Gemini CLI, Aider) means developers live in the terminal. agex must be CLI-native — the web hub is for browsing and community, the CLI is for daily workflow integration.
1818  
1919 ## The agex Ecosystem
2020  
2121 ### 1. The Hub (agex.dev — web)
2222  
2323 The browsable registry and community platform.
2424  
2525 #### Artifact Categories
2626  
2727 agex organizes shareable agentic coding artifacts into four top-level categories, reflecting how the agentic coding extension ecosystem actually works:
2828  
2929 ##### Rules (always-on context)
3030  
3131 Agent configuration files that load every session. These define project conventions, coding standards, and "always do X" instructions.
3232  
3333 - **CLAUDE.md** — Claude Code project context and instructions
3434 - **.cursorrules / .cursor/rules/** — Cursor AI rules
3535 - **AGENTS.md** — Agent-agnostic project instructions
3636 - **Copilot Instructions** — GitHub Copilot custom instructions
3737 - **Other agent rules** — Any tool-specific rule file
3838  
3939 ##### Skills (on-demand knowledge & workflows)
4040  
4141 Reusable markdown files containing knowledge, workflows, or instructions that agents load on demand. Skills are the most flexible extension type.
4242  
4343 - **Reference skills** — API docs, style guides, schema references
4444 - **Action skills** — invocable workflows triggered with `/<name>` (deploy, review, audit)
4545 - **Recipes** — task-specific how-to guides (e.g. "set up monorepo with Claude Code")
4646  
4747 ##### Tools (external connections & automation)
4848  
4949 MCP servers, CLI tools, and integrations that connect agents to external services.
5050  
5151 - **MCP Servers** — database connectors, Slack, browser control, etc.
5252 - **CLI Tools** — standalone agentic CLI tools
5353 - **Extensions/Plugins** — IDE extensions, agent plugins
5454 - **Bundles/Plugins** — packaged combinations of skills + hooks + MCP + subagents
5555  
5656 ##### Automation (workflow automation)
5757  
5858 Hooks, subagent definitions, and agent team configurations.
5959  
6060 - **Hooks** — deterministic scripts that run on agent lifecycle events (pre-edit lint, post-commit notify)
6161 - **Subagent definitions** — custom worker agents with instructions and preloaded skills
6262 - **Agent team configs** — multi-agent coordination setups
6363 - **CI/CD integrations** — agent-powered pipeline steps
6464  
6565 #### Feed (Community Discussion)
6666  
6767 A Hacker News-style link and discussion feed focused exclusively on agentic coding. Users submit links, write text posts, and discuss. Content is ranked by upvotes and recency.
6868  
6969 Posts are tagged by topic (e.g. `claude-code`, `cursor`, `mcp`, `rules`, `workflow`, `release`, `discussion`).
7070  
7171 #### Projects (GitHub-style Organization)
7272  
7373 Users and organizations can create **projects** that bundle artifacts together for a specific use case or repository. A project is like a GitHub repo for your agentic setup:
7474  
7575 - A project references multiple artifacts: rules, skills, MCP configs, hooks
7676 - Projects can be pulled in as a unit with `agex pull @user/project-name`
7777 - Each project has an `agex.toml` manifest that declares its artifacts
7878 - Projects can be forked, versioned, and commented on
7979 - Organizations can maintain shared projects (e.g. `@mycompany/standard-setup`)
8080  
8181 This replaces the pattern of checking in CLAUDE.md, .cursorrules, hooks, etc. into every repo. Instead, you reference a project on agex and pull it in.
8282  
8383 #### User Profiles
8484  
8585 Each user has a public profile showing:
8686 - Their shared artifacts with version history
8787 - Their projects
8888 - Tools they use ("I use this" stack)
8989 - Community contributions (posts, comments, reviews)
9090 - Reputation earned through contributions
9191 - Organizations they belong to
9292  
9393 ### 2. The CLI (`agex`)
9494  
9595 The CLI is what makes agex sticky in a CLI-agent world. It is the primary distribution mechanism.
9696  
9797 ```
9898 agex init # creates agex.toml, detects your stack
9999 agex login # GitHub OAuth device flow
100100 agex pull @user/artifact # pulls a single artifact
101101 agex pull @user/project # pulls all artifacts in a project
102102 agex push # shares an artifact to the hub
103103 agex search "react typescript skills" # find artifacts by type/stack
104104 agex browse # interactive TUI browser
105105 agex sync # sync local artifacts with hub versions
106106 agex clean # remove cached/materialized files
107107 agex add @user/skill-name # add an artifact to current project
108108 agex remove @user/skill-name # remove from current project
109109 ```
110110  
111111 Key design decisions:
112112 - The CLI reads `agex.toml` and materializes artifacts locally
113113 - Artifacts are cached locally in `.agex/cache/`, `agex clean` removes them
114114 - Progressive fetch: main content by default, `--full` for all reference files, `--file` for specific ones
115115 - Annotations: `agex annotate @user/config "note"` stores local notes in `.agex/annotations/` that persist across sessions and auto-append on future fetches — agents get smarter over time
116116 - Structured feedback: `agex feedback @user/config up --label accurate` sends quality signals to authors
117117 - The CLI should be lightweight — no heavy runtime dependencies
118118 - Should work as a Claude Code plugin that reads the toml on init
119119  
120120 ### 4. The MCP Server (`agex-mcp`)
121121  
122122 An MCP server that exposes agex as tools for AI agents. Agents can search, fetch, annotate, and rate artifacts directly without the CLI.
123123  
124124 Tools:
125125 - `agex_search` — search artifacts by query, category, tags
126126 - `agex_get` — fetch artifact content by @user/slug
127127 - `agex_list` — list all artifacts with filters
128128 - `agex_annotate` — read/write/clear local annotations
129129 - `agex_feedback` — rate artifacts with structured labels
130130  
131131 Resource:
132132 - `agex://registry` — full artifact registry as JSON
133133  
134134 Distributed as `agex-mcp` binary alongside the CLI. Configurable in Claude Code, Cursor, etc.
135135  
136136 ### 3. The Manifest (`agex.toml`)
137137  
138138 A lightweight project manifest that replaces bloated config files with versioned pointers:
139139  
140140 ```toml
141141 [project]
142142 name = "my-nextjs-app"
143143 tools = ["claude-code", "cursor"]
144144 stack = ["nextjs", "typescript", "tailwind"]
145145  
146146 [rules]
147147 claude = "@rkrebs/nextjs-claude@v2"
148148 cursorrules = "@community/react-best-practices@latest"
149149  
150150 [skills]
151151 deploy = "@devops/vercel-deploy@v1"
152152 review = "@community/code-review-checklist@latest"
153153 api-docs = "@rkrebs/rest-api-patterns@v3"
154154  
155155 [mcp]
156156 database = "@tools/supabase-mcp@latest"
157157 slack = "@tools/slack-mcp@v2"
158158  
159159 [hooks]
160160 pre-edit = "@tooling/eslint-check@latest"
161161 post-commit = "@tooling/conventional-commits@v1"
162162  
163163 [subagents]
164164 security-reviewer = "@security/owasp-checker@latest"
165165 ```
166166  
167167 This solves the bloat problem — your project has a thin `agex.toml` pointer file instead of dozens of config files copied from gists. The CLI materializes the actual files from the hub.
168168  
169169 ## Key Design Principles
170170  
171171 - **Practitioner-first, not vendor-first.** Content is organized by what you're trying to accomplish, not by which company made the tool. agex is neutral ground.
172172 - **CLI-native.** The terminal is where agentic coding happens. The CLI is not an afterthought — it's the primary workflow integration point.
173173 - **Project-centric.** Artifacts are organized into projects, not scattered individually. A project is a complete agentic setup you can pull into any repo.
174174 - **Community signal over marketing.** Real usage data, honest reviews, and upvotes from practitioners. No sponsored placements or pay-to-rank.
175175 - **Trust signaling.** Artifacts have source badges (official, maintainer, community). Structured feedback (accurate, outdated, incomplete) flows to authors. Quality is surfaced, not just popularity.
176176 - **Self-improving agents.** Annotations persist across sessions. Agents discover gaps, annotate locally, and are smarter next time. Feedback loops improve content for everyone.
177177 - **Artifacts are content.** Rules, skills, hooks, and configs are valuable knowledge artifacts that deserve to be discoverable, shareable, and versioned.
178178 - **Simple and fast.** Developer audience expects speed. No bloat, no unnecessary JavaScript, fast page loads.
179179 - **Open contribution.** Anyone with a GitHub account can submit artifacts, share projects, write guides, and participate in discussions.
180180 - **No bloat.** The `agex.toml` pattern keeps projects clean. Artifacts live on the hub, not scattered across repos.
181181  
182182 ## Information Architecture
183183  
184184 ```
185185 hub.agex.dev (dev: /app)
186186 ├── / # Dashboard (your projects, starred, activity)
187187 ├── /configs # Browse all artifacts (rules, skills, tools, automation)
188188 │ ├── /configs/new # Create/upload artifact
189189 │ └── /configs/@user/slug # Artifact detail (versions, comments, pull command)
190190 ├── /projects # Browse projects (bundled artifact sets)
191191 │ ├── /projects/new # Create project
192192 │ └── /projects/@user/slug # Project detail (manifest, included artifacts)
193193 ├── /feed # HN-style discussion feed
194194 │ ├── /feed/new
195195 │ ├── /feed/top
196196 │ └── /feed/:id
197197 ├── /tools # Tool & resource registry
198198 │ ├── /tools/:slug
199199 │ └── /tools/submit
200200 ├── /u/:username # User profile
201201 └── /org/:orgname # Organization profile
202202  
203203 agex.dev (marketing)
204204 ├── / # Landing page
205205 ├── /login # GitHub OAuth login
206206 ├── /about, /docs, /blog # Marketing pages
207207 ```
208208  
209209 ## User Model
210210  
211211 - Authentication via GitHub OAuth (NextAuth).
212212 - Users have a profile showing their submissions, reviews, and activity.
213213 - Organizations for team-shared projects and artifacts.
214214 - Reputation is earned through contributions (submissions, reviews, helpful comments).
215215 - No anonymous posting — GitHub identity provides accountability.
216216  
217217 ## Tech Stack
218218  
219219 - Next.js (App Router) with React
220220 - Tailwind CSS + shadcn/ui for styling (+ ReactBits, Magic UI for effects)
221221 - Node.js server layer
222222 - Supabase Postgres database
223223 - Drizzle ORM
224224 - NextAuth v5 with GitHub OAuth
225225 - Markdown rendering with syntax highlighting
226226 - CLI: Node/Bun for initial development, potentially Go for distribution
227+ 
228+ 
229+test-test
CLAUDE.md
# agex.dev

## What is agex?

agex.dev is a community-driven platform for agentic coding practitioners. It is the central hub where developers who ship code with AI agents come to discover tools, share configurations, discuss workflows, and learn from each other.

The agentic coding ecosystem is fragmented. Tools are reviewed in static blog posts. MCP servers are cataloged in directories with no community signal. Agent rule files (CLAUDE.md, .cursorrules, AGENTS.md) are scattered across GitHub gists and forum threads. Skills, hooks, and subagent definitions live in random repos with no discoverability. Discussion happens across dozens of subreddits and vendor-specific forums. agex brings all of this together in one place, organized around what practitioners actually need.

## Vision

agex sits at the intersection of three models:

- **HuggingFace** — for sharing and distributing artifacts (rules, skills, MCP configs, hooks, plugins) with a CLI-first workflow. Like `huggingface-cli` for models, `agex` is the CLI for agentic coding artifacts.
- **GitHub** — for version-controlled, unified storage with project-level organization. No more bloated git repos with scattered markdown files. agex is the canonical home for your agentic setup, referenced by a thin `agex.toml` pointer. Users and orgs organize artifacts into projects that can be pulled in as a unit.
- **Hacker News** — for community discussion, tool sharing, and surfacing what practitioners actually care about.

The CLI-agent era (Claude Code, Codex, Gemini CLI, Aider) means developers live in the terminal. agex must be CLI-native — the web hub is for browsing and community, the CLI is for daily workflow integration.

## The agex Ecosystem

### 1. The Hub (agex.dev — web)

The browsable registry and community platform.

#### Artifact Categories

agex organizes shareable agentic coding artifacts into four top-level categories, reflecting how the agentic coding extension ecosystem actually works:

##### Rules (always-on context)

Agent configuration files that load every session. These define project conventions, coding standards, and "always do X" instructions.

- **CLAUDE.md** — Claude Code project context and instructions
- **.cursorrules / .cursor/rules/** — Cursor AI rules
- **AGENTS.md** — Agent-agnostic project instructions
- **Copilot Instructions** — GitHub Copilot custom instructions
- **Other agent rules** — Any tool-specific rule file

##### Skills (on-demand knowledge & workflows)

Reusable markdown files containing knowledge, workflows, or instructions that agents load on demand. Skills are the most flexible extension type.

- **Reference skills** — API docs, style guides, schema references
- **Action skills** — invocable workflows triggered with `/<name>` (deploy, review, audit)
- **Recipes** — task-specific how-to guides (e.g. "set up monorepo with Claude Code")

##### Tools (external connections & automation)

MCP servers, CLI tools, and integrations that connect agents to external services.

- **MCP Servers** — database connectors, Slack, browser control, etc.
- **CLI Tools** — standalone agentic CLI tools
- **Extensions/Plugins** — IDE extensions, agent plugins
- **Bundles/Plugins** — packaged combinations of skills + hooks + MCP + subagents

##### Automation (workflow automation)

Hooks, subagent definitions, and agent team configurations.

- **Hooks** — deterministic scripts that run on agent lifecycle events (pre-edit lint, post-commit notify)
- **Subagent definitions** — custom worker agents with instructions and preloaded skills
- **Agent team configs** — multi-agent coordination setups
- **CI/CD integrations** — agent-powered pipeline steps

#### Feed (Community Discussion)

A Hacker News-style link and discussion feed focused exclusively on agentic coding. Users submit links, write text posts, and discuss. Content is ranked by upvotes and recency.

Posts are tagged by topic (e.g. `claude-code`, `cursor`, `mcp`, `rules`, `workflow`, `release`, `discussion`).

#### Projects (GitHub-style Organization)

Users and organizations can create **projects** that bundle artifacts together for a specific use case or repository. A project is like a GitHub repo for your agentic setup:

- A project references multiple artifacts: rules, skills, MCP configs, hooks
- Projects can be pulled in as a unit with `agex pull @user/project-name`
- Each project has an `agex.toml` manifest that declares its artifacts
- Projects can be forked, versioned, and commented on
- Organizations can maintain shared projects (e.g. `@mycompany/standard-setup`)

This replaces the pattern of checking in CLAUDE.md, .cursorrules, hooks, etc. into every repo. Instead, you reference a project on agex and pull it in.

#### User Profiles

Each user has a public profile showing:
- Their shared artifacts with version history
- Their projects
- Tools they use ("I use this" stack)
- Community contributions (posts, comments, reviews)
- Reputation earned through contributions
- Organizations they belong to

### 2. The CLI (`agex`)

The CLI is what makes agex sticky in a CLI-agent world. It is the primary distribution mechanism.

```
agex init                              # creates agex.toml, detects your stack
agex login                             # GitHub OAuth device flow
agex pull @user/artifact               # pulls a single artifact
agex pull @user/project                # pulls all artifacts in a project
agex push                              # shares an artifact to the hub
agex search "react typescript skills"  # find artifacts by type/stack
agex browse                            # interactive TUI browser
agex sync                              # sync local artifacts with hub versions
agex clean                             # remove cached/materialized files
agex add @user/skill-name              # add an artifact to current project
agex remove @user/skill-name           # remove from current project
```

Key design decisions:
- The CLI reads `agex.toml` and materializes artifacts locally
- Artifacts are cached locally in `.agex/cache/`, `agex clean` removes them
- Progressive fetch: main content by default, `--full` for all reference files, `--file` for specific ones
- Annotations: `agex annotate @user/config "note"` stores local notes in `.agex/annotations/` that persist across sessions and auto-append on future fetches — agents get smarter over time
- Structured feedback: `agex feedback @user/config up --label accurate` sends quality signals to authors
- The CLI should be lightweight — no heavy runtime dependencies
- Should work as a Claude Code plugin that reads the toml on init

### 4. The MCP Server (`agex-mcp`)

An MCP server that exposes agex as tools for AI agents. Agents can search, fetch, annotate, and rate artifacts directly without the CLI.

Tools:
- `agex_search` — search artifacts by query, category, tags
- `agex_get` — fetch artifact content by @user/slug
- `agex_list` — list all artifacts with filters
- `agex_annotate` — read/write/clear local annotations
- `agex_feedback` — rate artifacts with structured labels

Resource:
- `agex://registry` — full artifact registry as JSON

Distributed as `agex-mcp` binary alongside the CLI. Configurable in Claude Code, Cursor, etc.

### 3. The Manifest (`agex.toml`)

A lightweight project manifest that replaces bloated config files with versioned pointers:

```toml
[project]
name = "my-nextjs-app"
tools = ["claude-code", "cursor"]
stack = ["nextjs", "typescript", "tailwind"]

[rules]
claude = "@rkrebs/nextjs-claude@v2"
cursorrules = "@community/react-best-practices@latest"

[skills]
deploy = "@devops/vercel-deploy@v1"
review = "@community/code-review-checklist@latest"
api-docs = "@rkrebs/rest-api-patterns@v3"

[mcp]
database = "@tools/supabase-mcp@latest"
slack = "@tools/slack-mcp@v2"

[hooks]
pre-edit = "@tooling/eslint-check@latest"
post-commit = "@tooling/conventional-commits@v1"

[subagents]
security-reviewer = "@security/owasp-checker@latest"
```

This solves the bloat problem — your project has a thin `agex.toml` pointer file instead of dozens of config files copied from gists. The CLI materializes the actual files from the hub.

## Key Design Principles

- **Practitioner-first, not vendor-first.** Content is organized by what you're trying to accomplish, not by which company made the tool. agex is neutral ground.
- **CLI-native.** The terminal is where agentic coding happens. The CLI is not an afterthought — it's the primary workflow integration point.
- **Project-centric.** Artifacts are organized into projects, not scattered individually. A project is a complete agentic setup you can pull into any repo.
- **Community signal over marketing.** Real usage data, honest reviews, and upvotes from practitioners. No sponsored placements or pay-to-rank.
- **Trust signaling.** Artifacts have source badges (official, maintainer, community). Structured feedback (accurate, outdated, incomplete) flows to authors. Quality is surfaced, not just popularity.
- **Self-improving agents.** Annotations persist across sessions. Agents discover gaps, annotate locally, and are smarter next time. Feedback loops improve content for everyone.
- **Artifacts are content.** Rules, skills, hooks, and configs are valuable knowledge artifacts that deserve to be discoverable, shareable, and versioned.
- **Simple and fast.** Developer audience expects speed. No bloat, no unnecessary JavaScript, fast page loads.
- **Open contribution.** Anyone with a GitHub account can submit artifacts, share projects, write guides, and participate in discussions.
- **No bloat.** The `agex.toml` pattern keeps projects clean. Artifacts live on the hub, not scattered across repos.

## Information Architecture

```
hub.agex.dev (dev: /app)
├── /                             # Dashboard (your projects, starred, activity)
├── /configs                      # Browse all artifacts (rules, skills, tools, automation)
│   ├── /configs/new              # Create/upload artifact
│   └── /configs/@user/slug       # Artifact detail (versions, comments, pull command)
├── /projects                     # Browse projects (bundled artifact sets)
│   ├── /projects/new             # Create project
│   └── /projects/@user/slug      # Project detail (manifest, included artifacts)
├── /feed                         # HN-style discussion feed
│   ├── /feed/new
│   ├── /feed/top
│   └── /feed/:id
├── /tools                        # Tool & resource registry
│   ├── /tools/:slug
│   └── /tools/submit
├── /u/:username                  # User profile
└── /org/:orgname                 # Organization profile

agex.dev (marketing)
├── /                             # Landing page
├── /login                        # GitHub OAuth login
├── /about, /docs, /blog          # Marketing pages
```

## User Model

- Authentication via GitHub OAuth (NextAuth).
- Users have a profile showing their submissions, reviews, and activity.
- Organizations for team-shared projects and artifacts.
- Reputation is earned through contributions (submissions, reviews, helpful comments).
- No anonymous posting — GitHub identity provides accountability.

## Tech Stack

- Next.js (App Router) with React
- Tailwind CSS + shadcn/ui for styling (+ ReactBits, Magic UI for effects)
- Node.js server layer
- Supabase Postgres database
- Drizzle ORM
- NextAuth v5 with GitHub OAuth
- Markdown rendering with syntax highlighting
- CLI: Node/Bun for initial development, potentially Go for distribution


test-test