Skip to content

feat: add ATLAS knowledge base integration#114

Closed
chipoto69 wants to merge 2 commits into
openclaw:mainfrom
chipoto69:feat/atlas-integration
Closed

feat: add ATLAS knowledge base integration#114
chipoto69 wants to merge 2 commits into
openclaw:mainfrom
chipoto69:feat/atlas-integration

Conversation

@chipoto69
Copy link
Copy Markdown

Summary

  • Add atlas_query tool with 5 actions: search, concept, insights, actions, stats
  • Register tool in clawdis-tools.ts
  • Add ATLAS skill documentation for agent usage
  • Add ATLAS Bridge Guide for Phase 2 preparation (Push Path)

Phase 1: Pull Path (This PR)

Enables Clawdis agent to query the user's ATLAS personal knowledge base via HTTP API.

New Files

File Description
src/agents/atlas-tool.ts ATLAS query tool implementation
skills/atlas/SKILL.md Agent documentation for ATLAS usage
docs/ATLAS_BRIDGE_GUIDE.md Guide for ATLAS team to prepare Phase 2

Tool Actions

Action Description Required Params
search Semantic search across knowledge query
concept Get concept details concept_name or query
insights Get curated insights query (optional)
actions Get pending action items none
stats Get knowledge base overview none

Phase 2: Push Path (Future)

The included docs/ATLAS_BRIDGE_GUIDE.md documents how the ATLAS team should prepare for webhook-based event notifications (new insights, notes, content ingested, agent finished).

Testing

  1. Start ATLAS: atlas serve (port 8888)
  2. Start Clawdis gateway
  3. Ask agent: "What do I know about [topic]?"

Environment Variables

ATLAS_URL=http://localhost:8888  # Default, configurable

- Add atlas_query tool with 5 actions: search, concept, insights, actions, stats
- Register tool in clawdis-tools.ts
- Add ATLAS skill documentation for agent usage
- Add ATLAS Bridge Guide for Phase 2 preparation

This implements Phase 1 (Pull Path) of the ATLAS integration.
Phase 2 (Push Path via webhooks) is documented in docs/ATLAS_BRIDGE_GUIDE.md
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@steipete
Copy link
Copy Markdown
Contributor

steipete commented Jan 3, 2026

🦞 Codex Review

Findings

  • ⚠️ Medium: No request timeout/abort; a stalled ATLAS call can hang the agent tool indefinitely. Recommend AbortSignal.timeout/AbortController with a default (match gateway 10s). (src/agents/atlas-tool.ts:71)
  • ℹ️ Low: ATLAS_URL not trimmed/normalized; trailing slash/whitespace yields //api/... or invalid URL. Normalize once (trim + strip trailing /).
  • ℹ️ Low: limit not sanitized; NaN/negative/float flows into query/body. Clamp + floor like other gateway option parsing.

Open Questions

  • Do ATLAS endpoints accept limit on /api/actions and /api/search/insights? Guide lists bare endpoints.

Summary
Adds atlas_query tool, registers it in createClawdisTools, plus new skill and bridge guide.

Review by Clawd 🦞 via Codex

@steipete
Copy link
Copy Markdown
Contributor

steipete commented Jan 3, 2026

Thanks Rudlord! Not quite sure about this yet, need to spend more time researching atlas. Something local like the QMD system we already have would be nicer, or sth that can extend clawdis via hooks so this is user-addable.

pi has a great plugin system, might steal from that.

@steipete
Copy link
Copy Markdown
Contributor

steipete commented Jan 3, 2026

Wait I can't even sign up for this service? only book a call?

@steipete steipete closed this Jan 4, 2026
@steipete
Copy link
Copy Markdown
Contributor

steipete commented Jan 4, 2026

Thank you! This is better served as skill + cli for https://clawdhub.com/

@steipete steipete added the r: skill Auto-close: skills should be published on ClawHub, not added to core. label Jan 4, 2026
dgarson referenced this pull request in dgarson/clawdbot Feb 7, 2026
feat(meridia): pluggable DB backend interface (M2.5)
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
Tasks completed: 2/2
- Task 1: Port commits #87 and #88 (cache eviction + SQLITE_BUSY regression test)
- Task 2: Port commits #114 and #149 (scope warning + model cache reuse)

SUMMARY: .planning/phases/12-memory-qmd-hardening/12-09-SUMMARY.md
slathrop referenced this pull request in slathrop/openclaw-js Feb 11, 2026
Tasks completed: 1/1
- Port cron flat params recovery + schedule fix (commit #114, CRON-03)

SUMMARY: .planning/phases/16-gateway-cron-ios/16-10-SUMMARY.md
@gabrielbernal
Copy link
Copy Markdown

Valid concern in theory. In practice it's a non-issue:

  1. Fallback is valid and provenopenai/gpt-5.2 is configured with a working API key and has 21/21 success rate in production today.

  2. Same end result with invalid fallbacks — with or without the fix, an invalid fallback model fails identically:

    • OLD: rate_limit → rotate 3 profiles (all rate limited, ~25s) → FailoverError → model-fallback → invalid fallback → fail
    • NEW: rate_limit → FailoverError → model-fallback → invalid fallback → fail
  3. Profile rotation was not helping — production logs confirm all 3-4 rotations returned rate_limit before fallback triggered. Rate limits are per-org on Anthropic, not per-API-key.

The only scenario where rotation would help is if a profile maps to a different org with separate rate limits. This is a niche config better served by the model-fallback chain (which already tries different providers).

github-actions Bot pushed a commit to Piboonsak/openclaw_github that referenced this pull request Mar 11, 2026
CyberSpencer pushed a commit to CyberSpencer/openclaw that referenced this pull request Mar 19, 2026
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0x666c6f added a commit to 0x666c6f/openclaw that referenced this pull request Mar 26, 2026
* fix(slack:PLA-940): harden sdk thread final replies

* fix(slack:PLA-940): streamline progress-only guard matching

* fix(slack:PLA-940): avoid counting suppressed finals as delivered

* refactor(slack:PLA-940): streamline final reply guard flow

* fix(slack:PLA-940): narrow progress-only good-prefix matches

* fix(slack:PLA-940): preserve ack cleanup on suppressed finals

* refactor(slack:PLA-940): dedupe progress-only prompt rules

* fix(slack:PLA-940): tighten final reply guard follow-ups

* refactor(slack:PLA-940): document prompt guards and split signal regexes

* test(slack:PLA-940): cover guard edge cases

* refactor(slack:PLA-940): clarify suppression guard naming

* test(slack:PLA-940): lock guard naming and ci intent

* fix(slack:PLA-940): harden final reply guard follow-ups

* fix(slack:PLA-940): tighten progress guard pattern matching

* test(slack:PLA-940): cover mixed substantive guard cases

* fix(slack:PLA-940): always settle post-dispatch cleanup

* fix(slack:PLA-940): refine progress guard signals

* refactor(slack:PLA-940): use shared silent reply token

* fix(slack:PLA-940): preserve dispatch errors in final reply guard

* fix(slack:PLA-940): harden final reply guard fallbacks

* fix(slack:PLA-940): tighten final guard input handling

* refactor(slack:PLA-940): document final guard heuristics

* test(slack:PLA-940): cover mention-prefixed progress replies

* refactor(slack:PLA-940): simplify guard regex constants

* fix(slack:PLA-940): harden guard failure logging

* fix(slack:PLA-940): suppress silent media captions

* test(slack:PLA-940): lock guard boundary coverage

* fix(slack:PLA-940): preserve guard failure context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r: skill Auto-close: skills should be published on ClawHub, not added to core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants