mimir
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Agent skill that reads a GeneXus Knowledge Base from its XPZ exports and indexes it. It never generates, builds, or imports objects.
See also: Español
Mimir Lite is an agent skill that reads and understands a GeneXus Knowledge Base (KB) from its XPZ/XML exports: it syncs an XPZ export into an XML corpus and a derived index, helps an agent find objects and their dependencies through that index, reads and classifies individual object XML, and generates Markdown documentation. It never generates, builds, or imports GeneXus objects.
Status
Current release: 1.2.0; the first public release was 0.1.0 (see CHANGELOG.md). Licensed under the MIT License; the authors are listed in AUTHORS.md.
Support
Runs on Windows 10/11 and Linux, both tested in CI, with PowerShell 7.4+ (7.4.6+ on Linux and macOS) and Python 3.8+; macOS is best effort.
| Platform or tool | Status | Skills folder | Notes |
|---|---|---|---|
| Windows 10/11 | Tested | — | CI runs on windows-latest; scripts run from any shell through pwsh -NoProfile -File |
| Linux | Tested (CI) | — | CI runs on ubuntu-latest; needs PowerShell 7.4.6+; see Known platform differences |
| macOS | Best effort | — | Same code paths as Linux, not run in CI; needs PowerShell 7.4.6+ |
| Claude Code (CLI, VS Code extension, desktop) | Tested | ~/.claude/skills |
One folder shared by the three variants; the setup workflow can write folder-prefix allow rules |
| Codex (CLI, IDE extension, app) | Tested | ~/.agents/skills or ~/.codex/skills |
|
| Cursor | Audited | ~/.cursor/skills |
Cursor also reads ~/.agents/skills, but the audit passes only with a link in ~/.cursor/skills |
| OpenCode | Audited | ~/.config/opencode/skills or ~/.agents/skills |
|
| Antigravity (IDE, CLI) | Audited | ~/.gemini/config/skills (IDE), ~/.agents/skills (CLI) |
|
| Pi | Tested | ~/.agents/skills or <agent-home>/skills |
Named Pi audit; model-driven Windows runs with project-local links; see below |
| gentle-shell | Tested | ~/.agents/skills or <agent-home>/skills |
Named GentleShell audit; model-driven Windows runs with a temporary custom profile; see below |
| GitHub Copilot, Gemini CLI | Expected to work, untested | ~/.agents/skills |
Audit with -AdditionalSkillsRoot .agents/skills |
mimir-delegate backends |
Tested on Windows; Linux in CI with fake CLIs | — | Drives the CLIs listed in Delegation; the maintainer runs the real CLIs on Windows; see Known platform differences |
The skills folders above are the general (user-level) ones. A project install links into <project>/.claude/skills (Claude Code) and <project>/.agents/skills (every other tool) instead; see step 3 of Use it with an AI agent.
Tested means the maintainer runs the skill with that tool on Windows. For a platform, Tested (CI) means CI runs the full test suite and checks there; Best effort means the same code paths, with nothing run there. Audited means the install workflow (install.md) checks the tool's registration, but it is not reported as tested. A copy of the skill folder is not supported: it goes stale after git pull, and the audit cannot tell a stale copy from a current one; use a symbolic link or a junction.
Codex
Observed on Windows with Codex CLI: two interactive public-sample runs completed project-local skill discovery, XPZ-only setup/sync, freshness gates, indexed queries, and selected XML reading. Kafka materialized 8 objects and indexed 25 relations; MyCinema materialized 90 objects plus 37 attributes and indexed 235 relations. The dated evidence record distinguishes session-reported results from observer checks and records environment issues and coverage limits.
These runs do not independently validate every Codex integration or platform. Kafka used system temporary extraction; MyCinema used workspace/Temp after setting TEMP, TMP, and TMPDIR. Neither run executed GeneXus business objects or established exhaustive extractor coverage. A passing registration audit is not proof of runtime discovery or successful workflows.
Pi and gentle-shell
The shared ~/.agents/skills folder is available to both tools, including an isolated gentle-shell profile. To expose Mimir Lite only to one profile, link it into that profile's <agent-home>/skills instead; do not create both links unnecessarily. A project install uses .agents/skills (Pi also accepts .pi/skills) and requires project trust before discovery.
| Session | Default agent home |
|---|---|
| Pi | PI_CODING_AGENT_DIR, or ~/.pi/agent when unset |
| gentle-shell | ~/.gentle-shell/agent (isolated; GENTLE_SHELL_HOME can change it) |
gentle-shell --link |
The user's Pi agent home |
gentle-shell --home <path> |
The selected custom directory |
The launcher can save a different default. In a running gentle-shell session, PI_CODING_AGENT_DIR identifies its active home. The auditor distinguishes this from the original Pi home using GENTLE_SHELL_USER_PI_HOME; see installation details for resolution precedence.
For both tools, after the approved links exist, run:
pwsh -NoProfile -File "<mimir-lite-root>/skills/mimir-lite/scripts/Test-MimirSkillsRegistration.ps1" -OnlyTool Pi,GentleShell -AsJson
Use only the tools requested. Add -Scope Project -ProjectRoot "<project>" for project registration. -PiAgentHome "<path>" and -GentleShellAgentHome "<path>" explicitly select audit targets without changing launcher settings. Add -SkipSkill mimir-delegate only if the user declined that optional skill.
A registration result does not prove active loading or isolation. After granting project trust when applicable, run /reload and /skill:mimir-lite in the target session. Bare Pi has no Claude-style per-command permission system; extensions may add their own controls. For KB work, external memory still needs separate consent; skill instructions do not control automatic host persistence.
Tested on Windows: model-driven runs in both tools completed XPZ-only setup, sync, freshness gates, indexed dependency/attribute queries, and selected XML reads on two public GeneXus samples. Matching inputs produced identical XML corpora across hosts. These runs used temporary profiles and project-local links; mimir-delegate was excluded. Separate offline checks covered resource discovery with Pi 1.3.0 and gentle-pi 4.3.0, including denied project trust and reload, plus the synthetic setup/sync/gate/query/read flow.
Host search/delegation failures were recorded separately from Mimir results. The gentle-shell run required a trial-local subagent model selection after the provider rejected its default model. When using native subagents, check their effective provider/model separately from the parent session; this is not a Mimir registration setting. These trials did not execute GeneXus business objects, establish live support on other platforms, or prove exhaustive extractor coverage.
GeneXus versions
| GeneXus version | Status | Evidence |
|---|---|---|
| GeneXus 18 | Tested | The object type catalog and the reading references come from real GeneXus 18 exports (upgrades 9 and 13); a full agent run passed on a public GeneXus 18 Upgrade 12 sample |
| GeneXus 9 | Tested | Its ExportFile format is detected and synced with no extra configuration (see legacy exports); 11 of the 12 elements known for GeneXus 9 were confirmed on a real export. KB Intelligence inventories its objects and, since extractor 19, extracts their calls and attribute uses (see the note below the table); these relations were checked on synthetic fixtures and the public GeneXus 8 sample, not yet on a real GeneXus 9 export |
| GeneXus 8 | Tested with a public sample | A public GeneXus 8.0 export (export header 2.1) uses the same format as GeneXus 9: four packages sync into one corpus and the index builds; since extractor 19 it holds the calls between its objects and their attribute uses, and "who uses", "what uses", and impact answer for its Report and Web Panel objects |
| GeneXus 15 to 17 | Tested with public samples | Public training and wiki exports (export header 4.0) sync, index, and answer queries; full agent runs (install, setup, sync, questions) passed on GeneXus 15, 16, and 17 samples, and on a course sample marked for GeneXus 17 and 18 |
| GeneXus X Evolution 2 and 3 | Tested with public samples | Public wiki exports (export headers 3.1 and 3.3) sync, index, and answer queries; full agent runs passed on an X Evolution 2 and an X Evolution 3 sample |
| GeneXus X and X Evolution 1 | Tested with public samples | 21 small public exports (export header 3.1, builds 13780 to 27264 or no build, dated 2007 to 2010, before X Evolution 2 existed; 1 to 91 objects each) sync, index, and produce relations. The files do not name the product version, so X and X Evolution 1 are not told apart; no full agent run |
| GeneXus 6 and 7.0 | Tested with public samples | Their .xpw text exports are translated into the classic format and synced (see .xpw text exports): public samples dated 1997 to 2000 (export header 1.x or none) and one real export sync and index, and their Transaction, Procedure, Report, Web Panel, and Work Panel objects get the classic calls and attribute uses. Menu, Prompt, and Formula objects are synced; since extractor 21 Menu objects are indexed and each Formula is read through the attribute it computes, while Prompt objects are not indexed. The files do not name the product version (a 1997 sample may come from GeneXus 5); no full agent run |
| GeneXus 7.5, GeneXus 5 and earlier, GeneXus Next | Unknown | No export known to come from these versions has been read |
An object type the skill does not know stops the sync before anything is written; the skill does not guess it. An export that mixes the GeneXus 9 and the modern formats is rejected the same way.
For GeneXus 8 and 9 exports, and for GeneXus 6 and 7.0 .xpw exports, "who uses", "what uses", and impact answer since extractor 19: a classic Report is indexed as its own type, a call names its target with an object-type prefix (P Procedure, R Report, T Transaction, W Work Panel), and attribute reads and writes come from the code, rules, and events of Report, Procedure, Web Panel, and Transaction objects, and since extractor 20 from the rules and events of Work Panel objects, which can also be asked about; since extractor 21 the conditions of Report, Procedure, Web Panel, and Work Panel objects add attribute reads too. Also since extractor 21, a .xpw Menu is indexed as its own type and its options call the Menu, Work Panel, Transaction, and Report objects they name, and a .xpw Formula is read through the attribute it computes (its Procedure calls and the attributes it reads); a .xpw Prompt is not read, and a "who uses" answer on a KB that has one says so. Not covered yet: a Web Panel call prefix (no export shows one), a .xpw Prompt, the Subroutines of a .xpw object, and the table a classic for each navigates. See classic exports in the KB index reference.
Calls made from mobile objects (Smart Devices and Native Mobile panels and their Work With, the Offline Database object) and from GXflow business process diagrams are not indexed yet: a "who uses" answer can miss those callers, and it says so when the KB contains such objects. For an attribute, the index holds its structural relations (Transaction levels, Table keys and indexes), its uses in the grids, filters, orders, views, and filter conditions of WorkWithForWeb objects, and its reads and writes in the code of Procedure (Source, rules, and conditions), WebPanel and Work Panel (rules, events, and conditions), Transaction (rules and events), and DataProvider (Source and rules) objects, conditions included, and its reads in the formulas of other attributes, both since extractor 21; a write is reported only where the assignment is unambiguous (inside for each and new blocks, Transaction assignment rules, and the items of a DataProvider whose output is a Transaction), other assignments are reported as reads, and its uses in WorkWithForWeb captions, parameters, tab conditions, and code, in layouts, WebForms, and Business Component members, and in the grids and filters of other objects are not indexed, and a "who uses" answer for an attribute says so.
Use it with an AI agent
For the user
Give your agent the repository URL and your XPZ, for example with this prompt (replace the angle-bracket parts):
Install the Mimir Lite skill from https://github.com/federicoaecom/mimir following its README, then set up a KB workspace for my GeneXus KB <KbName> in <folder> and sync this XPZ: <path>.
For the first sync, give it a full export of the KB from the GeneXus IDE, not only the objects you changed. Give the XPZ as a file path when you can: a file attached in the chat may not exist on disk for the agent's scripts. If you only have the XPZ and not the native KB folder, say so: the workspace can be set up from the XPZ alone.
For the agent
Follow these steps in order. The command blocks below are PowerShell 7, except the one marked for Linux and macOS, which is bash; when your shell is bash, run each PowerShell block through pwsh -NoProfile -Command '<block>'. Ask the user before installing software or creating links.
Check the prerequisites (see Support):
pwsh --version(7.4+ on Windows, 7.4.6+ on Linux and macOS), a Python 3.8+ that answers aspython3 --version,python --version, orpy -3 --version(the Microsoft Store stub underWindowsAppsdoes not count),git --version. Offer to install what is missing, then open a new terminal soPATHpicks it up. On Linux, installpython3andgitwith the distribution's package manager, and PowerShell as described in Microsoft's installation guide. On Windows, thewingetlines run in any shell, so they work beforepwshis installed:winget install --id Microsoft.PowerShell -e winget install --id Python.Python.3.12 -e winget install --id Git.Git -eClone the repository outside the user's project, never into the project folder: its root
AGENTS.mdandCLAUDE.mdare instructions for contributors to this repository, and an agent working in the project would load them as project instructions. The clone path is<mimir-lite-root>in every workflow.Cloning is installing software, and a fetch, pull, or reset changes the clone: ask the user before any clone, fetch, pull, or reset of the skill checkout, and run it only after an explicit yes. For a clone, name the target path (for example
$HOME/mimir-lite). Read this README from its URL instead of cloning the repository somewhere else to read it; clone once, into the approved path. When the page cannot be fetched (an anonymous fetch of a private repository returns 404), read the README of an existing clone at<mimir-lite-root>, or, with an authenticated GitHub CLI,gh api repos/federicoaecom/mimir/readme -H "Accept: application/vnd.github.raw"; in that case clone withgh repo clone federicoaecom/mimir "$HOME/mimir-lite"instead of thegit clonebelow.If
<mimir-lite-root>already exists, do not clone again and do not update it yet. Inspect it read-only, running each command below as a call of its own (no&&,;, pipes, orcd), so each matches a simple permission rule. Then, before asking about an update, tell the user in visible text whether the clone is clean, its current commit, and whetheroriginis the URL in this README, as a short message of its own or as the first lines of the message that asks the update question; a report that appears only in tool output or the agent's reasoning was not given. Give the commit as its short hash, before and after an update, and do not label it with a release version: the version this README or the CHANGELOG names is the latest release, not necessarily this commit. After the update, take the new commit from thepull --ff-onlyoutput (itsUpdating <old>..<new>line;Already up to datemeans the commit did not change), with no extra command. When your tool has a question prompt with options, keep the options and put the report in the question text itself (for exampleThe clone at <path> is clean, at commit <short hash>, and origin is the README URL. Update it (fetch, then fast-forward)?); do not rely on text printed before it, which can be skipped:git -C "$HOME/mimir-lite" status git -C "$HOME/mimir-lite" log -1 --oneline git -C "$HOME/mimir-lite" remote get-url originAsk before updating it. With a yes, fetch, then update by fast-forward only, again one command per call:
git -C "$HOME/mimir-lite" fetch origin git -C "$HOME/mimir-lite" pull --ff-onlyAfter updating, re-read the workflow files already read in this session, at least
install.md, before continuing: the update may have changed them. If the user declines the update, take the commands from that clone's ownREADME.mdandinstall.md, not from this README: an older clone may lack newer options (for example-OnlyTool).If the update cannot fast-forward (unrelated history, local commits, or uncommitted changes), stop and explain why in plain words. Never reset, delete, or overwrite the existing clone; offer a fresh clone into a new approved path instead. Remove or rename the old clone only after an explicit yes, and only when its
git statusis clean.When
<mimir-lite-root>does not exist, clone into the approved path:git clone https://github.com/federicoaecom/mimir "$HOME/mimir-lite"The
gitlines in this step run unchanged in bash too.Without Git, a ZIP download extracted to the same place works, but Windows marks the downloaded scripts as blocked; unblock them with
Get-ChildItem -Recurse "$HOME\mimir-lite" | Unblock-File.Link the skill folder into the agent tool's skills folder.
~/.agents/skillsis read by Codex, Cursor, OpenCode, Pi, gentle-shell, GitHub Copilot, Gemini CLI, and the Antigravity CLI; Claude Code (CLI, VS Code extension, desktop) reads~/.claude/skills; the Antigravity IDE reads~/.gemini/config/skills(see Support). Linking into both of the first two is fine. Cursor users also link into~/.cursor/skills, or the audit reports a gap. A copy of the skill folder is not supported: it goes stale aftergit pull, and the audit cannot tell a stale copy from a current one; use a symbolic link or a junction.Choose the scope first. Ask once whether to install the skill generally, for every project on this machine (the default: the folders above), or for one project only, usually the KB workspace. For one project, the links go inside that project instead:
<project>/.claude/skillsfor Claude Code and<project>/.agents/skillsfor Codex, Cursor, OpenCode, Pi, gentle-shell, GitHub Copilot, Gemini CLI, and Antigravity; the clone still stays outside the project (step 2). A tool reads a project's skills only in a session started in that project folder or below it, and Claude Code prefers a skill installed generally over the same skill in a project, so do not install the same skill both ways. In the blocks below, use the project's two folders instead of the ones under$HOME(for example"<project>\.agents\skills", "<project>\.claude\skills", or in bash"<project>/.agents/skills" "<project>/.claude/skills"). A link holds an absolute path on this machine: a KB workspace's.gitignorealready ignores both folders; in any other project, offer to add.claude/skills/and.agents/skills/to its.gitignore.Ask before linking. Name each link you would create, as the link path and its target (for example
~/.claude/skills/mimir-litepointing to<mimir-lite-root>/skills/mimir-lite), and create only the links the user approves. A request to install the skill, or to follow this README, is not consent to create links. Keep in the blocks below only the skills folders the user approved. When the question offers a "no new links" choice, it excludes every other choice: with it, create no link.On Windows, a symbolic link needs Developer Mode or an elevated shell; the block falls back to a directory junction, which needs neither, and skips a link that already exists:
$repo = "$HOME\mimir-lite" foreach ($skills in "$HOME\.agents\skills", "$HOME\.claude\skills") { New-Item -ItemType Directory -Force -Path $skills | Out-Null if (Test-Path "$skills\mimir-lite") { continue } try { New-Item -ItemType SymbolicLink -Path "$skills\mimir-lite" -Target "$repo\skills\mimir-lite" -ErrorAction Stop | Out-Null } catch { New-Item -ItemType Junction -Path "$skills\mimir-lite" -Target "$repo\skills\mimir-lite" | Out-Null } }On Linux and macOS, a symbolic link needs no special rights. This bash block creates one with
ln -sand skips a link that already exists:repo="$HOME/mimir-lite" for skills in "$HOME/.agents/skills" "$HOME/.claude/skills"; do mkdir -p "$skills" if [ -e "$skills/mimir-lite" ] || [ -L "$skills/mimir-lite" ]; then continue; fi ln -s "$repo/skills/mimir-lite" "$skills/mimir-lite" doneskills/mimir-delegateis optional: it delegates a task or requests a peer review from another LLM. Offer it as a choice in the linking question, and link it the same way only after a yes. Never decide it for the user, either way.After linking, run the install audit once and tell the user its
overallresult (REGISTRATION_OKorREGISTRATION_GAPS). The install workflow (install.md) explains the result and how to fix a gap, again only after the user approves. Pass-OnlyToolwith the tools served by the skills folders the user approved, as one comma-separated list:~/.claude/skillsservesClaudeCode;~/.agents/skillsservesCodex,OpenCode,Antigravity,Pi, andGentleShell;~/.cursor/skillsservesCursor;~/.gemini/config/skillsservesAntigravity. Every other tool is reportedskipped_by_choice, which is not a gap. When the user names tools to exclude instead, pass them with-SkipTool(for example-SkipTool Cursor, or-SkipTool Codex,OpenCode); the two cannot be combined. Add-SkipSkill mimir-delegateonly when the user did not want delegation; never add it when the user asked for delegation, so a missing link still shows as a gap. The audit covers Claude Code, Codex, Cursor, OpenCode, Antigravity, Pi, and gentle-shell; GitHub Copilot and Gemini CLI are audited with-AdditionalSkillsRoot .agents/skills, which-OnlyToolnever skips. For a project install, add-Scope Project -ProjectRoot "<project>": the audit then checks the project's folders instead of the user's, and lists inuserScopeAlsoRegisteredany skill also installed generally. In project scope<project>/.claude/skillsservesClaudeCodeandOpenCode, and<project>/.agents/skillsservesCodex,Cursor,OpenCode,Antigravity,Pi, andGentleShell, so after linking into both pass-OnlyTool ClaudeCode,Codex,Cursor,OpenCode,Antigravity,Pi,GentleShell. The command below is for the two folders in the blocks above; replace<mimir-lite-root>with the clone's literal absolute path, with forward slashes:pwsh -NoProfile -File "<mimir-lite-root>/skills/mimir-lite/scripts/Test-MimirSkillsRegistration.ps1" -OnlyTool ClaudeCode,Codex,OpenCode,Antigravity,Pi,GentleShell -AsJsonStart a new agent session if needed. Most tools load skills when a session starts, so the current session may not see the new skill yet; some tools load a newly linked skill in the running session. Check whether the skill is available before asking the user to restart. If it is not and restarting is not possible, read
<mimir-lite-root>/skills/mimir-lite/SKILL.mddirectly and follow it.Set up the KB workspace, then sync. Follow the setup workflow (
setup.md), which creates the workspace with the scaffolder in one command, for examplepwsh -NoProfile -File "<mimir-lite-root>/skills/mimir-lite/scripts/New-MimirKbWorkspace.ps1" -WorkspaceRoot "<KbWorkspace>" -KbName <KbName>. Then follow the sync workflow (sync.md), including its first sync guidance: where to put a chat-attached XPZ, why the first load must be a full export, and why the run can outlast a command timeout.
Requirements
| Requirement | Notes |
|---|---|
| Windows 10/11 or Linux | Both tested in CI; macOS is best effort (see Support) |
PowerShell 7.4+ (pwsh); 7.4.6+ on Linux and macOS |
Scripts under skills/ and tools/ declare #requires -Version 7.4, except skills/mimir-lite/scripts/Test-MimirPowerShellRuntime.ps1 and its template Test-KbPowerShellRuntime.example.ps1, which omit it by design so they can report an older host; the test runner (tests/Invoke-Tests.ps1) and its self-test declare 7.0. On Linux and macOS, 7.4.6 is the first version tested: 7.4.2 loses a native command's stderr when stdout and stderr are redirected to separate files |
Python 3.8+ (stdlib only, including sqlite3) |
Needed to build the SQLite index and to run every index query, plus the transaction-writability check; no third-party packages. Found as python3, then python, then py -3. 3.8 is the minimum the code's syntax allows (an assignment expression in the query engine) and was verified by running the index build and a query on 3.8, 3.10 and 3.11; older versions are not supported |
Not needed: a GeneXus IDE installation, MSBuild, or any GeneXus build/specify/generate tooling. Building, packaging, or importing XPZ into a KB is out of scope for this skill.
Platform
Windows and Linux are tested in CI; macOS runs the same code paths as Linux, best effort (Support). The PowerShell layer finds the user's home folder through HOME or USERPROFILE, registers skills with symbolic links (with a junction fallback on Windows), and on Windows skips the Microsoft Store Python stub (WindowsApps). The Python engines (index build and query, writability) and the SQLite index use only the standard library. The index stores the corpus path relative to the index folder, so an index built on Windows can be read on Linux.
Known platform differences
- PowerShell version. Linux and macOS need PowerShell 7.4.6 or later (see Requirements).
- **Prompt on stdin.** On Linux and macOS, the `mimir-delegate` adapters that send the prompt on stdin (opencode, Codex, Claude Code) deliver it with one extra trailing newline, because PowerShell copies the redirected file line by line. It is harmless for an LLM CLI.
- State folder.
mimir-delegatekeeps its state under%LOCALAPPDATA%\mimir-delegateon Windows and~/.local/share/mimir-delegateon Linux ($XDG_DATA_HOME/mimir-delegatewhen that variable is set). On macOS it uses the .NET local application data folder, typically~/Library/Application Support/mimir-delegate, or the Linux location when~/Library/Application Supportdoes not exist; this is not tested in CI. - **CLI discovery.** An explicit `-Exe` parameter wins on every system. Without it, on Windows, Codex is taken from the Codex desktop app's binaries under `%LOCALAPPDATA%\OpenAI\Codex\bin` (the npm shim on `PATH` is ignored), and opencode and the Antigravity CLI from `PATH`, then from their Windows install folders (`%APPDATA%\npm`, `%LOCALAPPDATA%\agy`). On Linux and macOS every CLI comes from `PATH`; for Codex, the first `codex` that answers `codex --version`.
Installation
- Clone this repository outside any project folder (see Use it with an AI agent, step 2).
- Run the install workflow (
skills/mimir-lite/workflows/install.md) to registerskills/mimir-lite/and, optionally,skills/mimir-delegate/as skills in the agent tools installed on your machine (built-in support: Codex, Claude Code, Cursor, OpenCode, Antigravity, Pi, gentle-shell; any other tool that readsSKILL.mdfrom a skills directory can be linked the same way, see the workflow's "Other tools" section). It creates a symlink or junction per tool, detects which tools are actually installed, and changes nothing without explicit confirmation.
Re-run the install workflow after every git pull, since it also detects skill registrations that went stale or orphaned. After an update that changes the setup contract, the first KB task in each existing workspace reports AUDIT_REQUIRED once; run the setup audit and approve the timestamp re-stamp.
Quick start
Run these from the repository root in PowerShell 7.4+ (7.4.6+ on Linux and macOS). Each command below was run as shown against the synthetic fixture.
1. Register the skill in an agent tool (skip this step if you followed Use it with an AI agent). The example links mimir-lite into Claude Code's skills folder; Support lists the folder of every other tool. The block is for Windows, where a symbolic link needs Developer Mode or an elevated shell; it falls back to a directory junction, which needs neither, and skips a link that already exists. On Linux and macOS, run mkdir -p ~/.claude/skills && { [ -e ~/.claude/skills/mimir-lite ] || [ -L ~/.claude/skills/mimir-lite ] || ln -s "$PWD/skills/mimir-lite" ~/.claude/skills/mimir-lite; } in bash instead, which also skips a link that already exists. A copy of the skill folder is not supported: it goes stale after git pull, and the audit cannot tell a stale copy from a current one; use a symbolic link or a junction. Link skills/mimir-delegate the same way only if you want delegation.
$repo = (Get-Location).Path
$skills = "$HOME\.claude\skills"
New-Item -ItemType Directory -Force -Path $skills | Out-Null
if (-not (Test-Path "$skills\mimir-lite")) {
try { New-Item -ItemType SymbolicLink -Path "$skills\mimir-lite" -Target "$repo\skills\mimir-lite" -ErrorAction Stop | Out-Null }
catch { New-Item -ItemType Junction -Path "$skills\mimir-lite" -Target "$repo\skills\mimir-lite" | Out-Null }
}
2. Check the registration. The audit is read-only and covers Claude Code, Codex, Cursor, OpenCode, Antigravity, Pi, and gentle-shell; mimir-lite should show OK (mimir-delegate shows missing unless you linked it, or skipped_by_choice with -SkipSkill mimir-delegate, which is not a gap). For another tool, add its skills folder with -AdditionalSkillsRoot <dir>; it is reported as Custom:<dir>.
$audit = pwsh -NoProfile -File skills/mimir-lite/scripts/Test-MimirSkillsRegistration.ps1 -AsJson | ConvertFrom-Json
($audit.tools | Where-Object name -eq 'ClaudeCode').skills | Select-Object name, status, linkType
3. First run against the synthetic fixture. This builds the derived SQLite index from tests/fixtures/sample-kb/ into a temporary folder (the only file it writes inside the repository is the git-ignored lock file tests/fixtures/sample-kb/.mimir-sync.lock) and asks who uses the Customer table. The build needs Python (see Requirements) and prints a JSON validation report; the query prints a short result.
$work = Join-Path ([IO.Path]::GetTempPath()) 'mimir-quickstart'
New-Item -ItemType Directory -Force -Path $work | Out-Null
pwsh -NoProfile -File skills/mimir-lite/scripts/Build-KbIntelligenceIndex.ps1 -SourceRoot tests/fixtures/sample-kb -OutputPath "$work/kb-index.sqlite"
pwsh -NoProfile -File skills/mimir-lite/scripts/Query-KbIntelligenceIndex.ps1 -IndexPath "$work/kb-index.sqlite" -Query who-uses -ObjectType Table -ObjectName Customer -Format text
Expected query output:
who-uses: Table:Customer
results: 1/1
- #21 Transaction:Customer -> Table:Customer [has_level_table, direct]
Transaction/Customer.xml:3 Level Type via transaction_level_table
<Level name="Customer" Type="Customer">
This shows the two engines the find workflow relies on. It deliberately skips the KB workspace, the XPZ sync, and the mandatory freshness gate, which need a real KB workspace; the setup workflow creates one in one command with New-MimirKbWorkspace.ps1. An agent always passes that gate before trusting an index. For a real KB, the first sync takes a full KB export (see the sync workflow's first sync guidance).
Workflows
Each step below names the workflow that handles it; see the linked workflow file for the full contract.
| Step | Workflow | What it does |
|---|---|---|
| 1. Set up the KB workspace | workflows/setup.md |
Creates the folder structure next to your GeneXus KB in one command with New-MimirKbWorkspace.ps1 (KbObjectsXml, KbIntelligence, local wrappers), or from the XPZ alone when the native KB folder is not available, or audits an existing one |
| 2. Sync an XPZ | workflows/sync.md |
Materializes an XPZ exported from the GeneXus IDE into the XML corpus, one file per object |
| 3. Find via the index | workflows/find.md |
Queries the derived SQLite index for who-uses/what-uses/impact before opening XML, after its mandatory freshness gate passes |
| 4. Read an object | workflows/read.md |
Structurally classifies a single object's XML (type, family, parts, risk) |
| 5. (Optional) Generate docs | workflows/docs.md |
Produces Markdown documentation from the XML corpus |
The XML corpus (KbObjectsXml) is the normative source; the index is always a shortcut to it, never a replacement, and every substantive index query must pass its freshness gate first.
Repository layout
skills/
├── mimir-lite/ # core skill (installed into agent tools)
│ ├── SKILL.md # entry point + router to workflows
│ ├── workflows/ # sync, find, read, docs, setup, install
│ ├── references/ # agent-facing knowledge base
│ └── scripts/ # PowerShell + Python engines
└── mimir-delegate/ # optional skill: delegation and peer review
├── SKILL.md
├── references/
└── scripts/
tests/ # self-tests and parity tests, one runner
tools/ # contributor-only checks (parse, encoding, links, pre-push)
docs/ # human documentation (see below)
Running tests and checks
All commands run from the repository root with pwsh 7.4+ (7.4.6+ on Linux and macOS).
| Command | What it checks |
|---|---|
pwsh -NoProfile -NonInteractive -ExecutionPolicy Bypass -File tests/Invoke-Tests.ps1 |
Runs every *SelfTest.ps1 and Python Test*.py under tests/ (add -AsJson for a structured report; -ThrottleLimit <n> runs n files at a time, default 1; 2 is the tested value) |
pwsh -NoProfile -File tools/Test-TextEncoding.ps1 |
Tracked text files are UTF-8 without BOM, LF line endings |
pwsh -NoProfile -File tools/Test-PsScriptsParse.ps1 |
Every *.ps1 under skills/, tools/, tests/ parses cleanly |
pwsh -NoProfile -File tools/Test-PyScriptsParse.ps1 |
Every *.py under the same roots parses cleanly (no bytecode written) |
pwsh -NoProfile -File tools/Test-MarkdownFences.ps1 |
Markdown code fences are balanced and well formed |
pwsh -NoProfile -File tools/Test-MarkdownLinks.ps1 |
Relative Markdown links and bare NN-*.md mentions resolve to a real file |
pwsh -NoProfile -File tools/Test-ScriptInventory.ps1 |
Every script is listed in the script inventory |
pwsh -NoProfile -File tools/Test-CodeLanguage.ps1 |
Code comments and messages are in English |
CI runs all of the checks above on Windows and Linux (see CONTRIBUTING.md). Maintainers also run the mechanical pre-push checks (git context, parse, whitespace) with pwsh -NoProfile -ExecutionPolicy Bypass -File tools/Invoke-PrePushMechanicalChecks.ps1 -AsJson; see docs/process/13-pre-push-review.md.
Documentation map
| Folder | Contents |
|---|---|
docs/README.md |
Index of human documentation |
docs/process/ |
Team working methods (pre-push review, reinforced review, peer review) |
docs/adr/ |
Decision records |
docs/ideas/ |
Curated backlog and discarded ideas |
docs/i18n/ |
Translation policy and glossary |
Skill payload (SKILL.md, workflows/, references/) is agent-facing and lives inside skills/, not in docs/.
Out of scope
Generating, cloning, or packaging GeneXus objects; building or importing XPZ packages into a KB; MSBuild-based builds. See each workflow's own "Do NOT use this workflow for" section for detail.
Delegation and files written outside the repository
mimir-lite never sends anything to an external service. The optional mimir-delegate skill can, and only when you ask an agent to delegate a task or run a peer review: it sends prompt content to an external LLM CLI (opencode, including the model providers it is configured with; Codex; Claude Code; GitHub Copilot CLI; Gemini CLI; Antigravity CLI) or to a local model. Before sending, the agent classifies the payload as public or kb-sensitive and runs Resolve-LlmDelegateAuthorization.ps1, which returns allow, ask, or deny from the destination's locality and your policy. The agent judges the payload's sensitivity, so this gate is procedural, not technical: it does not inspect the content. If you do not want any KB content to leave your machine, do not ask for delegation, or answer "deny" when asked. See SECURITY.md and skills/mimir-delegate/SKILL.md.
The tools write outside this repository in these places:
| Location | What | Written by |
|---|---|---|
<KB workspace> |
The new workspace next to your KB: scripts (local wrappers), README.md, AGENTS.md, kb-source-metadata.md, .gitignore, and the folders Temp, IdeXpzExports, KbObjectsXml, KbIntelligence |
mimir-lite setup workflow, with the New-MimirKbWorkspace.ps1 scaffolder |
<KB workspace>\KbObjectsXml, <KB workspace>\KbIntelligence |
The XML corpus and the derived index, next to your KB | mimir-lite sync and setup workflows |
<KB workspace>\.claude\settings.json |
Claude Code allow rules for the workspace's scripts folder and the shared engine scripts, and read rules for the clone's skills folder and the skill links under ~/.claude/skills (or the workspace's own .claude/skills for a project install) |
setup workflow (steps 20 and 20a), Claude Code only; you can decline |
Agent-tool skills directories (for example ~/.claude/skills/, or a project's .claude/skills/ and .agents/skills/) |
One link per skill, never a copy | install workflow, after your confirmation |
| Global instruction files of your agent tools | The "KB workspace" trigger section | setup workflow, only after your explicit confirmation |
%LOCALAPPDATA%\mimir-delegate (Windows), ~/.local/share/mimir-delegate (Linux), typically ~/Library/Application Support/mimir-delegate (macOS, not tested in CI; the Linux location when ~/Library/Application Support does not exist) |
capabilities.json, preferred-reviewers.json (and per-tool preferred-reviewers.<tool>.json), circuit-breaker state |
mimir-delegate |
<KB workspace>\llm-delegation-policy.json |
Per-KB external-delivery policy | mimir-delegate, when you record a policy |
The system temp folder, %TEMP% on Windows, $TMPDIR or /tmp elsewhere (claude-code-async, codex-jobs, mimir-panel-dispatch, mimir-panel-codex, mimir-agy-public-review, and temporary files) |
Prompts, outputs, and job state of delegated runs; adapters that accept -KeepDays clean up old job folders |
mimir-delegate |
Contributing and security
See CONTRIBUTING.md for how to contribute and SECURITY.md for how to report a security issue. Participation is governed by CODE_OF_CONDUCT.md, and changes are recorded in CHANGELOG.md.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found