### Add Dexio wiki instructions to AGENTS.md Source: https://dexio.wiki/guides/openclaw-memory Add these instructions to ~/.openclaw/workspace/AGENTS.md (or via Settings > Agents > Files in the Control UI). OpenClaw loads AGENTS.md at the start of every session, so these rules guide how it uses the Dexio wiki. ```markdown ## Dexio wiki - Keep MEMORY.md for short personal notes; keep shared project knowledge in the Dexio wiki. - Before writing, use search_pages and read_page, and update the page that exists. - Link related pages with [[wikilinks]]. - Pass base_version when you edit, and name yourself in the agent field. ``` -------------------------------- ### SKILL.md example for release-notes skill Source: https://dexio.wiki/guides/hermes-agent-skills Example of a SKILL.md file for a release-notes skill. It includes frontmatter with name, description, and version, followed by instructions, pitfalls, and verification steps. ```markdown --- name: release-notes description: Draft release notes from merged pull requests version: 1.0.0 --- # Release notes Use when the person asks for release notes for a version. 1. List the pull requests merged since the last tag. 2. Group them into Added, Changed and Fixed. 3. Write one plain sentence per change. ## Pitfalls - Skip dependency bumps unless they change behaviour. ## Verification Every merged pull request appears once. ``` -------------------------------- ### Example CLAUDE.md for a TypeScript invoicing API Source: https://dexio.wiki/guides/claude-md Illustrates a complete CLAUDE.md that captures project-specific commands (install, dev, test, typecheck, migrations), code style (ES modules, integer cents for money), architecture (route handlers in src/routes/, SQL in src/db/), workflow (branch naming, running tests before commit), and gotchas (tests require DATABASE_URL from .env.test, src/generated/ is generated). Place this in the project root to be loaded by Claude Code. ```markdown # Tally A small invoicing API: Node 22, TypeScript, Fastify, Postgres. Product overview: @README.md ## Commands - Install: `pnpm install` - Dev server: `pnpm dev` (start the database first with `docker compose up db`) - One test file: `pnpm vitest run path/to/file.test.ts` - Typecheck: `pnpm tsc --noEmit`. Run it after a series of changes. - Migrations: `pnpm db:migrate` ## Code style - ES modules only, no `require` - Money is integer cents (`amountCents`), never floats ## Architecture - Route handlers live in `src/routes/`. SQL lives only in `src/db/`. - IMPORTANT: never edit a migration that is already on main. Add a new one. ## Workflow - Branches: `feat/` or `fix/` - Run the tests for the files you changed before you commit ## Gotchas - Tests need `DATABASE_URL` from `.env.test` - `src/generated/` is written by `pnpm codegen`. Do not edit it by hand. ``` -------------------------------- ### Install OpenClaw with curl Source: https://dexio.wiki/guides/hermes-agent-vs-openclaw One-line installer for OpenClaw on macOS, Linux, and WSL2. Run in terminal to install. ```bash curl -fsSL https://openclaw.ai/install.sh | bash ``` -------------------------------- ### Dexio health check report example Source: https://dexio.wiki/ Example output from Dexio's health check report for the example wiki. It lists broken links as problems, then pages named without a link and pages nothing links to as information. ```text broken links (2), the only problems: competitors/tallpine-roasters -> cafes/harbor-light-espresso sources/alder-stone-price-sheet-2026-09 -> coffees/kenya-kirinyaga for information, named without a link (2): decisions/compostable-bags names suppliers/foldright-packaging how-to/wholesale-order names cafes/loaf-and-ladle for information, nothing links to these (1): sources/cupwise-pricing-page-2026-09 ``` -------------------------------- ### Message to send to Codex for automatic setup Source: https://dexio.wiki/guides/codex-mcp Send this message to Codex to have it connect to your Dexio wiki. Codex will read the steps from the provided URL and follow them. ```text Connect yourself to my Dexio wiki. Read the steps with curl -s https://dexio.wiki/agents.md and follow them. ``` -------------------------------- ### Add Dexio wiki instructions to AGENTS.md Source: https://dexio.wiki/guides/hermes-agent-memory Add these lines to AGENTS.md (or .hermes.md) in the working directory to load project instructions when a session starts. For a rule that follows the profile everywhere, ask Hermes to save a line via the memory tool. ```markdown ## Dexio wiki - Keep project knowledge in the Dexio wiki. - Before writing, use search_pages and read_page, and update the page that exists. - Link related pages with [[wikilinks]]. - Pass base_version when you edit, and name yourself in the agent field. ``` -------------------------------- ### AGENTS.md example for a TypeScript monorepo Source: https://dexio.wiki/guides/agents-md A complete AGENTS.md file for a small TypeScript monorepo with a Next.js web app and Fastify API. It covers project overview, setup, tests, code style, database migrations, security, and pull request conventions. Use this as a template for your own project's agent instructions. ```markdown # AGENTS.md ## Project overview - Invoicing app. Next.js frontend in `web/`, Fastify API in `api/`, Postgres. - Shared types live in `packages/types`. Change them there, not in copies. ## Setup - Install: `pnpm install` - Run both apps: `pnpm dev` (web on port 3000, API on 4000) ## Tests - Run `pnpm test` before you finish, and fix failures rather than skipping them. - One package only: `pnpm --filter api test` - Add or update tests for the code you change. ## Code style - TypeScript strict mode. Explain any `any` in a comment. - Run `pnpm lint` and `pnpm format` before committing. ## Database - Change the schema only with a new file in `api/migrations/`. Never edit an applied migration. ## Security - Secrets live in `.env.local`, which is not committed. Never print or commit them. ## Pull requests - Title: `[web]` or `[api]`, then a short summary. ``` -------------------------------- ### Manual configuration for ~/.codex/config.toml Source: https://dexio.wiki/guides/codex-mcp Add this to your user configuration file to enable Dexio MCP server. Replace dxk_... with your actual API key. The url is the server address and http_headers sends a static header with every request. ```toml [mcp_servers.dexio] url = "https://app.dexio.wiki/mcp" http_headers = { "Authorization" = "Bearer dxk_..." } ``` -------------------------------- ### Install Hermes Agent with curl Source: https://dexio.wiki/guides/hermes-agent-vs-openclaw One-line installer for Hermes Agent on Linux, macOS, and WSL2. Run in terminal to install. ```bash curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash ``` -------------------------------- ### Add Dexio MCP server to ~/.cursor/mcp.json Source: https://dexio.wiki/guides/cursor-mcp Merge this into the global Cursor configuration to make Dexio available in every project. Replace dxk_... with your API key, which acts like a password for your workspace. ```json { "mcpServers": { "dexio": { "url": "https://app.dexio.wiki/mcp", "headers": { "Authorization": "Bearer dxk_..." } } } } ``` -------------------------------- ### Dexio theme initialization and management script Source: https://app.dexio.wiki/signup JavaScript that reads the user's theme preference from cookies or localStorage, applies the theme, and provides a global dexioTheme object with apply and save methods. It also listens for system theme changes and uses View Transitions when supported. ```javascript (function () { var d = document.documentElement, C = {"dexio": ["#ffffff", "#0d1117"], "aubergine": ["#3f0e40", "#2e0b30"], "jade": ["#0b4d3b", "#0a3529"], "lagoon": ["#0c5460", "#0a3a43"], "indigo": ["#312e81", "#1e1b4b"], "rose": ["#9f1239", "#650c26"], "clementine": ["#fb8b3c", "#7a2a0a"], "sunflower": ["#f4c542", "#d9a92a"], "graphite": ["#2d333b", "#1c2128"]}, dark = null, still = null; try { dark = matchMedia("(prefers-color-scheme: dark)"); } catch (e) {} try { still = matchMedia("(prefers-reduced-motion: reduce)"); } catch (e) {} function pref() { var m = /(?:^|;\s*)dexio_theme=([a-z]+)\.(system|light|dark)/.exec(document.cookie); if (m && C[m[1]]) return [m[1], m[2]]; try { var old = localStorage.getItem("dexio-theme"); if (old === "light" || old === "dark") return ["dexio", old]; } catch (e) {} return ["dexio", "system"]; } function apply() { var p = pref(), mode = p[1]; if (mode === "system") mode = dark && dark.matches ? "dark" : "light"; d.dataset.theme = p[0]; d.dataset.mode = mode; var meta = document.querySelector('meta[name="theme-color"]'); if (meta) meta.setAttribute("content", C[p[0]][mode === "dark" ? 1 : 0]); return p; } apply(); function fade(change) { if (!document.startViewTransition || (still && still.matches) || document.visibilityState !== "visible") return change(); document.startViewTransition(change); } window.dexioTheme = { pref: pref, // the graph draws on a canvas, so it is told to repaint apply: function () { fade(function () { var p = apply(); window.dispatchEvent(new CustomEvent("dexio:theme", { detail: p })); }); return pref(); }, save: function (theme, mode) { document.cookie = "dexio_theme=" + theme + "." + mode + "; path=/; max-age=31536000; samesite=lax" + (location.protocol === "https:" ? "; secure" : ""); return this.apply(); } }; if (dark && dark.addEventListener) dark.addEventListener("change", function () { if (pref()[1] === "system") window.dexioTheme.apply(); }); document.addEventListener("DOMContentLoaded", apply); })(); ``` -------------------------------- ### Fetch agents.md with curl Source: https://dexio.wiki/guides/claude-memory Fetch the agents.md instructions raw so summarizing fetch tools do not drop its commands. Use this before following the OAuth device sign-in steps. ```bash curl -s https://dexio.wiki/agents.md ``` -------------------------------- ### Add Dexio MCP server with claude mcp add Source: https://dexio.wiki/guides/claude-code-memory Manually add the Dexio MCP server to Claude Code. Replace `dxk_...` with your API key. `--scope user` stores the server in `~/.claude.json` and makes it available in every project. The API key works like a password, so keep it out of commits and the wiki. ```bash claude mcp add --transport http --scope user dexio https://app.dexio.wiki/mcp \ --header "Authorization: Bearer dxk_..." ``` -------------------------------- ### Start Claude Code or Codex in the vault directory Source: https://dexio.wiki/guides/obsidian-mcp Start Claude Code or Codex from the vault directory so the agent can read and edit the markdown files. The comment shows the alternative command. ```bash cd ~/path/to/your/vault claude # or: codex ``` -------------------------------- ### CLAUDE.md template Source: https://dexio.wiki/guides/claude-md A template for a CLAUDE.md file. Copy it into ./CLAUDE.md, fill in what applies, and delete the rest. The sections follow the 'Include' column of the guide. ```markdown # ## Commands - Build: - Test (one file): - Lint and typecheck: ## Code style - ## Architecture - ## Workflow - ## Gotchas - ``` -------------------------------- ### Configure Claude Code to use the Dexio wiki in CLAUDE.md Source: https://dexio.wiki/guides/claude-code-memory Add this section to `~/.claude/CLAUDE.md` (or a project's `./CLAUDE.md`) to instruct Claude Code to use the Dexio wiki. It tells the agent to search and read wiki pages before working, update existing pages, pass `base_version` from `read_page`, use [[wikilinks]], and set the `agent` field to "Claude Code" on every change. ```markdown ## Dexio wiki - Keep notes in the Dexio wiki. - Before you work on a topic, search the wiki with `search_pages` and read what is there. - When you work out something that will be needed again, write it down. Update the page that exists instead of adding a duplicate. - Pass the `base_version` from `read_page` when you change a page. - Link related pages with [[wikilinks]]. - Put "Claude Code" in the `agent` field on every change. ``` -------------------------------- ### Wiki schema template Source: https://dexio.wiki/guides/muse-llm-wiki A starting schema for the wiki, defining layout, rules, and workflows for ingest, query, and lint. Edit it whenever you repeat an instruction. ```markdown # Wiki schema ## Layout - sources/: one page per source: what it says, where it came from, when you read it. - entities/: people, companies, products, places. - concepts/: ideas that span several sources. - queries/: answers worth keeping. - index: every page, one line each. log: one line per ingest, query or lint. - Files such as PDFs sit beside the pages, at paths like raw/paper.pdf. - Link pages with [[wikilinks]], such as [[concepts/pricing]]. ## Rules - Run search_pages before you write, and update the page that exists. - Pass the base_version from read_page when you edit. - Name yourself in the agent field on every change: "muse". - Never put API keys or passwords in the wiki. ## Ingest 1. Read the source and tell me the key points. 2. Write sources/. 3. Update the entity and concept pages it touches. Note claims it contradicts. 4. Add new pages to index. Append to log: YYYY-MM-DD ingest | title. ## Query Read index, then search. Answer with the page paths you used. File answers worth keeping under queries/. ## Lint Fix broken links, check pages marked possibly stale against newer sources, list contradictions and concepts that have no page. ``` -------------------------------- ### GET /api/v1/export Source: https://dexio.wiki/agents Downloads the entire wiki as a zip file with one markdown file per page. Requires authentication via Bearer token. ```APIDOC ## [GET] /api/v1/export ### Description Exports the entire wiki as a zip file containing one markdown file per page, preserving the page paths. ### Method GET ### Endpoint `/api/v1/export` ### Parameters #### Headers - **Authorization** (string) - Required - Bearer token for authentication, e.g., `Bearer $DEXIO_API_KEY`. ### Request Example ```sh curl -sS --fail-with-body -o wiki.zip -H "Authorization: Bearer $DEXIO_API_KEY" 'https://app.dexio.wiki/api/v1/export' ``` ### Response #### Success Response (200) - **file** (binary) - The zip file containing the wiki pages. #### Response Example ``` wiki.zip ``` ``` -------------------------------- ### Verify Codex loaded AGENTS.md with codex --ask-for-approval never Source: https://dexio.wiki/guides/codex-mcp Run this command to confirm Codex loaded the AGENTS.md file. Codex should quote your items back if the instructions were loaded successfully. ```bash codex --ask-for-approval never "Summarize the current instructions." ```