Skip to content

feat: add Company Brain plugin tools#28

Merged
100yenadmin merged 1 commit into
mainfrom
codex/company-brain-tools
May 8, 2026
Merged

feat: add Company Brain plugin tools#28
100yenadmin merged 1 commit into
mainfrom
codex/company-brain-tools

Conversation

@100yenadmin
Copy link
Copy Markdown
Member

Summary

  • adds explicit company_brain_accounts_list, company_brain_account_brief, company_brain_account_timeline, and company_brain_query tools
  • implements the tools through Cortex HTTP /api/v1/company-brain/* contracts rather than shared plugin storage or generic memory search
  • preserves raw Cortex response fields so citations, insufficient_evidence, verification_status, requires_approval, and action_readiness survive for agents
  • adds a small live canary command and operator docs for account-scoped Company Brain usage

Targets #26 and #27.

Verification

  • npm ci completed; npm audit reports existing dependency vulnerabilities on the base repo
  • npm test -> memory-context-format tests passed, company-brain-tools tests passed
  • node --check scripts/company-brain-canary.mjs

Notes

The tool schemas intentionally do not expose an arbitrary owner_id parameter to the agent. Ownership stays configured/auth-resolved by Cortex, with the configured ownerId used as an owner-bound selector for self-hosted or owner-bound API-key deployments.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Warning

Rate limit exceeded

@100yenadmin has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minute and 29 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2e1a601a-18bd-4f26-85dd-5af8e19b45b9

📥 Commits

Reviewing files that changed from the base of the PR and between 5094552 and 14ebea3.

⛔ Files ignored due to path filters (9)
  • dist/__tests__/company-brain-tools.test.d.ts is excluded by !**/dist/**
  • dist/__tests__/company-brain-tools.test.d.ts.map is excluded by !**/dist/**, !**/*.map
  • dist/__tests__/company-brain-tools.test.js is excluded by !**/dist/**
  • dist/__tests__/company-brain-tools.test.js.map is excluded by !**/dist/**, !**/*.map
  • dist/index.d.ts is excluded by !**/dist/**
  • dist/index.d.ts.map is excluded by !**/dist/**, !**/*.map
  • dist/index.js is excluded by !**/dist/**
  • dist/index.js.map is excluded by !**/dist/**, !**/*.map
  • dist/openclaw.plugin.json is excluded by !**/dist/**
📒 Files selected for processing (7)
  • README.md
  • docs/company-brain-tools.md
  • openclaw.plugin.json
  • package.json
  • scripts/company-brain-canary.mjs
  • src/__tests__/company-brain-tools.test.ts
  • src/index.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/company-brain-tools

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread scripts/company-brain-canary.mjs Fixed
@100yenadmin 100yenadmin force-pushed the codex/company-brain-tools branch from 9ea6d09 to 14ebea3 Compare May 8, 2026 08:28
@100yenadmin 100yenadmin marked this pull request as ready for review May 8, 2026 08:30
@100yenadmin 100yenadmin merged commit 587ef29 into main May 8, 2026
3 checks passed
@100yenadmin 100yenadmin deleted the codex/company-brain-tools branch May 8, 2026 08:39
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.

2 participants