khors 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
khors-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Stanislav Zholobetskyi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
khors-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,201 @@
1
+ Metadata-Version: 2.4
2
+ Name: khors
3
+ Version: 0.1.0
4
+ Summary: A markdown document editor drawer for a Flask host (vyrii, alkonost): Save as md / odt / odp in a theme. Standard library + Flask.
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/szholobetsky/khors
7
+ Project-URL: Repository, https://github.com/szholobetsky/khors
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: flask>=3.0
12
+ Provides-Extra: dev
13
+ Requires-Dist: pytest>=7.0; extra == "dev"
14
+ Dynamic: license-file
15
+
16
+ ![khors](https://raw.githubusercontent.com/szholobetsky/simrgl/main/images/logo/khors.png)
17
+
18
+ # khors (Хорс)
19
+
20
+ A markdown document editor drawer for a Flask host (vyrii, alkonost): write md beside the host's page, see it as
21
+ it will print, **Save as md / ODT / ODP** in a theme. Standard library + Flask; LibreOffice is not needed to make
22
+ the files (only to open them).
23
+
24
+ khors is part of the SIMARGL pantheon: it lives inside vyrii and alkonost, beside their chat and their plans,
25
+ and writes only the documents a person saves.
26
+
27
+ Not a server: no port, no password, no network guard of its own — the host mounts the Blueprint and keeps its
28
+ own (`concepts/DOCUMENT_EDITOR.md` in the simrgl repo).
29
+
30
+ ## In a host
31
+
32
+ ```python
33
+ from khors.web import blueprint
34
+ app.register_blueprint(blueprint(root=Path.home() / ".vyrii", writable=lambda p: True))
35
+ ```
36
+
37
+ ```html
38
+ <link rel="stylesheet" href="/khors/static/khors.css">
39
+ <script src="/khors/static/khors.js"></script>
40
+ <script> Khors.open({ path: "docs/my.md", base: "/khors" }) </script>
41
+ ```
42
+
43
+ KaTeX and mermaid come from the host page (vyrii and alkonost load both). `/khors/?path=docs/my.md` is the editor
44
+ alone (full window), for a link.
45
+
46
+ vyrii: Files → a `.md` → **✎ Edit**; Files → **✎ New document**. Documents live in `~/.vyrii`, written under the
47
+ same rule as Files (never vyrii's own state).
48
+
49
+ ## Ask the model (✍︎, Ctrl+K)
50
+
51
+ Select text → the model rewrites it; no selection → the model writes at the cursor. A request in your own words
52
+ ("describe structuralism — first why it appeared, at the end its main critique"), a model, **▶ Generate** (or Ctrl+Enter). The answer
53
+ comes as a **proposal**: streamed as it is written, shown as a word diff "was → becomes", editable; **Accept**
54
+ puts it in (Ctrl+Z undoes), **Again**, **Drop**. While a proposal is open the document is read-only, so the
55
+ place cannot move.
56
+
57
+ The model never sees the whole document (`khors/assist.py`): the plan (its headings, the current one marked),
58
+ ~450 characters before and after the place, the selection, the request — and, when the host gives it, the last
59
+ 3 chat messages (never written back into the chat). ≈ 2k characters: fits a 4k context. Python joins the piece
60
+ (blank lines around a block, a space inside a line); numbers stay the export's.
61
+
62
+ The host's models: `blueprint(..., chat=fn(messages, model) -> text pieces, models=fn, default_model=fn)`
63
+ (vyrii passes its own: the chat's models, backends and host queue). Without them: Ollama on this machine
64
+ (`KHORS_OLLAMA` / `OLLAMA_HOST`), the previous model unloaded when the model changes.
65
+
66
+ **Host** beside the model: empty — the host app's models (its address shown greyed); an Ollama address typed
67
+ there (`127.0.0.1:11434`, `http://name:11434`; no path, no other scheme) — that machine's models and calls through
68
+ khors's own client, remembered in the browser; **⟳** / Enter reads the models again (as simargl's "Look again").
69
+
70
+ **Thinking**: ticked, the model is asked to think first. Whatever thinking comes (ticked, or a model that always
71
+ thinks) is written greyed into the proposal while the model thinks and replaced by the answer's first words —
72
+ nothing of it goes into the document (`<think>` split off by `assist.ThinkSplit`, sent as `{"think"}` events).
73
+
74
+ **Context / Answer max** (`num_ctx` / `num_predict`): said, not inherited unseen — empty = 4096 (8192 with Thinking)
75
+ and no limit of ours; the line under the request shows what went: `→ model @ host · num_ctx · num_predict ·
76
+ thinking`. When the model only thought (or Ollama says the answer was cut), the drawer says which to raise.
77
+ A host's `chat` gets `think`, `num_ctx`, `num_predict` when its signature takes them.
78
+
79
+ ## The two panes
80
+
81
+ A splitter between the text and the preview (drag; double click = halves; remembered); **[ ]** on a pane puts
82
+ that pane alone over the whole drawer, pressed again both panes come back; ⇆ side by side / one above the other.
83
+
84
+ ## Element buttons
85
+
86
+ Under the bar: **H** (a line: `#` → `##` → `###` → text), **B**, *I*, `code`, link; list, numbered list (`1.` on
87
+ every line — the export counts), quote (on the lines the selection touches; a second press takes it off);
88
+ table, formula (`$…$` around a selection inside a line, else a `$$` block), diagram (mermaid), code block, rule
89
+ (on their own lines at the cursor, the placeholder selected). Everything goes through the browser's undo.
90
+
91
+ ## Beside a chat, inside a host's panel
92
+
93
+ `Khors.open({..., push: true})` — the page makes room (a split screen, half the window at first);
94
+ `context: () => [{role, content}, …]` — the chat's messages, the drawer's "with the chat" sends the last 3;
95
+ `model: () => id` — the host's current model. `Khors.insert(text)` puts a text (a chat answer) at the cursor
96
+ as a block. `save: async text => …` + `title` + `name` — the host keeps the file (no path field; an export
97
+ downloads `<name>.odt`).
98
+
99
+ vyrii: a chat holds any number of documents (`history.db` `chat_docs`: a link to a `.md` under `~/.vyrii`, never
100
+ its text in the chat). Chat → **✎ Document** — none yet: a new one in `~/.vyrii/documents/`; else the list of the
101
+ chat's documents, **+ New document**, × takes one off the chat (the file stays). A document is linked when first
102
+ saved; Files → a `.md` → **📎 To chat** links any. **→📄** under a message puts it into the open document (else
103
+ the chat's last one).
104
+
105
+ alkonost: the side panel's **☀** (beside the plain editor's ✎, which stays — alkonost is mostly for reading)
106
+ opens the plan item / spec in the drawer and saves through alkonost's own routes; models from the Ollama host of
107
+ its Settings (`~/.1bcoder/config.yml`) or the Host typed in the drawer. Without khors there is no ☀.
108
+
109
+ ## Markdown
110
+
111
+ Headings, paragraphs, lists (`-`, `1.`, nested), quotes, pipe tables, code, `$…$` / `$$…$$` formulas (KaTeX),
112
+ ```` ```mermaid ```` diagrams, `**bold**`, `*italic*`, `~~struck~~`, links.
113
+
114
+ **Numbers belong to the export, not the text**: ordered lists are numbered by the office program; with
115
+ *Number headings* the headings are too (a number typed in a heading is dropped). Insert a section anywhere —
116
+ nothing to renumber. A first heading used once at its level is the title.
117
+
118
+ One parser (`khors/mdparse.py`) makes the preview, the .odt and the .odp: the drawer shows what the file gets.
119
+
120
+ - **Formulas**: the page renders each with KaTeX to MathML — embedded in the .odt / .odp as LibreOffice's own
121
+ formula objects (editable there), in the theme's text colour.
122
+ - **Diagrams**: the page renders each with mermaid to SVG, its CSS moved into attributes (LibreOffice reads no
123
+ `<style>`), labels as SVG text.
124
+ - From the console (`khors export`) formulas and diagrams stay as text.
125
+
126
+ ## Themes
127
+
128
+ Built in: `strict`, `paper` and the 8 colour schemes of vyrii / alkonost. **Your own**: copy a file from
129
+ `khors/themes/` into `~/.khors/themes/` (`$KHORS_HOME/themes`), give it a new name, change the colours — it is in
130
+ the list at once (★). A file of your own with a built-in's name replaces it; a file that does not read is listed
131
+ under ⓘ with the reason.
132
+
133
+ ```json
134
+ {"about": "what it is for", "bg": "#FFFFFF", "surface": "#F4F1EA", "text": "#1A1A1A", "muted": "#555555",
135
+ "accent": "#1F3A5F", "on_accent": "#FFFFFF", "border": "#1F3A5F", "font": "Liberation Serif"}
136
+ ```
137
+
138
+ Only `bg`, `text`, `accent` are required.
139
+
140
+ ## Console
141
+
142
+ ```
143
+ khors export doc.md --odt --odp --theme paper --numbered
144
+ khors themes
145
+ ```
146
+
147
+ ## Tests
148
+
149
+ `python -m pytest tests` (parser, ODF parts well formed, themes folder, paths, the Blueprint).
150
+
151
+ ---
152
+
153
+ ## Part of the SIMARGL toolkit
154
+
155
+ khors is one of thirteen tools that together form an **intellectual development support system**:
156
+
157
+ | Tool | Role |
158
+ |---|---|
159
+ | **[simargl](https://github.com/szholobetsky/simargl)** | Task-to-code retrieval — given a task description, finds which files and modules are likely affected, using semantic similarity over git history |
160
+ | **[svitovyd](https://github.com/szholobetsky/svitovyd)** | Project map — scans any codebase and produces a structural map of definitions and cross-file dependencies; queried from the CLI, a web UI with a layered map, or an MCP server |
161
+ | **[1bcoder](https://github.com/szholobetsky/1bcoder)** | AI coding assistant for small local models — surgical context management, agents, parallel inference, proc scripts |
162
+ | **[yasna](https://github.com/szholobetsky/yasna)** | Session memory — indexes conversations from all AI agents so you can find what was discussed, when, and where |
163
+ | **[radogast](https://github.com/szholobetsky/radogast)** | Context drift monitor — measures how far an AI agent's conversation has drifted from the original task |
164
+ | **[vyrii](https://github.com/szholobetsky/vyrii)** | Local AI web UI — chat, translate, web research, RAG and file management in the browser (Flask); powered by Ollama or any OpenAI-compatible backend |
165
+ | **[syryn](https://github.com/szholobetsky/syryn)** | Bluetooth identity beacon for headless devices — the device's IP is its Bluetooth name; hostname, mDNS and network interfaces on request |
166
+ | **[alkonost](https://github.com/szholobetsky/alkonost)** | Browser cockpit for 1bcoder's flows — the `deepagent_*` spec pipeline (plan tree → specs → task board) and the glossary (build, browse, search), tuned for small local models |
167
+ | **[gamayun](https://github.com/szholobetsky/gamayun)** | Statistical ontology without an LLM — builds triples of terms, identifiers, files and modules from task history or a folder of documents and code; every triple carries its significance test |
168
+ | **[mokosh](https://github.com/szholobetsky/mokosh)** | Dataset gathering — commits of a git repository and the tasks of its tracker (Jira, GitHub, GitLab, YouTrack) in one SQLite database that the other tools read |
169
+ | **[magura](https://github.com/szholobetsky/magura)** | The image of a term across the code, without a build — glossary term → code names → files; triangulation of simargl, gamayun, svitovyd, the glossary and boyan with each source's singles; a field traced through the layers |
170
+ | **[boyan](https://github.com/szholobetsky/boyan)** | The project's own vocabulary — the names a project uses for its parts, learned from its files and task history without an LLM, and a translator (word2vec on the project) from anyone's words to those names and their files; magura's fifth, independent source |
171
+ | **[khors](https://github.com/szholobetsky/khors)** | Markdown document editor inside vyrii and alkonost — write beside the chat, a small local model rewrites the selection or writes at the cursor (shown as a diff to accept), Save as md / ODT / ODP in a theme with formulas and diagrams as LibreOffice objects |
172
+
173
+ - **simargl** finds the code related to a task by vector search over the task history (embeddings).
174
+ - **svitovyd** answers: *how is the code structured and what depends on what?*
175
+ - **1bcoder** answers: *how do I work with local models efficiently?*
176
+ - **yasna** answers: *where did I already discuss this?*
177
+ - **radogast** answers: *is the AI agent still on track toward the goal?*
178
+ - **vyrii** answers: *how do I access all of this through a browser?*
179
+ - **syryn** answers: *what is the address of this headless device?*
180
+ - **alkonost** answers: *how do I turn one task description into a reviewed, working plan — and see the project's glossary — without a big model or a big context window?*
181
+ - **gamayun** finds the code related to a task through an ontology of significant links between words, files and modules (no LLM).
182
+ - **mokosh** prepares the initial dataset from version control and the issue tracker.
183
+ - **magura** answers: *where does this business term live in the code, and which files do all the tools point to?*
184
+ - **boyan** answers: *what does this project call the thing I am describing, and where does it live?*
185
+ - **khors** answers: *how do I turn a chat, a plan or my notes into a document I can hand over — a text or slides — with a small model's help?*
186
+
187
+ Together they cover the full development loop: gather the history, understand the codebase, find relevant history, work with AI locally, remember what was decided, and verify the context stays on target.
188
+
189
+ The name comes from Slavic mythology. Khors (Хорс) is the god of the sun's disk, one of the gods whose idols Prince Volodymyr set on the hill of Kyiv. A fitting name for a tool that brings a text into the light: what you write is seen as it will be printed — and in alkonost it opens with the ☀ button.
190
+
191
+ ---
192
+
193
+ ## License
194
+
195
+ MIT. See [LICENSE](LICENSE).
196
+
197
+ ## About
198
+
199
+ (c) 2026 Stanislav Zholobetskyi, Oleh Andriichuk
200
+ Institute for Information Recording, National Academy of Sciences of Ukraine, Kyiv
201
+ PhD research: «Intelligent Technology for Software Development and Maintenance Support»
khors-0.1.0/README.md ADDED
@@ -0,0 +1,186 @@
1
+ ![khors](https://raw.githubusercontent.com/szholobetsky/simrgl/main/images/logo/khors.png)
2
+
3
+ # khors (Хорс)
4
+
5
+ A markdown document editor drawer for a Flask host (vyrii, alkonost): write md beside the host's page, see it as
6
+ it will print, **Save as md / ODT / ODP** in a theme. Standard library + Flask; LibreOffice is not needed to make
7
+ the files (only to open them).
8
+
9
+ khors is part of the SIMARGL pantheon: it lives inside vyrii and alkonost, beside their chat and their plans,
10
+ and writes only the documents a person saves.
11
+
12
+ Not a server: no port, no password, no network guard of its own — the host mounts the Blueprint and keeps its
13
+ own (`concepts/DOCUMENT_EDITOR.md` in the simrgl repo).
14
+
15
+ ## In a host
16
+
17
+ ```python
18
+ from khors.web import blueprint
19
+ app.register_blueprint(blueprint(root=Path.home() / ".vyrii", writable=lambda p: True))
20
+ ```
21
+
22
+ ```html
23
+ <link rel="stylesheet" href="/khors/static/khors.css">
24
+ <script src="/khors/static/khors.js"></script>
25
+ <script> Khors.open({ path: "docs/my.md", base: "/khors" }) </script>
26
+ ```
27
+
28
+ KaTeX and mermaid come from the host page (vyrii and alkonost load both). `/khors/?path=docs/my.md` is the editor
29
+ alone (full window), for a link.
30
+
31
+ vyrii: Files → a `.md` → **✎ Edit**; Files → **✎ New document**. Documents live in `~/.vyrii`, written under the
32
+ same rule as Files (never vyrii's own state).
33
+
34
+ ## Ask the model (✍︎, Ctrl+K)
35
+
36
+ Select text → the model rewrites it; no selection → the model writes at the cursor. A request in your own words
37
+ ("describe structuralism — first why it appeared, at the end its main critique"), a model, **▶ Generate** (or Ctrl+Enter). The answer
38
+ comes as a **proposal**: streamed as it is written, shown as a word diff "was → becomes", editable; **Accept**
39
+ puts it in (Ctrl+Z undoes), **Again**, **Drop**. While a proposal is open the document is read-only, so the
40
+ place cannot move.
41
+
42
+ The model never sees the whole document (`khors/assist.py`): the plan (its headings, the current one marked),
43
+ ~450 characters before and after the place, the selection, the request — and, when the host gives it, the last
44
+ 3 chat messages (never written back into the chat). ≈ 2k characters: fits a 4k context. Python joins the piece
45
+ (blank lines around a block, a space inside a line); numbers stay the export's.
46
+
47
+ The host's models: `blueprint(..., chat=fn(messages, model) -> text pieces, models=fn, default_model=fn)`
48
+ (vyrii passes its own: the chat's models, backends and host queue). Without them: Ollama on this machine
49
+ (`KHORS_OLLAMA` / `OLLAMA_HOST`), the previous model unloaded when the model changes.
50
+
51
+ **Host** beside the model: empty — the host app's models (its address shown greyed); an Ollama address typed
52
+ there (`127.0.0.1:11434`, `http://name:11434`; no path, no other scheme) — that machine's models and calls through
53
+ khors's own client, remembered in the browser; **⟳** / Enter reads the models again (as simargl's "Look again").
54
+
55
+ **Thinking**: ticked, the model is asked to think first. Whatever thinking comes (ticked, or a model that always
56
+ thinks) is written greyed into the proposal while the model thinks and replaced by the answer's first words —
57
+ nothing of it goes into the document (`<think>` split off by `assist.ThinkSplit`, sent as `{"think"}` events).
58
+
59
+ **Context / Answer max** (`num_ctx` / `num_predict`): said, not inherited unseen — empty = 4096 (8192 with Thinking)
60
+ and no limit of ours; the line under the request shows what went: `→ model @ host · num_ctx · num_predict ·
61
+ thinking`. When the model only thought (or Ollama says the answer was cut), the drawer says which to raise.
62
+ A host's `chat` gets `think`, `num_ctx`, `num_predict` when its signature takes them.
63
+
64
+ ## The two panes
65
+
66
+ A splitter between the text and the preview (drag; double click = halves; remembered); **[ ]** on a pane puts
67
+ that pane alone over the whole drawer, pressed again both panes come back; ⇆ side by side / one above the other.
68
+
69
+ ## Element buttons
70
+
71
+ Under the bar: **H** (a line: `#` → `##` → `###` → text), **B**, *I*, `code`, link; list, numbered list (`1.` on
72
+ every line — the export counts), quote (on the lines the selection touches; a second press takes it off);
73
+ table, formula (`$…$` around a selection inside a line, else a `$$` block), diagram (mermaid), code block, rule
74
+ (on their own lines at the cursor, the placeholder selected). Everything goes through the browser's undo.
75
+
76
+ ## Beside a chat, inside a host's panel
77
+
78
+ `Khors.open({..., push: true})` — the page makes room (a split screen, half the window at first);
79
+ `context: () => [{role, content}, …]` — the chat's messages, the drawer's "with the chat" sends the last 3;
80
+ `model: () => id` — the host's current model. `Khors.insert(text)` puts a text (a chat answer) at the cursor
81
+ as a block. `save: async text => …` + `title` + `name` — the host keeps the file (no path field; an export
82
+ downloads `<name>.odt`).
83
+
84
+ vyrii: a chat holds any number of documents (`history.db` `chat_docs`: a link to a `.md` under `~/.vyrii`, never
85
+ its text in the chat). Chat → **✎ Document** — none yet: a new one in `~/.vyrii/documents/`; else the list of the
86
+ chat's documents, **+ New document**, × takes one off the chat (the file stays). A document is linked when first
87
+ saved; Files → a `.md` → **📎 To chat** links any. **→📄** under a message puts it into the open document (else
88
+ the chat's last one).
89
+
90
+ alkonost: the side panel's **☀** (beside the plain editor's ✎, which stays — alkonost is mostly for reading)
91
+ opens the plan item / spec in the drawer and saves through alkonost's own routes; models from the Ollama host of
92
+ its Settings (`~/.1bcoder/config.yml`) or the Host typed in the drawer. Without khors there is no ☀.
93
+
94
+ ## Markdown
95
+
96
+ Headings, paragraphs, lists (`-`, `1.`, nested), quotes, pipe tables, code, `$…$` / `$$…$$` formulas (KaTeX),
97
+ ```` ```mermaid ```` diagrams, `**bold**`, `*italic*`, `~~struck~~`, links.
98
+
99
+ **Numbers belong to the export, not the text**: ordered lists are numbered by the office program; with
100
+ *Number headings* the headings are too (a number typed in a heading is dropped). Insert a section anywhere —
101
+ nothing to renumber. A first heading used once at its level is the title.
102
+
103
+ One parser (`khors/mdparse.py`) makes the preview, the .odt and the .odp: the drawer shows what the file gets.
104
+
105
+ - **Formulas**: the page renders each with KaTeX to MathML — embedded in the .odt / .odp as LibreOffice's own
106
+ formula objects (editable there), in the theme's text colour.
107
+ - **Diagrams**: the page renders each with mermaid to SVG, its CSS moved into attributes (LibreOffice reads no
108
+ `<style>`), labels as SVG text.
109
+ - From the console (`khors export`) formulas and diagrams stay as text.
110
+
111
+ ## Themes
112
+
113
+ Built in: `strict`, `paper` and the 8 colour schemes of vyrii / alkonost. **Your own**: copy a file from
114
+ `khors/themes/` into `~/.khors/themes/` (`$KHORS_HOME/themes`), give it a new name, change the colours — it is in
115
+ the list at once (★). A file of your own with a built-in's name replaces it; a file that does not read is listed
116
+ under ⓘ with the reason.
117
+
118
+ ```json
119
+ {"about": "what it is for", "bg": "#FFFFFF", "surface": "#F4F1EA", "text": "#1A1A1A", "muted": "#555555",
120
+ "accent": "#1F3A5F", "on_accent": "#FFFFFF", "border": "#1F3A5F", "font": "Liberation Serif"}
121
+ ```
122
+
123
+ Only `bg`, `text`, `accent` are required.
124
+
125
+ ## Console
126
+
127
+ ```
128
+ khors export doc.md --odt --odp --theme paper --numbered
129
+ khors themes
130
+ ```
131
+
132
+ ## Tests
133
+
134
+ `python -m pytest tests` (parser, ODF parts well formed, themes folder, paths, the Blueprint).
135
+
136
+ ---
137
+
138
+ ## Part of the SIMARGL toolkit
139
+
140
+ khors is one of thirteen tools that together form an **intellectual development support system**:
141
+
142
+ | Tool | Role |
143
+ |---|---|
144
+ | **[simargl](https://github.com/szholobetsky/simargl)** | Task-to-code retrieval — given a task description, finds which files and modules are likely affected, using semantic similarity over git history |
145
+ | **[svitovyd](https://github.com/szholobetsky/svitovyd)** | Project map — scans any codebase and produces a structural map of definitions and cross-file dependencies; queried from the CLI, a web UI with a layered map, or an MCP server |
146
+ | **[1bcoder](https://github.com/szholobetsky/1bcoder)** | AI coding assistant for small local models — surgical context management, agents, parallel inference, proc scripts |
147
+ | **[yasna](https://github.com/szholobetsky/yasna)** | Session memory — indexes conversations from all AI agents so you can find what was discussed, when, and where |
148
+ | **[radogast](https://github.com/szholobetsky/radogast)** | Context drift monitor — measures how far an AI agent's conversation has drifted from the original task |
149
+ | **[vyrii](https://github.com/szholobetsky/vyrii)** | Local AI web UI — chat, translate, web research, RAG and file management in the browser (Flask); powered by Ollama or any OpenAI-compatible backend |
150
+ | **[syryn](https://github.com/szholobetsky/syryn)** | Bluetooth identity beacon for headless devices — the device's IP is its Bluetooth name; hostname, mDNS and network interfaces on request |
151
+ | **[alkonost](https://github.com/szholobetsky/alkonost)** | Browser cockpit for 1bcoder's flows — the `deepagent_*` spec pipeline (plan tree → specs → task board) and the glossary (build, browse, search), tuned for small local models |
152
+ | **[gamayun](https://github.com/szholobetsky/gamayun)** | Statistical ontology without an LLM — builds triples of terms, identifiers, files and modules from task history or a folder of documents and code; every triple carries its significance test |
153
+ | **[mokosh](https://github.com/szholobetsky/mokosh)** | Dataset gathering — commits of a git repository and the tasks of its tracker (Jira, GitHub, GitLab, YouTrack) in one SQLite database that the other tools read |
154
+ | **[magura](https://github.com/szholobetsky/magura)** | The image of a term across the code, without a build — glossary term → code names → files; triangulation of simargl, gamayun, svitovyd, the glossary and boyan with each source's singles; a field traced through the layers |
155
+ | **[boyan](https://github.com/szholobetsky/boyan)** | The project's own vocabulary — the names a project uses for its parts, learned from its files and task history without an LLM, and a translator (word2vec on the project) from anyone's words to those names and their files; magura's fifth, independent source |
156
+ | **[khors](https://github.com/szholobetsky/khors)** | Markdown document editor inside vyrii and alkonost — write beside the chat, a small local model rewrites the selection or writes at the cursor (shown as a diff to accept), Save as md / ODT / ODP in a theme with formulas and diagrams as LibreOffice objects |
157
+
158
+ - **simargl** finds the code related to a task by vector search over the task history (embeddings).
159
+ - **svitovyd** answers: *how is the code structured and what depends on what?*
160
+ - **1bcoder** answers: *how do I work with local models efficiently?*
161
+ - **yasna** answers: *where did I already discuss this?*
162
+ - **radogast** answers: *is the AI agent still on track toward the goal?*
163
+ - **vyrii** answers: *how do I access all of this through a browser?*
164
+ - **syryn** answers: *what is the address of this headless device?*
165
+ - **alkonost** answers: *how do I turn one task description into a reviewed, working plan — and see the project's glossary — without a big model or a big context window?*
166
+ - **gamayun** finds the code related to a task through an ontology of significant links between words, files and modules (no LLM).
167
+ - **mokosh** prepares the initial dataset from version control and the issue tracker.
168
+ - **magura** answers: *where does this business term live in the code, and which files do all the tools point to?*
169
+ - **boyan** answers: *what does this project call the thing I am describing, and where does it live?*
170
+ - **khors** answers: *how do I turn a chat, a plan or my notes into a document I can hand over — a text or slides — with a small model's help?*
171
+
172
+ Together they cover the full development loop: gather the history, understand the codebase, find relevant history, work with AI locally, remember what was decided, and verify the context stays on target.
173
+
174
+ The name comes from Slavic mythology. Khors (Хорс) is the god of the sun's disk, one of the gods whose idols Prince Volodymyr set on the hill of Kyiv. A fitting name for a tool that brings a text into the light: what you write is seen as it will be printed — and in alkonost it opens with the ☀ button.
175
+
176
+ ---
177
+
178
+ ## License
179
+
180
+ MIT. See [LICENSE](LICENSE).
181
+
182
+ ## About
183
+
184
+ (c) 2026 Stanislav Zholobetskyi, Oleh Andriichuk
185
+ Institute for Information Recording, National Academy of Sciences of Ukraine, Kyiv
186
+ PhD research: «Intelligent Technology for Software Development and Maintenance Support»
@@ -0,0 +1,3 @@
1
+ """khors (Хорс) — one markdown document edited in a drawer beside a host's page, saved as md / odt / odp in a
2
+ theme. A framework, not a server: the host mounts `khors.web.blueprint(root)` (concepts/DOCUMENT_EDITOR.md)."""
3
+ __version__ = "0.1.0"
@@ -0,0 +1,44 @@
1
+ """khors export doc.md [--odt] [--odp] [--theme NAME] [--numbered] -> doc.odt / doc.odp beside it
2
+ khors themes -> the themes, your folder, the files not read
3
+
4
+ From the console formulas and diagrams stay as text (they are drawn by the page: KaTeX, mermaid)."""
5
+ import argparse
6
+ import os
7
+ import sys
8
+
9
+ from . import odp, odt, themes
10
+
11
+
12
+ def main(argv=None):
13
+ ap = argparse.ArgumentParser(prog="khors")
14
+ sub = ap.add_subparsers(dest="cmd", required=True)
15
+ e = sub.add_parser("export", help="markdown -> .odt / .odp beside it")
16
+ e.add_argument("md")
17
+ e.add_argument("--odt", action="store_true")
18
+ e.add_argument("--odp", action="store_true")
19
+ e.add_argument("--theme", default="strict")
20
+ e.add_argument("--numbered", action="store_true", help="number the headings")
21
+ sub.add_parser("themes", help="list the themes")
22
+ a = ap.parse_args(argv)
23
+ if a.cmd == "themes":
24
+ data = themes.listing()
25
+ for th in data["themes"]:
26
+ print(f"{th['name']:12} {'own ' if th['own'] else ' '}{themes.about_text(th['about'])}")
27
+ print(f"\nyour own themes: {data['folder']}")
28
+ for p in data["problems"]:
29
+ print(f"not read: {p['file']}: {p['error']}")
30
+ return 0
31
+ if a.theme not in themes.names():
32
+ print(f"no theme {a.theme!r}; see: khors themes", file=sys.stderr)
33
+ return 2
34
+ text = open(a.md, encoding="utf-8-sig").read()
35
+ base = os.path.splitext(a.md)[0]
36
+ for fmt in [f for f in ("odt", "odp") if getattr(a, f)] or ["odt"]:
37
+ make = odt.write_odt if fmt == "odt" else odp.write_odp
38
+ make(text, f"{base}.{fmt}", theme=a.theme, numbered=a.numbered)
39
+ print(f"{base}.{fmt}")
40
+ return 0
41
+
42
+
43
+ if __name__ == "__main__":
44
+ sys.exit(main())