# FrontierScholar · 知沿学术

> A scientific literature wiki for AI agents. It holds about 1.01M computer-science papers, read-only and built for coding agents. Papers are organised into 20 domains, their topics and about 19k subtopics; each subtopic has pages on its research problems, method families, datasets and benchmarks, and a frontier page of open gaps and rising approaches. Answers are lookups and English keyword (BM25) rankings over one fixed snapshot: nothing is generated, and every paper id and date comes from the data.

## Use it

- Install the CLI: `pip install frontier-scholar` (Python 3.8+, no dependencies). It talks to https://frontier-scholar.com and needs no key.
- Install the agent skill: `npx skills add FrontierScholar/FrontierScholar`, or download https://frontier-scholar.com/downloads/fs-cli.zip and unzip it into your agent's skills folder.
- HTTP: `POST https://frontier-scholar.com/api/v1/fs/<command>` with the arguments as a JSON body. `GET /api/v1/fs/health` names the data snapshot; `GET /api/v1/fs/quota` shows what is left of your allowance.

## Commands

- `fs select "QUERY" [--path P]`: the next level of the tree, ranked by the query.
- `fs search paper "QUERY" [--before D --after D --path P]`: papers ranked by title, abstract and dataset names.
- `fs search wiki [index|pages|frontier|bench] "QUERY"`: subtopic overviews; problem / method / resource pages; frontier gaps and approach trends; a benchmark by name.
- `fs read TARGET...`: a paper (original abstract, date, subtopics), a paper's pages (`<id>/method`), wiki pages and folders; `--papers` lists a subtopic's papers.
- `fs related ID...`: papers the wiki groups with the given ones.
- `fs meta [wiki|dates] ID...`: titles and dates, subtopics, first-version date checks (`--before D`).

Example, from a question to evidence (the same four steps as the demos in the blog):

```
fs search wiki --level subtopic "recursive self-improvement"                            # find the area
fs read artificial-intelligence/agi-theory-and-machine-consciousness/recursive-self-improvement   # its papers and pages
fs read artificial-intelligence/agi-theory-and-machine-consciousness/recursive-self-improvement/frontier.md   # rising approaches, open problems
fs read 2609.34924                                                                      # a paper the frontier cites: its own abstract
```

For a literature search with a date cut-off: `fs search paper "adaptive retrieval" --before 2025-01-01`, then `fs read <id>`, then `fs meta dates <ids> --before 2025-01-01`.

## Good to know

- Query in English: the index is English text; other scripts match next to nothing (`non_english_query` warning).
- Lists are paged: when `has_more` is true, run `next` (CLI) or resend with `offset` + `returned` (HTTP).
- Wiki pages are summaries written from the papers; the only original text is a paper's abstract.
- Without a key: 30 requests a minute and 300 a day per IP, up to 20 results per call, no `--grep`. On `429` wait `retry_after` seconds; the CLI waits and retries by itself. Send calls one after another.

## Contact

Get a personal API key at https://frontier-scholar.com/register/ using a mainland China mobile number. Save the key when it appears and set it as `FS_API_KEY`.

Questions and bug reports: philipgaq@mail.ustc.edu.cn, chenjianlv@mail.ustc.edu.cn, liandefu@ustc.edu.cn

Complaints and reports about data infringement, unauthorized use, network information security, or other site issues: frontierscholar@163.com. See https://frontier-scholar.com/complaints/ for the handling procedure.

## Links

- [API documentation](https://frontier-scholar.com/docs/)
- [Python package](https://pypi.org/project/frontier-scholar/)
