Agentmemory REST API
rohitg00/agentmemory
Covers the HTTP REST endpoints of the agentmemory server, its primary interface, for hosts without MCP or when MCP is unavailable.
Run Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout.
$ npx skills add castorini/anserini --skill anserini-cli -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install castorini/anserini anserini-cli --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/anserini-cli .claude/skills/anserini-cli && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "anserini-cli" agent skill from https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cli into .claude/skills/anserini-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anserini-cli", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cliType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add castorini/anserini --skill anserini-cli -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install castorini/anserini anserini-cli --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/anserini-cli .agents/skills/anserini-cli && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "anserini-cli" agent skill from https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cli into .agents/skills/anserini-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anserini-cli", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add castorini/anserini --skill anserini-cli -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install castorini/anserini anserini-cli --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/anserini-cli .cursor/skills/anserini-cli && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "anserini-cli" agent skill from https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cli into .cursor/skills/anserini-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anserini-cli", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/castorini/anserini.git --path .agents/skills/anserini-cli--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add castorini/anserini --skill anserini-cli -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install castorini/anserini anserini-cli --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/anserini-cli .gemini/skills/anserini-cli && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "anserini-cli" agent skill from https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cli into .gemini/skills/anserini-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anserini-cli", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install castorini/anserini anserini-cliInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add castorini/anserini --skill anserini-cli -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/anserini-cli .github/skills/anserini-cli && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "anserini-cli" agent skill from https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cli into .github/skills/anserini-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anserini-cli", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add castorini/anserini --skill anserini-cli -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install castorini/anserini anserini-cli --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/anserini-cli .opencode/skills/anserini-cli && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "anserini-cli" agent skill from https://github.com/castorini/anserini/tree/master/.agents/skills/anserini-cli into .opencode/skills/anserini-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "anserini-cli", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
anserini-cliRun Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout.
Anserini CLI is an agent skill from castorini/anserini. Run Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout. Use for PrebuiltIndexRegistry, TopicsRegistry, ad hoc search, interactive search, output formats, and RestServer examples.
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
The repository describes itself as: Anserini is a Lucene toolkit for reproducible information retrieval research. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 1841646. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
javajqcurlFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Anserini CLI loads about 2.2k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 694 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from castorini/anserini at commit 1841646, republished under its Apache-2.0 licence (© castorini). 694 words, ~2,230 tokens.
.claude/skills/anserini-cli/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Use this skill when Anserini is already available through either a resolved
fatjar or a source checkout. This skill covers command usage, not environment
setup or builds. If no usable fatjar or checkout is present, use
$install-anserini-fatjar or $install-anserini-dev-env first.
Do not run commands that trigger large prebuilt-index downloads unless the user explicitly asks for retrieval experiments or index downloads.
Examples below use the fatjar form:
java -cp "$ANSERINI_JAR" <main-class> <args>From an Anserini source checkout, replace java -cp "$ANSERINI_JAR" with
bin/run.sh:
bin/run.sh <main-class> <args>Keep commands pinned to the same jar or checkout unless the user asks to change versions.
For a fatjar workflow, confirm ANSERINI_JAR is set and points to an existing
jar:
test -n "$ANSERINI_JAR"
test -f "$ANSERINI_JAR"For a checkout workflow, confirm bin/run.sh is available:
test -x bin/run.shA useful functional smoke test is:
java -cp "$ANSERINI_JAR" io.anserini.search.SearchCollection \
-threads 1 \
-index cacm \
-topics cacm \
-output run.cacm.bm25.txt \
-hits 1000 \
-bm25This command may download the small CACM prebuilt index and topics on first use.
To inspect prebuilt indexes exposed by io.anserini.cli.PrebuiltIndexRegistry,
run:
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --list--list emits JSON in current jars, so prefer --filter and jq instead of
grepping raw output. If jq is not available, ask the user whether it should be
installed before relying on jq examples.
msmarco-v1-passage is a common choice and should be called out when users ask
about available prebuilt indexes or MS MARCO passage retrieval setup.
Recommended lookup for the standard MS MARCO V1 passage inverted index:
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --list --filter '^msmarco-v1-passage$' \
| jq '.[0] | {name, type, description, filename}'Useful variants:
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --help
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --list --filter 'msmarco.*passage' | jq '.[].name'
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --type flat --list
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --type inverted --list
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --type impact --list
java -cp "$ANSERINI_JAR" io.anserini.cli.PrebuiltIndexRegistry --type hnsw --listTo inspect topics exposed by io.anserini.cli.TopicsRegistry, run:
java -cp "$ANSERINI_JAR" io.anserini.cli.TopicsRegistry --list--list emits canonical topic names as JSON. Use --filter <regexp> to narrow
the registry with a regular expression:
java -cp "$ANSERINI_JAR" io.anserini.cli.TopicsRegistry --list --filter 'msmarco' | jq '.'--get writes parsed topics as JSON to stdout:
java -cp "$ANSERINI_JAR" io.anserini.cli.TopicsRegistry --get <name>--metadata writes the canonical name, aliases, registered path, reader class,
and downloaded local path as JSON to stdout:
java -cp "$ANSERINI_JAR" io.anserini.cli.TopicsRegistry --metadata <name>Both --get and --metadata download the registered topics when needed.
For the standard MS MARCO V1 passage queries that pair with the
msmarco-v1-passage prebuilt index, use the canonical name
msmarco-passage.dev-subset:
java -cp "$ANSERINI_JAR" io.anserini.cli.TopicsRegistry --metadata msmarco-passage.dev-subset | jq '.'Aliases such as msmarco-v1-passage.dev are also accepted by --get and
--metadata.
To inspect qrels exposed by io.anserini.cli.QrelsRegistry, run:
java -cp "$ANSERINI_JAR" io.anserini.cli.QrelsRegistry --list--list emits canonical qrels names as JSON. Use --filter <regexp> to narrow
the registry with a regular expression:
java -cp "$ANSERINI_JAR" io.anserini.cli.QrelsRegistry --list --filter 'msmarco' | jq '.'--get writes raw qrels to stdout:
java -cp "$ANSERINI_JAR" io.anserini.cli.QrelsRegistry --get <name>--metadata writes the canonical name, aliases, registered path, and downloaded
local path as JSON to stdout:
java -cp "$ANSERINI_JAR" io.anserini.cli.QrelsRegistry --metadata <name>Both --get and --metadata download the registered qrels when needed.
For the standard MS MARCO V1 passage relevance judgments that pair with the
msmarco-v1-passage prebuilt index, use the canonical name
msmarco-passage.dev-subset:
java -cp "$ANSERINI_JAR" io.anserini.cli.QrelsRegistry --metadata msmarco-passage.dev-subset | jq '.'Use io.anserini.cli.Search for ad hoc retrieval against either a local Lucene
index path or a prebuilt index name.
Example using the popular msmarco-v1-passage prebuilt index:
java -cp "$ANSERINI_JAR" io.anserini.cli.Search --index msmarco-v1-passage --query "what is a lobster roll" --hits 10 --jsonInteractive mode:
java -cp "$ANSERINI_JAR" io.anserini.cli.Search --index msmarco-v1-passage --interactive --jsonUseful output variants:
java -cp "$ANSERINI_JAR" io.anserini.cli.Search --index msmarco-v1-passage --query "what is a lobster roll" --json
java -cp "$ANSERINI_JAR" io.anserini.cli.Search --index msmarco-v1-passage --query "what is a lobster roll" --trecUse io.anserini.cli.GetDocument to fetch the stored raw document for a
collection docid from either a local Lucene index path or a prebuilt index name.
Example using the popular msmarco-v1-passage prebuilt index:
java -cp "$ANSERINI_JAR" io.anserini.cli.GetDocument --index msmarco-v1-passage --docid 2161721Interactive mode reads docids from stdin:
java -cp "$ANSERINI_JAR" io.anserini.cli.GetDocument --index msmarco-v1-passage --interactiveThis command prints the document's stored raw field. It reports an error when the docid is not found or when the index does not store raw documents.
Use io.anserini.search.SearchCollection for batch retrieval over a topic set.
It writes TREC run files and supports retrieval-model flags such as -bm25,
-rm3, -rocchio, -hits, and -threads. Use io.anserini.cli.Search instead
for single-query or interactive inspection.
Canonical CACM example using a prebuilt index and built-in topic symbol:
java -cp "$ANSERINI_JAR" io.anserini.search.SearchCollection \
-index cacm \
-topics cacm \
-output run.cacm.bm25.txt \
-hits 1000 \
-bm25Evaluate the CACM run with Anserini's Java trec_eval wrapper:
java -cp "$ANSERINI_JAR" io.anserini.eval.TrecEval \
-c \
-m map \
-m P.30 \
cacm \
run.cacm.bm25.txtExpected scores are MAP 0.3123 and P30 0.1942.
To verify them mechanically:
java -cp "$ANSERINI_JAR" io.anserini.eval.TrecEval \
-c \
-m map \
-m P.30 \
cacm \
run.cacm.bm25.txt | tee eval.cacm.bm25.txt
grep -Eq '^map[[:space:]]+all[[:space:]]+0\.3123$' eval.cacm.bm25.txt
grep -Eq '^P_30[[:space:]]+all[[:space:]]+0\.1942$' eval.cacm.bm25.txtUse io.anserini.api.RestServer to expose search and document lookup over HTTP.
Fatjar invocation:
java -cp "$ANSERINI_JAR" io.anserini.api.RestServer --port 8081Sample requests against the popular msmarco-v1-passage index:
curl "http://localhost:8081/v1/msmarco-v1-passage/search?query=what%20is%20anserini&hits=5"
curl "http://localhost:8081/v1/msmarco-v1-passage/doc/2161721"This REST workflow is most useful when users want to query the same prebuilt
indexes exposed by the CLI, especially msmarco-v1-passage.
$install-anserini-fatjar to download a released Maven
Central fatjar, or $install-anserini-dev-env if the user needs a jar built
from the source checkout.bin/run.sh: use $install-anserini-dev-env from an Anserini checkout.ClassNotFoundException: confirm the jar or checkout was built from the
expected Anserini version.RestServer reports Port already in use for unused ports in a sandboxed
Codex session: local socket binding may be blocked by sandbox permissions.
Rerun the server command with escalation, and use an available high local port
if the documented port is occupied.© castorini, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/anserini-cli of castorini/anserini.
Open the folder on GitHubat commit 1841646
Anserini CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Anserini CLI this skillcastorini/anserini | 1.2k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| Agentmemory REST APIrohitg00/agentmemory | 29k | — | ~404 | Automated safety check: Pass | Apache-2.0 | |
| Phoenix REST APIArize-ai/phoenix | 12k | — | ~286 | Automated safety check: Pass | Custom licence | |
| Onesignal REST API AutomationComposioHQ/awesome-claude-skills | 77k | 3 repos | ~754 | Automated safety check: Pass | None | |
| Shorten REST AutomationComposioHQ/awesome-claude-skills | 77k | 3 repos | ~749 | Automated safety check: Pass | None | |
| Fp Either Refsickn33/agentic-awesome-skills | 47k | 2 repos | ~655 | Automated safety check: Pass | MIT |
rohitg00/agentmemory
Covers the HTTP REST endpoints of the agentmemory server, its primary interface, for hosts without MCP or when MCP is unavailable.
Arize-ai/phoenix
REST API development for Phoenix. An agent skill from Arize-ai/phoenix.
ComposioHQ/awesome-claude-skills
Automate OneSignal tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.
ComposioHQ/awesome-claude-skills
Automate Shorten Rest tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.
sickn33/agentic-awesome-skills
Quick reference for Either type. An agent skill from sickn33/agentic-awesome-skills.
open-edge-platform/anomalib
Designs and reviews REST APIs for FastAPI services using consistent resource naming, HTTP semantics, validation, security, and error handling patterns.
castorini/anserini
Reproduce experimental results with Anserini. An agent skill from castorini/anserini.
castorini/anserini
Set up and verify Anserini source-development environments. An agent skill from castorini/anserini.
castorini/anserini
Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository.
Run Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout. Anserini CLI is an agent skill from castorini/anserini. Run Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout.
Anserini CLI fits situations like: prebuiltIndexRegistry; interactive search; restServer examples.
Run `npx skills add castorini/anserini --skill anserini-cli -a claude-code`. Or copy the skill folder (.agents/skills/anserini-cli in castorini/anserini) into .claude/skills/anserini-cli in your project. Claude Code loads it when a task matches its description.
Run `npx skills add castorini/anserini --skill anserini-cli -a codex`. Or copy the skill folder (.agents/skills/anserini-cli in castorini/anserini) into .agents/skills/anserini-cli in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add castorini/anserini --skill anserini-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/anserini-cli, .gemini/skills/anserini-cli, .github/skills/anserini-cli and .opencode/skills/anserini-cli in your project.
Going by SKILL.md and its folder, Anserini CLI needs the command-line tools its instructions call (java, jq and curl).
SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Anserini CLI is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Anserini CLI: Agentmemory REST API (rohitg00/agentmemory, 29k stars), Phoenix REST API (Arize-ai/phoenix, 12k stars), Onesignal REST API Automation (ComposioHQ/awesome-claude-skills, 77k stars) and Shorten REST Automation (ComposioHQ/awesome-claude-skills, 77k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
castorini (a GitHub organization) maintains it in castorini/anserini, which has 1,197 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 9, 2026.
Source: castorini/anserini on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.