Skip to content

refactor(openclaw)!: remove the agent-sdk package and the agent_knowledge_* tools - #5462

Merged
nicoloboschi merged 3 commits into
mainfrom
refactor/openclaw-inline-agent-sdk
Oct 9, 2026
Merged

nicoloboschi merged 3 commits into
mainfrom
refactor/openclaw-inline-agent-sdk

Conversation

@nicoloboschi

@nicoloboschi nicoloboschi commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Deletes the @vectorize-io/hindsight-agent-sdk package and the openclaw agent_knowledge_* tools it powered. Openclaw keeps auto-recall and auto-retain only.

Why: the SDK was split out to be shared across harnesses, but openclaw was its only user. The knowledge tools behind it never left alpha: opt-in via enableKnowledgeTools, only turned on by the self-driving-agents CLI, built their own API client, and ignored the plugin's recall settings (#5057).

Removed

  • hindsight-tools/ (the SDK), scripts/release-tool.sh + its test, release-tool.yml, the test-hindsight-agent-sdk CI job, the SDK build steps in the openclaw CI jobs and integration release, the lint.sh and lockfile-check special cases, the root workspace entry
  • Openclaw: tool registration, resolveBankIdForKnowledgeTools, knowledgeToolDetails, registerTool/PluginToolContext typing, manifest contracts.tools, README and docs sections

Kept: enableKnowledgeTools stays in the manifest schema as deprecated and ignored (same as daemonIdleTimeout). The root schema has additionalProperties: false, so dropping the key would make OpenClaw reject existing configs that set it.

Closes #5057 (the tools it reports on are gone).

Openclaw: tsc clean, 379 tests pass; lint.sh and check-integration-lockfiles.sh pass.

…sight-tools/

The agent-sdk package was split out to be shared across harnesses, but
openclaw is its only user. Move its code into the plugin
(src/knowledge-tools.ts) and drop the package, its release script and
workflow, its CI job and the lint/lockfile special cases.

Openclaw's lockfile resolved the published 0.1.0 from npm, so the next
release also picks up the 0.1.1 fixes that never shipped.
… knowledge tools

- knowledge-tools.ts: factory comment now says index.ts wraps the tools; drop unused KnowledgeToolName export
- knowledge-pages docs (+ generated docs skill): agent_knowledge_* tools come from the OpenClaw plugin, not the agent SDK
… only

The opt-in knowledge tools (enableKnowledgeTools) never left alpha: they
built their own client, ignored the plugin's recall settings (#5057) and
were only enabled by the self-driving-agents CLI. Remove them, the bank
resolver and Code Mode details helper they used, the registerTool typing
and the manifest tool contracts.

enableKnowledgeTools stays in the schema as deprecated and ignored, like
daemonIdleTimeout: the root schema has additionalProperties: false, so
dropping it would reject existing configs that set it.
@nicoloboschi nicoloboschi changed the title refactor(openclaw): inline the agent-sdk knowledge tools, delete hindsight-tools/ refactor(openclaw)!: remove the agent-sdk package and the agent_knowledge_* tools Oct 9, 2026
@nicoloboschi
nicoloboschi merged commit d29b842 into main Oct 9, 2026
228 of 232 checks passed
@nicoloboschi
nicoloboschi deleted the refactor/openclaw-inline-agent-sdk branch October 9, 2026 14:30
@nicoloboschi nicoloboschi mentioned this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agent_knowledge_recall: default fact types exclude observations; prefer_observations/min_scores/budget not forwarded from plugin config

1 participant