/adhx:adhxfrom adhx
Searches a user's ADHX saves (posts from X, Instagram, TikTok, YouTube, Reddit, etc.) by meaning, including image and video content. Also fetches any X/Twitter post as clean JSON for analysis or summarization.
Ships in adhx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ADHX keeps the posts a person saves from X, Instagram, TikTok, YouTube, Reddit, Facebook, LinkedIn, Vimeo, SoundCloud, Pinterest, Twitch, Threads, Imgur and Bluesky (X bookmarks can sync automatically, about every hour), and understands them: what they say, what is in their pictures, what happens in their videos, what is said aloud and what text appears on screen. This skill does two things:
Search needs the user's personal access key in the ADHX_API_KEY environment variable. Keys start with adhx_. ADHX is self-hosted: the user's server address is in ADHX_URL (e.g. https://adhx.example.com). If ADHX_URL isn't set, ask the user for their ADHX's address. adhx.com is only the project's website and has no API.
If ADHX_API_KEY is not set, ask the user to:
$ADHX_URL/settings#access-keys)export ADHX_API_KEY=adhx_..., plus export ADHX_URL=https://their-adhx.example for their own server) or the agent's environment settingsNever print, log or repeat the key. Pass it only in the Authorization header to the user's ADHX.
curl -s -G "$ADHX_URL/api/agent/search" \
-H "Authorization: Bearer $ADHX_API_KEY" \
--data-urlencode "q=a frog" \
--data-urlencode "type=videos"
| Parameter | Values | Notes |
|---|---|---|
q | plain words, up to 200 characters | Required. Describe the thing, not the request (see below) |
type | all (default), videos, photos, text, articles | Use it whenever the user names a kind of post |
limit | 1–30, default 10 | |
offset | from nextOffset in the last response | Next page |
q and typeSearch matches meaning across words, pictures, video frames, speech and on-screen text, so q should describe what is in the post. Move the kind of post into type and drop filler like "find", "my", "saved", "that one":
| User says | q | type |
|---|---|---|
| "videos that contain a frog" | a frog | videos |
| "that photo of a red sports car I saved" | red sports car | photos |
| "the article about sleep and memory" | sleep and memory | articles |
| "anything I saved about Rust async" | Rust async programming | all |
| "the clip where someone explains it on a whiteboard" | person explaining on a whiteboard | videos |
If nothing comes back close, try once more with a broader or differently worded q (e.g. frog → amphibian or toad) before saying it isn't there.
{
"query": "a frog",
"type": "videos",
"results": [
{
"platform": "twitter",
"kind": "video",
"url": "https://x.com/frogfan/status/111",
"adhxUrl": "https://adhx.example.com/frogfan/status/111",
"author": { "handle": "frogfan", "name": "Frog Fan" },
"text": "look at this little guy",
"postedAt": "2026-10-01T00:00:00.000Z",
"savedAt": "2026-10-02T00:00:00.000Z",
"article": null,
"links": ["https://frogs.example/care"],
"media": [
{ "type": "video", "url": "https://…", "thumbnailUrl": "https://…", "durationSeconds": 12 }
],
"tags": ["nature"],
"match": { "strength": "strong", "on": ["video", "words"] }
}
],
"total": 1,
"nextOffset": null
}
match.strength is strong (it's the thing), good (very likely) or related (close in meaning, not exactly it). match.on says what matched: video, picture, words, keywords, speech (something said in a video or sound) or screen (text shown in a picture or video).closest appears when nothing matched closely: say so, and offer the nearest results as maybes.note appears when search fell back to exact words, or when a post's picture or video isn't understood yet.kind is one of video, photo, text, article (a SoundCloud track is a video with sound only). platform is twitter, instagram, tiktok, youtube, facebook, reddit, linkedin, vimeo, soundcloud, pinterest, twitch, threads, imgur or bluesky.media[].url is the file on the user's ADHX, in the best quality it kept.links are the outside web pages the post points to. To read one, fetch it with your normal web tools.article, or to read a whole X thread or article, use the post reader below with the url.List the matches with their strength, the author, a one-line description from text (or the article title), and link to adhxUrl (it plays the post in ADHX) with url as the original. Don't paste raw JSON unless asked.
| Status | Meaning |
|---|---|
| 401 | Key missing, mistyped or removed: ask the user to check or make a new one |
| 400 | q empty or type not one of the values above |
| 429 | Too many searches; wait for Retry-After seconds |
If the request can't connect at all, ADHX_URL is probably wrong (it must be the user's own ADHX, with https:// and no path) or the server is only reachable from their home network or VPN. Ask rather than guessing another address.
$ADHX_URL/api/share/tweet/{username}/{statusId}
Extract username and statusId from any of these:
| Format | Example |
|---|---|
x.com/{user}/status/{id} | https://x.com/dgt10011/status/2020167690560647464 |
twitter.com/{user}/status/{id} | https://twitter.com/dgt10011/status/2020167690560647464 |
<your ADHX>/{user}/status/{id} | https://adhx.example.com/dgt10011/status/2020167690560647464 |
curl -s "$ADHX_URL/api/share/tweet/dgt10011/2020167690560647464"
Response:
{
"id": "statusId",
"url": "original x.com URL",
"text": "short-form tweet text (empty if article post)",
"author": { "name": "Display Name", "username": "handle", "avatarUrl": "profile image URL" },
"createdAt": "timestamp",
"engagement": { "replies": 0, "retweets": 0, "likes": 0, "views": 0 },
"article": {
"title": "Article title (for long-form posts)",
"previewText": "First ~200 chars",
"coverImageUrl": "hero image URL",
"content": "Full markdown content with images"
}
}
text holds the body of a regular post; article.content holds the full markdown of a long-form X article, with images as .ADHX_URL). Always prefer this over scraping or a browser for X content.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub itsmemeworks/adhx --plugin adhxOther plugins' skills for the same job