Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

feat: onboard docs, agent instructions, and RAG configuration - #1

Merged
johansabent merged 2 commits into
mainfrom
feat/setup-rag-docs
Mar 17, 2026
Merged

feat: onboard docs, agent instructions, and RAG configuration#1
johansabent merged 2 commits into
mainfrom
feat/setup-rag-docs

Conversation

@johansabent

Copy link
Copy Markdown
Owner

This PR introduces the documentation corpus, agent instructions, and local Supabase/RAG configurations.

Changes included:

  • Added root documentation (README.md, AGENTS.md, CHANGELOG.md).
  • Added full documentation set in docs/.
  • Added Supabase CLI dependencies (package.json, package-lock.json) and config.toml.
  • Added RAG helper scripts in rag-agent/tools/.

Copilot AI review requested due to automatic review settings March 13, 2026 04:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a full documentation corpus plus repo-level onboarding guidance for a local Supabase-backed RAG setup.

Changes:

  • Introduces extensive Markdown documentation under docs/ (concepts, CLI, channels, automation).
  • Updates root docs (README.md, AGENTS.md) to describe repo structure and usage.
  • Adds i18n glossary assets and docs site metadata (e.g., docs/CNAME).

Reviewed changes

Copilot reviewed 101 out of 418 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
docs/concepts/markdown-formatting.md Documents IR-based markdown formatting pipeline and chunking rules
docs/concepts/features.md Adds product feature overview page
docs/concepts/context.md Explains context composition and inspection commands
docs/concepts/compaction.md Describes context compaction behavior and configuration
docs/concepts/architecture.md Documents gateway architecture and protocol overview
docs/concepts/agent.md Describes agent runtime, workspace contract, and streaming/queue semantics
docs/concepts/agent-workspace.md Defines workspace layout, backup, and migration guidance
docs/concepts/agent-loop.md Walkthrough of the agent loop lifecycle and hooks
docs/cli/webhooks.md CLI reference for webhook helpers and Gmail Pub/Sub
docs/cli/voicecall.md CLI reference for voicecall plugin command surface
docs/cli/update.md CLI reference for updating channels/tags and restart behavior
docs/cli/uninstall.md CLI reference for uninstalling gateway service and data
docs/cli/tui.md CLI reference for terminal UI connectivity and flags
docs/cli/system.md CLI reference for system events, heartbeat, and presence
docs/cli/status.md CLI reference for health/diagnostics and deep probes
docs/cli/skills.md CLI reference for skills list/info/check
docs/cli/setup.md CLI reference for initialization and wizard entrypoint
docs/cli/sessions.md CLI reference for listing sessions and cleanup maintenance
docs/cli/security.md CLI reference for security audit and fix behavior
docs/cli/secrets.md CLI reference for SecretRef management commands
docs/cli/sandbox.md CLI reference for sandbox inspection and container management
docs/cli/reset.md CLI reference for resetting local state
docs/cli/qr.md CLI reference for generating pairing QR/setup code
docs/cli/plugins.md CLI reference for plugin management and install/update rules
docs/cli/pairing.md CLI reference for pairing list/approve flows
docs/cli/onboard.md CLI reference for onboarding wizard (interactive/non-interactive)
docs/cli/nodes.md CLI reference for node listing/approval and command execution
docs/cli/node.md CLI reference for headless node host run/install
docs/cli/models.md CLI reference for models status/list/set/scan and auth profiles
docs/cli/memory.md CLI reference for memory indexing/search
docs/cli/logs.md CLI reference for tailing gateway logs over RPC
docs/cli/hooks.md CLI reference for managing internal hooks
docs/cli/health.md CLI reference for gateway health RPC
docs/cli/gateway.md CLI reference for gateway run/query/discovery/service management
docs/cli/doctor.md CLI reference for guided repairs and integrity checks
docs/cli/docs.md CLI reference for searching live docs index
docs/cli/dns.md CLI reference for wide-area discovery helpers
docs/cli/directory.md CLI reference for channel directory/id lookup
docs/cli/devices.md CLI reference for device pairing/token rotation
docs/cli/dashboard.md CLI reference for opening Control UI safely
docs/cli/daemon.md Documents legacy alias for gateway service management
docs/cli/cron.md CLI reference for cron scheduling and run behavior
docs/cli/configure.md CLI reference for interactive configuration wizard
docs/cli/config.md CLI reference for non-interactive config get/set/validate
docs/cli/completion.md CLI reference for shell completion generation/install
docs/cli/clawbot.md Documents legacy alias namespace
docs/cli/channels.md CLI reference for channel account management and probes
docs/cli/browser.md CLI reference for browser control and extension relay
docs/cli/backup.md CLI reference for backup creation and verification
docs/cli/approvals.md CLI reference for exec approvals management
docs/cli/agents.md CLI reference for agent management and routing bindings
docs/cli/agent.md CLI reference for sending a single agent turn
docs/cli/acp.md Documents ACP bridge usage for IDE integrations
docs/ci.md Documents CI job graph, scope logic, and local equivalents
docs/channels/zalouser.md Channel guide for Zalo personal account plugin
docs/channels/zalo.md Channel guide for Zalo Bot API plugin
docs/channels/troubleshooting.md Cross-channel troubleshooting ladder and signatures
docs/channels/tlon.md Channel guide for Tlon/Urbit plugin
docs/channels/synology-chat.md Channel guide for Synology Chat webhook plugin
docs/channels/pairing.md Pairing overview for DMs and device nodes
docs/channels/nostr.md Channel guide for Nostr DM plugin
docs/channels/nextcloud-talk.md Channel guide for Nextcloud Talk webhook plugin
docs/channels/location.md Documents location parsing normalization and context fields
docs/channels/line.md Channel guide for LINE Messaging API plugin
docs/channels/irc.md Channel guide for IRC plugin configuration and access control
docs/channels/index.md Index of supported chat channels
docs/channels/group-messages.md Documents group message handling and mention gating
docs/channels/channel-routing.md Documents deterministic routing and session key shapes
docs/brave-search.md Documents Brave Search API setup and tool parameters
docs/automation/webhook.md Documents webhook ingress endpoints, auth, mappings, and policies
docs/automation/troubleshooting.md Troubleshooting for cron/heartbeat scheduling and delivery
docs/automation/poll.md Documents poll sending via CLI/RPC/tool and channel differences
docs/automation/gmail-pubsub.md End-to-end wiring for Gmail Pub/Sub to OpenClaw hooks
docs/automation/auth-monitoring.md Documents OAuth expiry monitoring via CLI and scripts
docs/auth-credential-semantics.md Defines canonical auth credential eligibility/resolution semantics
docs/CNAME Sets docs site custom domain
docs/.i18n/glossary.zh-CN.json Adds Chinese glossary term mappings for i18n pipeline
docs/.i18n/glossary.ja-JP.json Adds Japanese glossary term mappings for i18n pipeline
docs/.i18n/README.md Documents i18n asset formats and generation behavior
README.md Replaces prior README with repo-focused RAG + Supabase usage guide
AGENTS.md Adds repo-specific agent contribution and safety guidelines

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread docs/cli/hooks.md Outdated
Comment thread README.md
Comment thread docs/ci.md
Comment thread docs/concepts/agent-workspace.md
Comment thread docs/concepts/agent.md Outdated
Comment thread docs/cli/update.md Outdated
Comment thread docs/channels/group-messages.md Outdated
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's foundational elements by establishing a robust documentation framework and integrating essential Retrieval-Augmented Generation (RAG) components. It aims to streamline the onboarding process for new users and agents, ensuring clarity in operational guidelines and providing the necessary infrastructure for local RAG development and deployment.

Highlights

  • Comprehensive Documentation: Introduced a complete set of documentation, including root-level guides (README.md, AGENTS.md, CHANGELOG.md) and an extensive collection of topic-specific documents under the docs/ directory, covering automation, channels, CLI, and core concepts.
  • Agent Instructions and Guidelines: Added AGENTS.md to provide clear guidelines and rules for AI agents operating within the codebase, focusing on scope, modularity, CLI execution, safety, and documentation practices.
  • RAG Configuration and Dependencies: Integrated local Supabase and RAG configurations, including necessary Supabase CLI dependencies in package.json and package-lock.json, a config.toml file, and helper scripts for RAG operations in rag-agent/tools/.
  • Updated README for Quick Start: The main README.md was significantly overhauled to serve as a definitive onboarding guide, detailing the repository's purpose, structure, quick start instructions, configuration, and maintenance procedures for the RAG system.
Changelog
  • AGENTS.md
    • Added agent guidelines for DOC-KB-RAG, covering repository focus, general rules, CLI and execution, safety and boundaries, and documentation practices.
  • README.md
    • Updated the main README.md with a new title, repository overview, structure map, working directory rules, quick start guide, configuration details, main commands, and maintenance instructions.
  • docs/.i18n/README.md
    • Added a README file explaining the purpose and format of i18n assets for documentation translations.
  • docs/.i18n/glossary.ja-JP.json
    • Added a JSON file containing Japanese glossary terms for documentation translation guidance.
  • docs/.i18n/glossary.zh-CN.json
    • Added a JSON file containing Chinese glossary terms for documentation translation guidance.
  • docs/CNAME
    • Added a CNAME file for custom domain configuration.
  • docs/assets/pixel-lobster.svg
    • Added an SVG asset depicting a pixel lobster.
  • docs/assets/showcase/padel-cli.svg
    • Added an SVG asset for a padel-cli showcase.
  • docs/assets/showcase/roborock-status.svg
    • Added an SVG asset for a roborock-status showcase.
  • docs/assets/sponsors/blacksmith.svg
    • Added an SVG asset for the Blacksmith sponsor logo.
  • docs/assets/sponsors/convex.svg
    • Added an SVG asset for the Convex sponsor logo.
  • docs/assets/sponsors/openai.svg
    • Added an SVG asset for the OpenAI sponsor logo.
  • docs/assets/sponsors/vercel.svg
    • Added an SVG asset for the Vercel sponsor logo.
  • docs/auth-credential-semantics.md
    • Added a document defining auth credential eligibility and resolution semantics.
  • docs/automation/auth-monitoring.md
    • Added a document detailing auth monitoring for model providers.
  • docs/automation/cron-jobs.md
    • Added a document explaining cron jobs for the Gateway scheduler.
  • docs/automation/cron-vs-heartbeat.md
    • Added a document providing guidance on choosing between cron jobs and heartbeats for automation.
  • docs/automation/gmail-pubsub.md
    • Added a document outlining Gmail Pub/Sub integration with OpenClaw webhooks.
  • docs/automation/hooks.md
    • Added a document describing the hooks system for event-driven automation.
  • docs/automation/poll.md
    • Added a document detailing poll sending via the gateway and CLI.
  • docs/automation/troubleshooting.md
    • Added a document for troubleshooting automation scheduling and delivery issues.
  • docs/automation/webhook.md
    • Added a document explaining webhook ingress for agent runs.
  • docs/brave-search.md
    • Added a document on setting up Brave Search API for web_search.
  • docs/channels/bluebubbles.md
    • Added a document detailing BlueBubbles macOS server integration for iMessage.
  • docs/channels/broadcast-groups.md
    • Added a document explaining broadcast groups for multi-agent WhatsApp messages.
  • docs/channels/channel-routing.md
    • Added a document describing channel routing rules.
  • docs/channels/discord.md
    • Added a document outlining Discord bot support and configuration.
  • docs/channels/feishu.md
    • Added a document detailing Feishu bot overview and configuration.
  • docs/channels/googlechat.md
    • Added a document on Google Chat app support and configuration.
  • docs/channels/group-messages.md
    • Added a document explaining WhatsApp group message handling.
  • docs/channels/groups.md
    • Added a document detailing general group chat behavior across various platforms.
  • docs/channels/imessage.md
    • Added a document on legacy iMessage support via imsg.
  • docs/channels/index.md
    • Added an index document listing supported chat channels.
  • docs/channels/irc.md
    • Added a document detailing IRC plugin setup and access controls.
  • docs/channels/line.md
    • Added a document on LINE Messaging API plugin setup.
  • docs/channels/location.md
    • Added a document explaining channel location parsing.
  • docs/channels/matrix.md
    • Added a document on Matrix support status and configuration.
  • docs/channels/mattermost.md
    • Added a document detailing Mattermost bot setup and configuration.
  • docs/channels/msteams.md
    • Added a document on Microsoft Teams bot support and configuration.
  • docs/channels/nextcloud-talk.md
    • Added a document detailing Nextcloud Talk support and configuration.
  • docs/channels/nostr.md
    • Added a document on Nostr DM channel support.
  • docs/channels/pairing.md
    • Added a document providing an overview of pairing for DM access and node joining.
  • docs/channels/signal.md
    • Added a document detailing Signal support via signal-cli.
  • docs/channels/slack.md
    • Added a document on Slack setup and runtime behavior.
  • docs/channels/synology-chat.md
    • Added a document detailing Synology Chat webhook setup.
  • docs/channels/telegram.md
    • Added a document on Telegram bot support and configuration.
  • docs/channels/tlon.md
    • Added a document on Tlon/Urbit support and configuration.
  • docs/channels/troubleshooting.md
    • Added a document for channel-level troubleshooting.
  • docs/channels/twitch.md
    • Added a document on Twitch chat bot configuration.
  • docs/channels/whatsapp.md
    • Added a document detailing WhatsApp channel support and operations.
  • docs/channels/zalo.md
    • Added a document on Zalo bot support and configuration.
  • docs/channels/zalouser.md
    • Added a document on Zalo Personal account support.
  • docs/ci.md
    • Added a document explaining the CI pipeline.
  • docs/cli/acp.md
    • Added a document detailing the ACP CLI for IDE integrations.
  • docs/cli/agent.md
    • Added a document on the agent CLI for running agent turns.
  • docs/cli/agents.md
    • Added a document on the agents CLI for managing isolated agents.
  • docs/cli/approvals.md
    • Added a document on the approvals CLI for managing exec approvals.
  • docs/cli/backup.md
    • Added a document on the backup CLI for creating local backup archives.
  • docs/cli/browser.md
    • Added a document on the browser CLI for managing browser control.
  • docs/cli/channels.md
    • Added a document on the channels CLI for managing channel accounts.
  • docs/cli/clawbot.md
    • Added a document on the clawbot CLI as a legacy alias namespace.
  • docs/cli/completion.md
    • Added a document on the completion CLI for generating shell completion scripts.
  • docs/cli/config.md
    • Added a document on the config CLI for managing configuration.
  • docs/cli/configure.md
    • Added a document on the configure CLI for interactive configuration.
  • docs/cli/cron.md
    • Added a document on the cron CLI for scheduling background jobs.
  • docs/cli/daemon.md
    • Added a document on the daemon CLI as a legacy alias for gateway service management.
  • docs/cli/dashboard.md
    • Added a document on the dashboard CLI for opening the Control UI.
  • docs/cli/devices.md
    • Added a document on the devices CLI for managing device pairing.
  • docs/cli/directory.md
    • Added a document on the directory CLI for channel lookups.
  • docs/cli/dns.md
    • Added a document on the DNS CLI for wide-area discovery helpers.
  • docs/cli/docs.md
    • Added a document on the docs CLI for searching the live documentation index.
  • docs/cli/doctor.md
    • Added a document on the doctor CLI for health checks and guided repairs.
  • docs/cli/gateway.md
    • Added a document on the gateway CLI for running and querying gateways.
  • docs/cli/health.md
    • Added a document on the health CLI for checking gateway health.
  • docs/cli/hooks.md
    • Added a document on the hooks CLI for managing agent hooks.
  • docs/cli/index.md
    • Added an index document for the CLI reference.
  • docs/cli/logs.md
    • Added a document on the logs CLI for tailing gateway logs.
  • docs/cli/memory.md
    • Added a document on the memory CLI for managing semantic memory.
  • docs/cli/message.md
    • Added a document on the message CLI for sending messages and channel actions.
  • docs/cli/models.md
    • Added a document on the models CLI for model discovery and configuration.
  • docs/cli/node.md
    • Added a document on the node CLI for running a headless node host.
  • docs/cli/nodes.md
    • Added a document on the nodes CLI for managing paired nodes.
  • docs/cli/onboard.md
    • Added a document on the onboard CLI for the interactive onboarding wizard.
  • docs/cli/pairing.md
    • Added a document on the pairing CLI for approving pairing requests.
  • docs/cli/plugins.md
    • Added a document on the plugins CLI for managing gateway plugins.
  • docs/cli/qr.md
    • Added a document on the QR CLI for generating iOS pairing QR codes.
  • docs/cli/reset.md
    • Added a document on the reset CLI for resetting local state.
  • docs/cli/sandbox.md
    • Added a document on the sandbox CLI for managing sandbox containers.
  • docs/cli/secrets.md
    • Added a document on the secrets CLI for managing SecretRefs.
  • docs/cli/security.md
    • Added a document on the security CLI for auditing security configurations.
  • docs/cli/sessions.md
    • Added a document on the sessions CLI for listing stored sessions.
  • docs/cli/setup.md
    • Added a document on the setup CLI for initializing config and workspace.
  • docs/cli/skills.md
    • Added a document on the skills CLI for inspecting skills.
  • docs/cli/status.md
    • Added a document on the status CLI for diagnostics.
  • docs/cli/system.md
    • Added a document on the system CLI for system events and heartbeats.
  • docs/cli/tui.md
    • Added a document on the TUI CLI for the terminal UI.
  • docs/cli/uninstall.md
    • Added a document on the uninstall CLI for removing the gateway service.
  • docs/cli/update.md
    • Added a document on the update CLI for updating OpenClaw.
  • docs/cli/voicecall.md
    • Added a document on the voicecall CLI for the voice-call plugin.
  • docs/cli/webhooks.md
    • Added a document on the webhooks CLI for webhook helpers.
  • docs/concepts/agent-loop.md
    • Added a document detailing the agent loop lifecycle.
  • docs/concepts/agent-workspace.md
    • Added a document explaining the agent workspace.
  • docs/concepts/agent.md
    • Added a document on the agent runtime.
  • docs/concepts/architecture.md
    • Added a document outlining the gateway architecture.
  • docs/concepts/compaction.md
    • Added a document explaining context window and compaction.
  • docs/concepts/context.md
    • Added a document defining context in OpenClaw.
  • docs/concepts/features.md
    • Added a document listing OpenClaw features.
  • docs/concepts/markdown-formatting.md
    • Added a document explaining markdown formatting for outbound channels.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8fb0b15799

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request significantly enhances the project's documentation by adding a comprehensive set of guides, agent instructions, and configuration details. The new README.md is a great improvement, providing a clear and structured overview. The added documentation for automation, channels, CLI, and concepts will be very valuable for users and contributors. I have one suggestion to improve the clarity of the setup instructions in the README.md for users on different operating systems.

Comment thread README.md
@johansabent

Copy link
Copy Markdown
Owner Author

/review

@johansabent

Copy link
Copy Markdown
Owner Author

@copilot-pull-request-reviewer @chatgpt-codex-connector @gemini-code-assist /review I have addressed all the feedback and resolved the threads. Please re-review the PR.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a comprehensive documentation suite and the initial implementation for the DOC-KB-RAG system. The changes include documentation for setup, architecture, and CLI commands, as well as Python scripts for document ingestion and querying using a RAG pipeline with Supabase and Gemini models. I have reviewed the added documentation and code and have not identified any issues of medium or higher severity.

@johansabent
johansabent merged commit 0c145ad into main Mar 17, 2026
2 checks passed
@johansabent
johansabent deleted the feat/setup-rag-docs branch March 17, 2026 07:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants