Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "agents-md-marketplace",
"name": "agents-md",
"metadata": {
"description": "Automatic AGENTS.md file loading for Claude Code"
},
"owner": {
"name": "Ben Drucker",
"url": "https://github.com/bendrucker"
},
"plugins": [
{
"name": "agents-md",
"source": "./../",
"source": "./",
"description": "Loads AGENTS.md files automatically into Claude Code sessions",
"version": "1.0.0",
"author": {
Expand Down
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,39 @@ claude plugin marketplace add bendrucker/claude-code-agents-md
claude plugin install agents-md
```

## Known Issue

Due to [a bug in Claude Code](https://github.com/anthropics/claude-code/issues/11509), plugin hooks are not registered. Until this is fixed, you must manually add the hooks to your user settings (`~/.claude/settings.json`):

```json
{
"hooks": {
"SessionStart": [
{
"matcher": "startup|clear|compact",
"hooks": [
{
"type": "command",
"command": "node ~/.claude/plugins/cache/agents-md-marketplace/agents-md/1.0.0/agents-md-marketplace/.claude-plugin/hook.ts"
}
]
}
],
"PostToolUse": [
{
"matcher": "Read",
"hooks": [
{
"type": "command",
"command": "node ~/.claude/plugins/cache/agents-md-marketplace/agents-md/1.0.0/agents-md-marketplace/.claude-plugin/hook.ts"
}
]
}
]
}
}
```

## How It Works

The plugin uses two hooks to inject `AGENTS.md` content into Claude Code sessions:
Expand Down