{"id":49653473,"url":"https://github.com/openclaw/ask-molty","last_synced_at":"2026-05-12T12:01:08.849Z","repository":{"id":355977319,"uuid":"1230488118","full_name":"openclaw/ask-molty","owner":"openclaw","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-06T21:10:22.000Z","size":106,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-10T10:11:27.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openclaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["moltbot"]}},"created_at":"2026-05-06T03:33:52.000Z","updated_at":"2026-05-09T01:01:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/openclaw/ask-molty","commit_stats":null,"previous_names":["openclaw/ask-molty"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openclaw/ask-molty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Fask-molty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Fask-molty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Fask-molty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Fask-molty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openclaw","download_url":"https://codeload.github.com/openclaw/ask-molty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclaw%2Fask-molty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32891966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-06T06:01:54.082Z","updated_at":"2026-05-11T11:01:17.799Z","avatar_url":"https://github.com/openclaw.png","language":"TypeScript","funding_links":["https://github.com/sponsors/moltbot"],"categories":[],"sub_categories":[],"readme":"# Ask Molty\n\nAsk Molty is the OpenClaw documentation agent.\n\nIt owns:\n\n- the Cloudflare Worker behind `docs-chat.openclaw.ai`\n- the system prompt and tool loop\n- static workspace export for docs, source, and GitHub issues/PRs\n- retrieval artifacts consumed by the Worker\n\nThe docs mirror stays focused on publishing documentation. Ask Molty owns the agent runtime.\n\n## Architecture\n\n`scripts/export-workspace.ts` builds a flat, read-only workspace:\n\n```text\ndist/ask-molty/\n  docs-search.jsonl\n  source-search.jsonl\n  github-search.jsonl\n  workspace-manifest.json\n  workspace/\n    docs/*.md\n    source/*.md\n    github/*.md\n```\n\nThe Worker does deterministic candidate retrieval, mounts the best docs/source/GitHub files into a small in-memory workspace, then lets the model call:\n\n- `search_workspace`\n- `read_workspace`\n- `list_workspace`\n- `run_shell`\n\nDocs are canonical. Source is implementation truth. GitHub issues/PRs are discussion and status evidence.\n\n`run_shell` is deliberately fake and read-only. It supports `rg`, `grep`, `cat`, `head`, `ls`, and `find` over mounted files only. No pipes, redirects, writes, network, or process execution.\n\n## Local Build\n\n```bash\nnpm install\nnpm run check\n```\n\nThe exporter defaults to sibling/local paths:\n\n- docs mirror: `../docs-openclaw`\n- OpenClaw source: `../clawdbot5`\n- gitcrawl store DB: `~/.config/gitcrawl/stores/gitcrawl-store/data/openclaw__openclaw.sync.db`\n\nOverride with:\n\n```bash\nASK_MOLTY_DOCS_REPO=../docs-openclaw \\\nASK_MOLTY_SOURCE_REPO=../clawdbot5 \\\nASK_MOLTY_GITCRAWL_DB=~/.config/gitcrawl/stores/gitcrawl-store/data/openclaw__openclaw.sync.db \\\nnpm run export\n```\n\nThe generated workspace can be large because GitHub threads are sharded into markdown files. The Worker never downloads all of it per request; it loads small JSONL indexes, selects candidates, and only mounts the best matching docs/source/GitHub files.\n\n## Deploy\n\nThe Worker expects `OPENAI_API_KEY` as a Cloudflare Worker secret. The default model is `chat-latest`, which OpenAI maps to GPT-5.5 Instant in the API.\n\n```bash\nnpm run deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclaw%2Fask-molty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclaw%2Fask-molty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclaw%2Fask-molty/lists"}