Skip to content

armgit / janas

Public Imported from GitHub
0

37 tok/s from Qwen3-Next-80B (48 GB) on a 32 GB laptop, 24 without drafts vs 2.8 for llama.cpp; reading 62 vs 16 tok/s. Faster than llama.cpp on all 13 models compared in Q4_K_M. LLMs bigger than your RAM, pure C, CPU or GPU.

Release 2026-10-03: the services' pages beside their code

camauri6e3b72d27476
diff --git a/ChangeLog.md b/ChangeLog.md
index 0ae604f..a1ab0be 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -2,6 +2,10 @@
> Curated, user-facing summary of completed work, newest first.
+## [2026-10-03] - The services' pages beside their code
+
+- **src/services/README.md** sums up the services and links each one's page, now `src/services/<service>/README.md` beside its code (they were in `docs/services/`); the main README links the summary.
+
## [2026-10-03] - janas-quakes: the earthquakes
- **janas-quakes**, an MCP service of the earthquakes: the latest near a place, where the user is, or within a sea of the built-in tables (by its polygons), the strongest in the world with the USGS's expected impact and its tsunami flag (told as a flag, not as a tsunami), one in detail (how many felt it, the strongest shaking estimated, the link to the source's page). INGV (CC BY 4.0) for Italy and the seas that reach into it, the USGS (public domain) elsewhere, each the other's fallback; the answers give the model each event's id, to name the one meant. Run over the protocol and in janas-chat; `tests/test_quakes_parse.c` checks the reading of both sources and the layouts.
@@ -34,7 +38,7 @@
## [2026-10-02] - janas-maps: roads and places
-- **janas-maps**, roads and places as an MCP service, from OpenStreetMap's data through free services with no key: a route by car, bike or on foot between two places or through a third, avoiding tolls, motorways or ferries when asked, with its length, time without traffic, main roads, up to two other ways, the way step by step in the computer's language and a link to the map (`maps_route`: Valhalla on FOSSGIS' servers, OSRM's route without steps when Valhalla does not answer); journeys by public transport leaving or arriving at a time, leg by leg (`maps_transit`: Transitous, over the operators' open timetables); the places of a kind around a place, nearest first, from a list of twenty kinds (`maps_nearby`: Overpass); where a place or an address is (`maps_find`: Nominatim, Photon when it does not answer). Every answer is data with a layout: the user sees the steps and the journeys, the model reads a brief. `janas-chat` starts it by itself; [docs/services/maps.md](docs/services/maps.md).
+- **janas-maps**, roads and places as an MCP service, from OpenStreetMap's data through free services with no key: a route by car, bike or on foot between two places or through a third, avoiding tolls, motorways or ferries when asked, with its length, time without traffic, main roads, up to two other ways, the way step by step in the computer's language and a link to the map (`maps_route`: Valhalla on FOSSGIS' servers, OSRM's route without steps when Valhalla does not answer); journeys by public transport leaving or arriving at a time, leg by leg (`maps_transit`: Transitous, over the operators' open timetables); the places of a kind around a place, nearest first, from a list of twenty kinds (`maps_nearby`: Overpass); where a place or an address is (`maps_find`: Nominatim, Photon when it does not answer). Every answer is data with a layout: the user sees the steps and the journeys, the model reads a brief. `janas-chat` starts it by itself; [src/services/maps](src/services/maps/README.md).
- **The sources' rules are kept**: a User-Agent naming the program, at most one request a second to each server (`janas-maps` waits between two), answers kept a while, every server's address changeable (`JANAS_VALHALLA_URL` and the like), OpenStreetMap's attribution in every answer.
- **What could go wrong, found and mended on the way**: a town named alone ("Trapani") is the municipality's boundary in Nominatim, whose point lies in the fields 25 km from the town, and a journey by bus from there took thirteen hours; the town's own point is taken now. OSRM's server knows Europe only and put New York on the nearest European road, a route of 3,556 km; a place that far from a road is now said to be unreachable.
- **Tried in `janas-chat` with Qwen3.6-35B-A3B**: a route, the train, a pharmacy near the user. Mended after the first run: a translated layout keeps the English lines after its tags (the model had added blank lines between the legs of a journey: `src/chat/layout.c`, with a test); an arrival reads "06:26 get off at MARSALA" ("at" before both a time and a place came out wrong in Italian); "near me" is never a place only talked of. Overpass: a second instance (Private.coffee) when the first is busy, 25 s for each (`janas_https_get_ms`; the other sources keep 15 s), and both failures in the error.
@@ -51,7 +55,7 @@
- **Shorter tools and instructions.** The services' descriptions, parameters and instructions say the same in fewer words: flights 40% shorter, weather 33%, Wikipedia 16%.
- **The system message is read ahead, and kept on the disk.** With the three services' tools it is about 4,000 tokens, and on Qwen3.6-35B-A3B the first reply sat on "reading" for 72-84 s. `janas-chat` now reads it as soon as it starts, while the user writes, on a thread of its own, and shows it: a line in the conversation, and the share read in the status line, in the part kept longest; a message sent earlier waits in plain sight. Once read it goes to `~/.cache/janas`, and the next chat on the model finds it there and starts at once. In the library, `janas_llm_chat_prepare` (and in `llm.bi`): checked on Qwen3-0.6B and Qwen3.5-0.8B (the same reply with it and without, the first message finding the 2,000 tokens computed, a new chat finding them on the disk, a new system message dropping them) and in `janas-chat` with the 35B, twice: the second chat found its 4,057 tokens on the disk.
-- **janas-wiki**, Wikipedia as an MCP service, with no key, used when the user asks for it: its search, best first, a title and a line each (`wiki_search`); a page shown to the user as it is, a short one whole, a long one as its introduction and then the section asked for, while the model gets a note of it - its address and its sections - and not its text (`wiki_page`); and the pages about what lies around a place, nearest first, with how far and which way (`wiki_nearby`; with no place, where the user is). Titles that lead elsewhere are followed and disambiguation pages listed. Otherwise the model answers from what it knows. `janas-chat` starts it by itself; [docs/services/wiki.md](docs/services/wiki.md).
+- **janas-wiki**, Wikipedia as an MCP service, with no key, used when the user asks for it: its search, best first, a title and a line each (`wiki_search`); a page shown to the user as it is, a short one whole, a long one as its introduction and then the section asked for, while the model gets a note of it - its address and its sections - and not its text (`wiki_page`); and the pages about what lies around a place, nearest first, with how far and which way (`wiki_nearby`; with no place, where the user is). Titles that lead elsewhere are followed and disambiguation pages listed. Otherwise the model answers from what it knows. `janas-chat` starts it by itself; [src/services/wiki](src/services/wiki/README.md).
- **A tool's answer can be for the user alone.** MCP marks the parts of an answer with their audience; `libjanas_mcp` now keeps those meant for the user alone apart from the model's text (`janas_mcp_result_user`, also in `mcp.bi`), and `janas-chat` shows them as they are. A page of Wikipedia read by the model cost thousands of tokens and over a minute of a large model, and a few filled its context: Qwen3-Next-80B, asked about Franco Zeffirelli, read pages and then asked for the weather and the flights of Florence, and reached 13,429 tokens without answering. With the 35B, "show me his page" now costs a note of 174 tokens, 3 s.
- **The services do not call each other's tools unasked.** Each one's instructions say so: no weather or flights for a person's home town unless the user asks.
- **A place named in English finds the right town.** "Milan" gave the weather of Milan, Tennessee, and the model told it as Milan's; "Florence" and "Venice" went to Alabama and to Dayton, Ohio. Of the places the geocoding finds, the one taken is now the most people weighed by the place's rank (a capital, a region's seat): eighteen names out of eighteen tried, Italian and foreign.
@@ -59,7 +63,7 @@
## [2026-10-01] - janas-weather, and "here" for the services
-- **janas-weather**, the weather as an MCP service, from free sources with no key: the weather now (`weather_now`: Open-Meteo's model, and what the nearest airport's station measured, with when and how far; when the two disagree, the answer says so), the forecast day by day and hour by hour (`weather_forecast`), the sea at points across it or off a place, with the waves' names (`weather_sea`), and the warnings in force from MeteoAlarm, with the Civil Protection's levels in Italy (`weather_alerts`). MET Norway answers when Open-Meteo does not. `janas-chat` starts it by itself; [docs/services/weather.md](docs/services/weather.md).
+- **janas-weather**, the weather as an MCP service, from free sources with no key: the weather now (`weather_now`: Open-Meteo's model, and what the nearest airport's station measured, with when and how far; when the two disagree, the answer says so), the forecast day by day and hour by hour (`weather_forecast`), the sea at points across it or off a place, with the waves' names (`weather_sea`), and the warnings in force from MeteoAlarm, with the Civil Protection's levels in Italy (`weather_alerts`). MET Norway answers when Open-Meteo does not. `janas-chat` starts it by itself; [src/services/weather](src/services/weather/README.md).
- **"Here", when a question names no place**: `JANAS_LOCATION` (a city, `lat,lon`, or `off`), else the internet connection's position (GeoJS, ipwho.is), else the city of the computer's time zone; the answer says which, and the model tells the user it is a guess. For the weather and for `flights_nearby`.
- **Tool calls in Qwen's XML form take their parameters in any order.** The grammar held them to the schema's order, and a model that began with a later one could no longer write an earlier one: Qwen3.6-35B-A3B asked the forecast with the number of days first and the place lost, sixteen times over.
- **`janas-chat` does not run again a call that failed** with the same arguments in the same exchange: the model is told to answer or to ask, and at the second time the exchange stops.
diff --git a/README.md b/README.md
index 7dbfe15..2614d4d 100644
--- a/README.md
+++ b/README.md
@@ -52,15 +52,16 @@ Everything the engine does is chosen from what it measures, so another machine w
- **`libjanas_llm`:** a C library ([`include/janas/llm.h`](include/janas/llm.h)) and a FreeBASIC binding ([`include/janas/llm.bi`](include/janas/llm.bi)).
- **Tools from MCP servers** in `janas-chat`: the servers configured as the other clients configure them, each call shown and confirmed before it runs ([below](#tools-from-mcp-servers)). The client is a library of its own, **`libjanas_mcp`** ([`include/janas/mcp.h`](include/janas/mcp.h), [`include/janas/mcp.bi`](include/janas/mcp.bi)).
- **`janas-mcp`:** the other way round, the model offered as tools to MCP clients - a question to it, the embedding of a text ([below](#janas-as-an-mcp-server)).
-- **`janas-flights`:** where a flight is and what flies over a sea or a place, as MCP tools, from the ADS-B receivers of the community, and today's schedules with a free AviationStack key: the first of Janas's services ([docs/services](docs/services/README.md)).
-- **`janas-weather`:** the weather now, with what the nearest station measured, the forecast, the sea and its waves, and the warnings in force (in Italy the Civil Protection's levels), from free sources with no key ([docs/services/weather.md](docs/services/weather.md)).
-- **`janas-maps`:** roads and places: a route by car, bike or on foot, step by step in your language, journeys by public transport, what is near (fuel, a pharmacy, a cash machine...), where an address is; OpenStreetMap's data through free services with no key ([docs/services/maps.md](docs/services/maps.md)).
-- **`janas-prices`:** prices and finance, for information: currencies at the ECB's rates, crypto-assets, shares (with a free key of yours), inflation, central banks' rates, electricity where it is open data, the cheapest fuel near a place in Italy, France, Spain and Austria ([docs/services/prices.md](docs/services/prices.md)).
-- **`janas-github`:** a project on GitHub: its issues and pull requests (the new ones since you last asked), its latest releases, its recent commits, what it is; it only reads, with the gh command's token when you have one ([docs/services/github.md](docs/services/github.md)).
-- **`janas-git`:** the git repositories of your computer: what has changed, the commits, the branches, a diff; and a commit, pull, push or switch of branch, each shown whole and asked of you first; nothing that throws work away ([docs/services/git.md](docs/services/git.md)).
-- **`janas-quakes`:** the earthquakes: the latest near a place or where you are, the strongest in the world, one in detail, from INGV (Italy and its seas) and the USGS ([docs/services/quakes.md](docs/services/quakes.md)).
-- **`janas-system`:** this computer: how it is (memory, processor, disks, battery, temperatures), what fills a directory, the programs running, the errors of its logs, the updates, the network; it only reads, and none of its tools reaches the network ([docs/services/system.md](docs/services/system.md)).
-- **`janas-wiki`:** Wikipedia when you ask for it: its search, a page shown to you as it is (the introduction, then the section asked for) while the model reads only a note of it, and the pages about what lies around a place ([docs/services/wiki.md](docs/services/wiki.md)).
+- **`janas-flights`:** where a flight is and what flies over a sea or a place, as MCP tools, from the ADS-B receivers of the community, and today's schedules with a free AviationStack key: the first of Janas's services.
+- **`janas-weather`:** the weather now, with what the nearest station measured, the forecast, the sea and its waves, and the warnings in force (in Italy the Civil Protection's levels), from free sources with no key.
+- **`janas-maps`:** roads and places: a route by car, bike or on foot, step by step in your language, journeys by public transport, what is near (fuel, a pharmacy, a cash machine...), where an address is; OpenStreetMap's data through free services with no key.
+- **`janas-prices`:** prices and finance, for information: currencies at the ECB's rates, crypto-assets, shares (with a free key of yours), inflation, central banks' rates, electricity where it is open data, the cheapest fuel near a place in Italy, France, Spain and Austria.
+- **`janas-github`:** a project on GitHub: its issues and pull requests (the new ones since you last asked), its latest releases, its recent commits, what it is; it only reads, with the gh command's token when you have one.
+- **`janas-git`:** the git repositories of your computer: what has changed, the commits, the branches, a diff; and a commit, pull, push or switch of branch, each shown whole and asked of you first; nothing that throws work away.
+- **`janas-quakes`:** the earthquakes: the latest near a place or where you are, the strongest in the world, one in detail, from INGV (Italy and its seas) and the USGS.
+- **`janas-system`:** this computer: how it is (memory, processor, disks, battery, temperatures), what fills a directory, the programs running, the errors of its logs, the updates, the network; it only reads, and none of its tools reaches the network.
+- **`janas-wiki`:** Wikipedia when you ask for it: its search, a page shown to you as it is (the introduction, then the section asked for) while the model reads only a note of it, and the pages about what lies around a place.
+- **The services, each with its page** - what it answers, its sources, its keys, how to use it in Claude Code and other clients: [src/services](src/services/README.md).
- **`janas-server`:** the model behind an HTTP API that follows OpenAI's, so that clients written for it can use a model running on this machine: chat and completions with tools, JSON output held to a schema and log-probabilities, the Responses API with its conversations, embeddings and moderations, a chat page of its own to try it from a browser ([below](#using-it-over-http)), and code completion for VSCodium and VS Code ([docs/code-completion.md](docs/code-completion.md)).
- **`janas-bench`:** measures the machine, fills its profile and writes a report.
- **Faster replies** from drafts the model verifies, so the text is exactly the one it would have written: from the model's own multi-token prediction block where it has one, from the conversation where it does not, or from a small model of the same family given with `--draft`.
@@ -94,7 +95,7 @@ For a point of reference, llama.cpp (build `2b18470` of 18 September 2026) on th
- [ChangeLog.md](ChangeLog.md) — what changed, newest first
- [MODELS.md](MODELS.md) — what a converted model's licence is, and what may be redistributed
- [CONTRIBUTING.md](CONTRIBUTING.md) — how to help, and the sign-off
-- [docs/services](docs/services/README.md) — Janas's services (flights, weather, Wikipedia), in `janas-chat` and in other MCP clients
+- [src/services](src/services/README.md) — Janas's services, each with its page, in `janas-chat` and in other MCP clients
- [docs/code-completion.md](docs/code-completion.md) — code completion in VSCodium and VS Code, through `janas-server`
- [AUTHORS](AUTHORS) — who wrote it, and what it owes to others
- [LICENSE](LICENSE) — GNU GPL, version 3 or later
@@ -300,7 +301,7 @@ printf 'Explain mixture of experts in one paragraph.\n/quit\n' \
### Janas's services
-The chat starts by itself the services of Janas it finds beside it - `janas-flights`, `janas-git`, `janas-github`, `janas-maps`, `janas-prices`, `janas-quakes`, `janas-system`, `janas-weather` and `janas-wiki` - and the model uses their tools when a question needs them, without being told: ask "which flights are over the Tyrrhenian Sea now?", "what's the weather like?", "how do I get to Palermo by train?", "are there new issues on Janas?", "what has changed in this repository?", "where is diesel cheapest near here?", "what is filling my disk?", "was there an earthquake?" or "show me Wikipedia's page on Zeffirelli" (with no place, where you are: `JANAS_LOCATION`, or a guess from the internet connection). `--no-services` starts none. How they work, their keys, and how to use them in Claude Code and other clients: [docs/services](docs/services/README.md).
+The chat starts by itself the services of Janas it finds beside it - `janas-flights`, `janas-git`, `janas-github`, `janas-maps`, `janas-prices`, `janas-quakes`, `janas-system`, `janas-weather` and `janas-wiki` - and the model uses their tools when a question needs them, without being told: ask "which flights are over the Tyrrhenian Sea now?", "what's the weather like?", "how do I get to Palermo by train?", "are there new issues on Janas?", "what has changed in this repository?", "where is diesel cheapest near here?", "what is filling my disk?", "was there an earthquake?" or "show me Wikipedia's page on Zeffirelli" (with no place, where you are: `JANAS_LOCATION`, or a guess from the internet connection). `--no-services` starts none. How they work, their keys, and how to use them in Claude Code and other clients: [src/services](src/services/README.md).
**The services' tools are given when they are needed.** Written into the system message, the tools of three services made it four thousand tokens, over a minute of a large model before the first message, and every service more made it longer. The system message now holds a catalog, a line a service, and the model opens a service when a question needs it: that service's instructions and tools come back as the answer of the call, its tools can be called from then on, and the next reply is held to be a call (a small model told to call one made the answer up instead). With Qwen3.6-35B-A3B the system message went from 4,057 tokens to 616, and opening the weather costs about a thousand tokens, once in a conversation, when the first question about the weather comes. `--all-tools` writes them all into the system message as before.
diff --git a/docs/services/README.md b/src/services/README.md
similarity index 76%
rename from docs/services/README.md
rename to src/services/README.md
index edb51ba..4507979 100644
--- a/docs/services/README.md
+++ b/src/services/README.md
@@ -4,15 +4,15 @@ A service of Janas is a program that brings data of the world - flights, the wea
| Service | What it answers | Key |
|---|---|---|
-| [`janas-flights`](flights.md) | where a flight is and what it is doing, its times, the flights of a route, what flies over a sea or near a place | none for live data; a free one of your own for schedules |
-| [`janas-git`](git.md) | the git repositories of this computer: what has changed, the commits, the branches, a diff; a commit, pull, push or switch of branch, each asked of you first | none |
-| [`janas-github`](github.md) | a project's issues and pull requests (the new ones), its latest releases, its recent commits, what it is | none; the gh command's token when you have one |
-| [`janas-maps`](maps.md) | a route by car, bike or on foot, step by step; journeys by public transport; what is near a place; where an address is | none |
-| [`janas-prices`](prices.md) | for information: currencies, crypto-assets, shares, inflation, central banks' rates, electricity, the cheapest fuel near a place | none; a free one of your own for shares |
-| [`janas-quakes`](quakes.md) | the earthquakes near a place or where you are, the strongest in the world, one in detail | none |
-| [`janas-system`](system.md) | this computer: how it is (memory, processor, disks, battery, temperatures), what fills a directory, the programs running, the errors, the updates, the network | none; nothing reaches the network |
-| [`janas-weather`](weather.md) | the weather now (a model's and a station's), the forecast, the sea and its waves, the warnings in force | none |
-| [`janas-wiki`](wiki.md) | Wikipedia's search, its pages as text, the pages about what lies around a place | none |
+| [`janas-flights`](flights/README.md) | where a flight is and what it is doing, its times, the flights of a route, what flies over a sea or near a place | none for live data; a free one of your own for schedules |
+| [`janas-git`](git/README.md) | the git repositories of this computer: what has changed, the commits, the branches, a diff; a commit, pull, push or switch of branch, each asked of you first | none |
+| [`janas-github`](github/README.md) | a project's issues and pull requests (the new ones), its latest releases, its recent commits, what it is | none; the gh command's token when you have one |
+| [`janas-maps`](maps/README.md) | a route by car, bike or on foot, step by step; journeys by public transport; what is near a place; where an address is | none |
+| [`janas-prices`](prices/README.md) | for information: currencies, crypto-assets, shares, inflation, central banks' rates, electricity, the cheapest fuel near a place | none; a free one of your own for shares |
+| [`janas-quakes`](quakes/README.md) | the earthquakes near a place or where you are, the strongest in the world, one in detail | none |
+| [`janas-system`](system/README.md) | this computer: how it is (memory, processor, disks, battery, temperatures), what fills a directory, the programs running, the errors, the updates, the network | none; nothing reaches the network |
+| [`janas-weather`](weather/README.md) | the weather now (a model's and a station's), the forecast, the sea and its waves, the warnings in force | none |
+| [`janas-wiki`](wiki/README.md) | Wikipedia's search, its pages as text, the pages about what lies around a place | none |
What every service does the same way:
@@ -24,7 +24,7 @@ What every service does the same way:
- **Only what was asked.** A service's tools are used for its subject when the user asks about it, and never because of another's answer: no weather or flights for the town a page names, unless the user asks for them.
- **Data and a layout.** The longest answers - the aircraft over a sea or near a place, the weather now, the forecast, the sea, the routes and journeys and places of the maps - come as data with a layout (MCP's `structuredContent`, the layout in `_meta`) besides their English text. `janas-chat` fills the layout in the user's language and shows it, and gives the model only a brief: the figures it needs to answer in a line or two. A list of forty aircraft cost the model 3,000 tokens to read and as many to write again; it now reads about a hundred. The layout in another language than English is asked of the model once, on the side of the conversation: it gets the text with the layout's tags as numbered markers and its words numbered one a line, never the tags themselves, which are put back and checked (a word it leaves out stays English; a marker left out, and the English layout is used). The terms of the scales - the Beaufort forces, the Douglas sea states - are not asked: in Italian, French, Spanish and German they come from a glossary in `janas-chat`, with the names the national weather services give them, and the request gives the model the terms of the sea for the rest of the text. It is kept in `~/.config/janas/layouts`, one file a layout and language, where it can be corrected by hand; a new version of a layout is translated anew. The language is the computer's (`LANG`).
- **What is the user's goes to the user.** A page of Wikipedia is shown as it is, and the model reads only a note of it: MCP marks each part of an answer with its audience, and `janas-chat` shows the parts meant for the user alone instead of giving them to the model. A client that does not heed the audience gives the model both.
-- **Here, when no place is named.** A question about "here" takes where the user is: `JANAS_LOCATION` when set (a city, `lat,lon`, or `off`), else the internet connection's position (GeoJS, ipwho.is), else the city of the computer's time zone; the answer says which, so the model can say it is a guess ([details](weather.md#when-no-place-is-named)).
+- **Here, when no place is named.** A question about "here" takes where the user is: `JANAS_LOCATION` when set (a city, `lat,lon`, or `off`), else the internet connection's position (GeoJS, ipwho.is), else the city of the computer's time zone; the answer says which, so the model can say it is a guess ([details](weather/README.md#when-no-place-is-named)).
## In janas-chat
diff --git a/docs/services/flights.md b/src/services/flights/README.md
similarity index 96%
rename from docs/services/flights.md
rename to src/services/flights/README.md
index 1012e8b..c976f45 100644
--- a/docs/services/flights.md
+++ b/src/services/flights/README.md
@@ -1,13 +1,13 @@
# janas-flights
-Where a flight is and what it is doing, its scheduled and actual times, the flights of a route, what flies over a sea or near a place - for `janas-chat` or any other MCP client (see [the services](README.md)). The live data needs no key and no account; the schedules need a free key of your own.
+Where a flight is and what it is doing, its scheduled and actual times, the flights of a route, what flies over a sea or near a place - for `janas-chat` or any other MCP client (see [the services](../README.md)). The live data needs no key and no account; the schedules need a free key of your own.
## The tools
- **`flight_status`** - a flight by its number (`VY1595`, `AZ1631`) or its callsign (`VLG1595`). With a key: scheduled, estimated and actual departure and arrival, in each airport's local time and in UTC, delay, terminal, gate and baggage belt. On the ground: parked, taxiing or on the runway, and at which airport. In the air: altitude, speed, climbing or descending, where it is in words ("over the Tyrrhenian Sea, between Sicily, Italy and Campania, Italy; 86 km NNE of Palermo"), its route, and an arrival time estimated from its speed, next to the airline's.
- **`flights_between`** - the flights from one airport to another, today's and the latest ones, each with its times and, if in the air, where it is now. Needs the key.
- **`flights_over`** - how many and which aircraft fly now over a sea, by its name in English or Italian ("Tyrrhenian Sea", "Tirreno", "mar Ligure"), one line each: callsign, aircraft, altitude, speed, heading, where, and its route when one on record fits its position.
-- **`flights_nearby`** - what flies now near an airport (`TRN`, `LICT`, "Birgi"), a city ("Turin") or a point, nearest first; with none of them, near where the user is (`JANAS_LOCATION`, or the internet connection's position: [as for the weather](weather.md#when-no-place-is-named)).
+- **`flights_nearby`** - what flies now near an airport (`TRN`, `LICT`, "Birgi"), a city ("Turin") or a point, nearest first; with none of them, near where the user is (`JANAS_LOCATION`, or the internet connection's position: [as for the weather](../weather/README.md#when-no-place-is-named)).
Airports are found by IATA or ICAO code, by city, or by the names people use ("Trapani-Birgi", "Birgi", "Fiumicino").
diff --git a/docs/services/git.md b/src/services/git/README.md
similarity index 89%
rename from docs/services/git.md
rename to src/services/git/README.md
index 0cbaa10..2c696c1 100644
--- a/docs/services/git.md
+++ b/src/services/git/README.md
@@ -1,6 +1,6 @@
# janas-git
-The git repositories of your computer for `janas-chat` or any other MCP client (see [the services](README.md)): what has changed, the latest commits, the branches, a diff; and, asked of you every time, a commit, a pull, a push, a switch of branch. Nothing that throws work away is offered.
+The git repositories of your computer for `janas-chat` or any other MCP client (see [the services](../README.md)): what has changed, the latest commits, the branches, a diff; and, asked of you every time, a commit, a pull, a push, a switch of branch. Nothing that throws work away is offered.
## The tools
@@ -28,7 +28,7 @@ A call that changes something shows whole, highlighted, and waits for your `y` -
## The answers
-Every answer is data with a layout (see [the services](README.md)): the list of files, the commits, the diff are shown to you in your language, and the model reads a brief. After a command that changed something, the answer is git's own words.
+Every answer is data with a layout (see [the services](../README.md)): the list of files, the commits, the diff are shown to you in your language, and the model reads a brief. After a command that changed something, the answer is git's own words.
## Running it
diff --git a/docs/services/github.md b/src/services/github/README.md
similarity index 84%
rename from docs/services/github.md
rename to src/services/github/README.md
index 22b59bb..33a283b 100644
--- a/docs/services/github.md
+++ b/src/services/github/README.md
@@ -1,6 +1,6 @@
# janas-github
-GitHub for `janas-chat` or any other MCP client (see [the services](README.md)): a project's issues and pull requests (the new ones since you last asked), its latest releases, its recent commits, what it is. It only reads: nothing on GitHub is changed.
+GitHub for `janas-chat` or any other MCP client (see [the services](../README.md)): a project's issues and pull requests (the new ones since you last asked), its latest releases, its recent commits, what it is. It only reads: nothing on GitHub is changed.
## The tools
@@ -13,7 +13,7 @@ A repository is `owner/name`, a github.com link, or a name alone ("Janas", "llam
## The answers
-Every answer is data with a layout (see [the services](README.md)): `janas-chat` shows the user the list in the user's language - titles, messages and notes as their authors wrote them - and gives the model only a brief, from which it answers in a line or two. The terms of the craft (commit, branch, pull request, release...) come from the glossary of `janas-chat`, so that the translation does not turn them into words of everyday speech.
+Every answer is data with a layout (see [the services](../README.md)): `janas-chat` shows the user the list in the user's language - titles, messages and notes as their authors wrote them - and gives the model only a brief, from which it answers in a line or two. The terms of the craft (commit, branch, pull request, release...) come from the glossary of `janas-chat`, so that the translation does not turn them into words of everyday speech.
## The token
diff --git a/docs/services/maps.md b/src/services/maps/README.md
similarity index 90%
rename from docs/services/maps.md
rename to src/services/maps/README.md
index 1a8b950..505f9e6 100644
--- a/docs/services/maps.md
+++ b/src/services/maps/README.md
@@ -1,6 +1,6 @@
# janas-maps
-Roads and places for `janas-chat` or any other MCP client (see [the services](README.md)): a route by car, bike or on foot, journeys by public transport, what is near a place, where a place or an address is. OpenStreetMap's data through free services: no key, no account.
+Roads and places for `janas-chat` or any other MCP client (see [the services](../README.md)): a route by car, bike or on foot, journeys by public transport, what is near a place, where a place or an address is. OpenStreetMap's data through free services: no key, no account.
## The tools
@@ -9,11 +9,11 @@ Roads and places for `janas-chat` or any other MCP client (see [the services](RE
- **`maps_nearby`** - the places of a kind within a radius of a place (2 km unless asked, up to 10), nearest first, at most ten, with how far and which way, their address, opening hours and phone when mapped. The kinds are a list, so that the model picks one and never writes a query: fuel, charging, parking, pharmacy, hospital, doctor, atm, bank, post_office, police, supermarket, restaurant, cafe, bar, hotel, toilets, train_station, bus_stop, museum, attraction.
- **`maps_find`** - where a place or an address is: its full address, its coordinates, what it is on the map, and a link to it; for a point, what is there.
-A place is a name or an address, best with its town ("Via Roma 10, Trapani", "Stazione Centrale, Palermo", "Colosseo"), or `lat,lon`. The second place of a route is looked for near the first, so that "Stazione Centrale" on the way from Trapani is Palermo's. With no start named, the start is where the user is, as for the weather ([details](weather.md#when-no-place-is-named)), and the answer says so.
+A place is a name or an address, best with its town ("Via Roma 10, Trapani", "Stazione Centrale, Palermo", "Colosseo"), or `lat,lon`. The second place of a route is looked for near the first, so that "Stazione Centrale" on the way from Trapani is Palermo's. With no start named, the start is where the user is, as for the weather ([details](../weather/README.md#when-no-place-is-named)), and the answer says so.
## The answers
-Every answer is data with a layout (see [the services](README.md)): `janas-chat` shows the user the whole of it in the user's language - the steps, the journeys leg by leg, the list of places - and gives the model only a brief of the figures, from which it answers in a line or two. A route of a hundred steps costs the model the same as one of ten.
+Every answer is data with a layout (see [the services](../README.md)): `janas-chat` shows the user the whole of it in the user's language - the steps, the journeys leg by leg, the list of places - and gives the model only a brief of the figures, from which it answers in a line or two. A route of a hundred steps costs the model the same as one of ten.
## Where the data comes from
diff --git a/docs/services/prices.md b/src/services/prices/README.md
similarity index 91%
rename from docs/services/prices.md
rename to src/services/prices/README.md
index 0cb718a..d3ac330 100644
--- a/docs/services/prices.md
+++ b/src/services/prices/README.md
@@ -1,6 +1,6 @@
# janas-prices
-Prices and finance for `janas-chat` or any other MCP client (see [the services](README.md)), for information only: what a currency is worth, a crypto-asset, a share, inflation, a central bank's rates, the wholesale price of electricity, the cheapest fuel near a place. Open data without a key, for as many countries as each kind of data covers; only shares need a free key of yours.
+Prices and finance for `janas-chat` or any other MCP client (see [the services](../README.md)), for information only: what a currency is worth, a crypto-asset, a share, inflation, a central bank's rates, the wholesale price of electricity, the cheapest fuel near a place. Open data without a key, for as many countries as each kind of data covers; only shares need a free key of yours.
## The tools
@@ -14,7 +14,7 @@ Prices and finance for `janas-chat` or any other MCP client (see [the services](
## The answers
-Every answer is data with a layout (see [the services](README.md)): `janas-chat` shows the user the whole of it in the user's language - every rate, month, hour or station - and gives the model only a brief, from which it answers in a line or two. Every answer says where its figures come from, their date, and that they are for information only, not advice to buy or sell.
+Every answer is data with a layout (see [the services](../README.md)): `janas-chat` shows the user the whole of it in the user's language - every rate, month, hour or station - and gives the model only a brief, from which it answers in a line or two. Every answer says where its figures come from, their date, and that they are for information only, not advice to buy or sell.
## Where the data comes from
diff --git a/docs/services/quakes.md b/src/services/quakes/README.md
similarity index 93%
rename from docs/services/quakes.md
rename to src/services/quakes/README.md
index 889190c..4da3b3c 100644
--- a/docs/services/quakes.md
+++ b/src/services/quakes/README.md
@@ -1,6 +1,6 @@
# janas-quakes
-The earthquakes for `janas-chat` or any other MCP client (see [the services](README.md)): the latest near a place or where you are, the strongest in the world, one in detail. It only reads, from open sources, without a key.
+The earthquakes for `janas-chat` or any other MCP client (see [the services](../README.md)): the latest near a place or where you are, the strongest in the world, one in detail. It only reads, from open sources, without a key.
## The tools
@@ -24,7 +24,7 @@ The earthquakes for `janas-chat` or any other MCP client (see [the services](REA
## The answers
-Every answer is data with a layout (see [the services](README.md)): `janas-chat` shows you the whole list in your language, and gives the model only a brief, from which it answers in a line or two.
+Every answer is data with a layout (see [the services](../README.md)): `janas-chat` shows you the whole list in your language, and gives the model only a brief, from which it answers in a line or two.
## Running it
diff --git a/docs/services/system.md b/src/services/system/README.md
similarity index 89%
rename from docs/services/system.md
rename to src/services/system/README.md
index 66b2a57..3b34922 100644
--- a/docs/services/system.md
+++ b/src/services/system/README.md
@@ -1,6 +1,6 @@
# janas-system
-This computer for `janas-chat` or any other MCP client (see [the services](README.md)): how it is, its disks and what fills a directory, the programs running, its errors, its updates, its network. It only reads, and none of its tools reaches the network: what it reads leaves the computer only in its answers.
+This computer for `janas-chat` or any other MCP client (see [the services](../README.md)): how it is, its disks and what fills a directory, the programs running, its errors, its updates, its network. It only reads, and none of its tools reaches the network: what it reads leaves the computer only in its answers.
## The tools
@@ -31,7 +31,7 @@ This computer for `janas-chat` or any other MCP client (see [the services](READM
## The answers
-Every answer is data with a layout (see [the services](README.md)): `janas-chat` shows you the whole of it in your language - every disk, process, error, package - and gives the model only a brief, from which it answers in a line or two; for the status, it is told to say only what is wrong (a disk nearly full, memory short, a temperature near its limit, a worn battery), or that all is well. Sizes, percentages and times are worked out by the service, so that the model does no sums.
+Every answer is data with a layout (see [the services](../README.md)): `janas-chat` shows you the whole of it in your language - every disk, process, error, package - and gives the model only a brief, from which it answers in a line or two; for the status, it is told to say only what is wrong (a disk nearly full, memory short, a temperature near its limit, a worn battery), or that all is well. Sizes, percentages and times are worked out by the service, so that the model does no sums.
## Running it
diff --git a/docs/services/weather.md b/src/services/weather/README.md
similarity index 98%
rename from docs/services/weather.md
rename to src/services/weather/README.md
index 2495922..d3d3bc7 100644
--- a/docs/services/weather.md
+++ b/src/services/weather/README.md
@@ -1,6 +1,6 @@
# janas-weather
-The weather now and in the next days, the sea and its waves, and the weather warnings in force - for `janas-chat` or any other MCP client (see [the services](README.md)). Free sources only: no key, no account.
+The weather now and in the next days, the sea and its waves, and the weather warnings in force - for `janas-chat` or any other MCP client (see [the services](../README.md)). Free sources only: no key, no account.
## The tools
diff --git a/docs/services/wiki.md b/src/services/wiki/README.md
similarity index 94%
rename from docs/services/wiki.md
rename to src/services/wiki/README.md
index 100f81a..8ca3cb1 100644
--- a/docs/services/wiki.md
+++ b/src/services/wiki/README.md
@@ -1,12 +1,12 @@
# janas-wiki
-Wikipedia for `janas-chat` or any other MCP client (see [the services](README.md)), when the user asks for it: its search, a page shown as it is, and the pages about what lies around a place. Wikipedia's own API: no key, no account.
+Wikipedia for `janas-chat` or any other MCP client (see [the services](../README.md)), when the user asks for it: its search, a page shown as it is, and the pages about what lies around a place. Wikipedia's own API: no key, no account.
## The tools
- **`wiki_search`** - the pages that match some words, best first: their titles, each with what it is about in a line (Wikidata's description).
- **`wiki_page`** - shows the user a page as it is: a short page whole, a long one its introduction and the names of its sections, or the section asked for, by its name or the start of it (a section longer than 10,000 characters is cut at a paragraph, and the answer names its parts). A title that leads to another page is followed and said; a disambiguation page comes as the list of the pages it leads to. The model gets a note of it, not its text: the page's address, how many words were shown, its sections.
-- **`wiki_nearby`** - the pages about what lies around a place, nearest first, with how far and which way ("Palazzo D'Alì: 170 m NW"), within up to 10 km. The place is a page's title (its point is the page's), `lat,lon`, or none: then where the user is, as for the weather ([details](weather.md#when-no-place-is-named)).
+- **`wiki_nearby`** - the pages about what lies around a place, nearest first, with how far and which way ("Palazzo D'Alì: 170 m NW"), within up to 10 km. The place is a page's title (its point is the page's), `lat,lon`, or none: then where the user is, as for the weather ([details](../weather/README.md#when-no-place-is-named)).
Every tool takes `language`, the Wikipedia to ask: the model gives the user's (`it`, `en`, `fr`...), and the English one when the first has nothing; when it gives none, the computer's language is taken (`LANG=it_IT.UTF-8`: `it`), else English.