- Kimi (Moonshot AI) provider —
llm: kimiis now a first-class config option. SetMOONSHOT_API_KEYand the engine auto-configures againstapi.moonshot.cn/v1. Optionally override the model viallm_options.kimi_model(default:kimi-k2-0711-preview). - Long-context dream strategy —
DreamOptions.strategy: 'long-context'replaces the Phase 4 (Connect) N² pairwise edge discovery with a single LLM call that sees the full memory graph (up to 200 nodes + all existing edges). The model finds transitive patterns, cross-domain contradictions, and causal chains that the sequential approach structurally cannot detect. Works with any large-context model;long_context_memory_limitcontrols the cap (default: 200). - Variable TTL for ops entries —
ops_appendnow uses type-based expiry:log90 days,instruction/handoff14 days,milestone180 days,decision365 days. Previously all entries expired after 30 days. - Expanded ops schema —
ops_appendacceptssession_type,seed_type,blocked,next,instruction_meta, andhandoff_metafields.ops_queryreturns these fields.ops_updatesupportsnextandblocked. - Thread creation warnings —
thread_createnow returns warnings whennext_steporprojectis missing, guiding agents toward higher-quality thread creation.
- Timing-safe authentication — REST server auth comparison uses
crypto.timingSafeEqualto prevent timing attacks. - Plugin path sandboxing — Plugin loader validates import paths against trusted directories, blocking loads from untrusted locations.
- REST tool blocklist — Destructive tools (
forget,dream,evolve,resolve,thread_resolve) are blocked from the generic REST/api/tools/:nameendpoint. They remain available via MCP (direct agent access). - SQLite namespace validation — Namespace names must be alphanumeric/underscore only, preventing SQL injection via namespace parameter.
- Parameterized SQLite queries —
LIMITclause in ops queries is now parameterized instead of interpolated. - API key config warning —
config-loaderwarns whenopenai_api_keyis found in config files instead of environment variables.
All cognitive tools are now built directly into cortex-engine. No separate plugin installs needed.
Previously, extending the engine required separate npm packages:
npm install @fozikio/tools-threads
npm install @fozikio/tools-journal
# etc.Now, all 57 tools come with the core install:
npm install @fozikio/cortex-engineThe following packages are now included in cortex-engine core and are no longer required as separate installs for v1.0.0+:
| Package | Tools Added |
|---|---|
@fozikio/tools-threads |
thread_create, thread_update, thread_resolve, threads_list |
@fozikio/tools-journal |
journal_write, journal_read |
@fozikio/tools-content |
content_create, content_list, content_update |
@fozikio/tools-evolution |
evolve, evolution_list |
@fozikio/tools-social |
social_read, social_update, social_draft, social_score |
@fozikio/tools-graph |
graph_report, link, suggest_links, suggest_tags |
@fozikio/tools-maintenance |
retrieve, forget, find_duplicates, sleep_pressure, consolidation_status, retrieval_audit |
@fozikio/tools-vitals |
vitals_get, vitals_set, sleep_pressure |
@fozikio/tools-reasoning |
surface, ruminate, notice, intention, resolve, query_explain, contradict |
- 57 cognitive tools (up from 27 in v0.x)
- All tools live in individual files under
src/tools/— easier to read, extend, and contribute to - Richer implementations:
observenow auto-scores via LLM,predictuses temporal reranking - New store methods:
countDocuments()anddelete()on both SQLite and Firestore backends - Shared
_helpers.tsfor argument parsing and event firing across all tools
If you were using separate @fozikio/tools-* packages, simply:
- Update cortex-engine:
npm install @fozikio/cortex-engine@latest - Remove the separate plugin installs — tools are now built-in
- Remove plugin references from your
agent.yamlconfig (if any)
The plugin system still works for custom extensions you've built yourself.
All tools can be enabled/disabled via the cognitive_tools config key in agent.yaml. By default, all 57 tools are enabled.
- Final v0.x release before plugin absorption
- Published to npm as baseline before v1.0.0 consolidation
See git log for full history.