Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ cd cortex && npm install --omit=dev
| `retrievalMode` | `string` | `fast` | Retrieval mode: `auto`, `fast`, or `thorough` |
| `companyBrainContextMode` | `string` | `off` | Opt-in Company Brain context injection: `off` or `auto` |
| `companyBrainContextAccountId` | `string` | — | Stable account ID for account-scoped Company Brain context |
| `companyBrainContextAccountKey` | `string` | — | Stable business account key, for example `company:electricsheep-internal` |
| `companyBrainContextSourceScope` | `string` | — | Optional account scope filter: `internal` or `customer_accounts` |
| `companyBrainContextSearch` | `string` | — | Account search text used when no account ID is configured |
| `companyBrainContextFactsLimit` | `number` | `25` | Max account facts requested for Company Brain context |
| `companyBrainContextEventsLimit` | `number` | `10` | Max action-readiness events requested for Company Brain context |
Expand Down Expand Up @@ -138,9 +140,20 @@ memory tools. Use `cortex_entities_list` first to resolve entity IDs, then
For customer/account workspaces, `companyBrainContextMode: "auto"` enables a
separate `<company-brain-context>` block. The block is distinct from
`<relevant-memories>`, resolves the account through the Company Brain account
path even when a stable account ID is configured, preserves cited evidence and
action-readiness metadata, surfaces open follow-ups, and marks approval-gated
items as read-only operator-review candidates rather than executable actions.
path even when a stable account ID or account key is configured, preserves cited
evidence and action-readiness metadata, surfaces open follow-ups, and marks
approval-gated items as read-only operator-review candidates rather than
executable actions.

For the ElectricSheep internal beta, configure the internal account explicitly:

```jsonc
{
"companyBrainContextMode": "auto",
"companyBrainContextSourceScope": "internal",
"companyBrainContextAccountKey": "company:electricsheep-internal"
}
```

## How It Works

Expand Down
25 changes: 24 additions & 1 deletion dist/__tests__/company-brain-context-format.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/__tests__/company-brain-context-format.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions dist/__tests__/company-brain-tools.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/__tests__/company-brain-tools.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/__tests__/plugin-manifest-parity.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading