Skip to content
Draft
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
20 changes: 20 additions & 0 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "tencentdb-agent-memory-local",
"interface": {
"displayName": "TencentDB Agent Memory Local"
},
"plugins": [
{
"name": "memory-tencentdb-codex",
"source": {
"source": "local",
"path": "./codex-plugin"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Productivity"
}
]
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@

---

## [Unreleased]

### ✨ 新功能

- **Codex adapter**:新增独立 `codex-plugin/` 适配层,覆盖 Codex CLI 与 Codex App 的生命周期 hook、MCP 检索工具、历史 JSONL 导入、工具输出 offload 与本地 Gateway 自动启动,并包含 Codex App 的额外适配与验证。

### 🔒 安全增强

- Gateway 默认要求 tokenized POST;无 token 时仅保留 loopback GET 探活,loopback tokenless POST 必须显式启用开发开关。
- Codex adapter 默认拒绝非 loopback Gateway URL,MCP 默认不暴露跨项目检索或完整 offload 内容。
- Gateway token 文件改为私有权限、owner 校验、atomic create;并发 autostart 不再可能生成互相覆盖的 token。
- Codex hook 诊断写入私有 `hook.log`,日志内容先经过敏感字段 redaction。

### 🐛 修复

- scoped memory/conversation search 会扩展候选窗口到 store 记录总数,避免当前项目结果被其他项目的前 500 个候选挤掉。
- `prepack` 不再因为已缺失的历史可选 bin-script 源目录而失败;存在对应 `tsconfig.json` 时仍会构建这些脚本。

## [0.3.4] - 2026-05-12

### 🐛 修复
Expand Down
30 changes: 30 additions & 0 deletions codex-plugin/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "memory-tencentdb-codex",
"version": "0.1.0",
"description": "Codex adapter for TencentDB Agent Memory: auto-recall, auto-capture, hook context injection, MCP search/offload tools, compaction flush, and seed through the TDAI Gateway.",
"author": {
"name": "TencentDB Agent Memory Codex adapter"
},
"license": "MIT",
"homepage": "https://github.com/Tencent/TencentDB-Agent-Memory",
"repository": "https://github.com/Tencent/TencentDB-Agent-Memory",
"interface": {
"displayName": "TencentDB Agent Memory",
"shortDescription": "Automatic recall, capture, flush, offload, and MCP search for Codex sessions through TencentDB Agent Memory.",
"longDescription": "Adds Codex hooks that recall relevant memory before each prompt, inject model-visible memory hints, capture completed turns, track tool and permission activity, offload large tool results into JSONL/ref/Mermaid artifacts, flush session memory after compaction or every N turns, expose memory and offload lookup as MCP tools, seed historical conversations, and manage a local TencentDB Agent Memory Gateway. The adapter supports Codex CLI and Codex App, with additional Codex App adaptation and validation.",
"developerName": "TencentDB Agent Memory Codex adapter",
"category": "Coding",
"capabilities": [
"Interactive",
"Read",
"Write"
],
"defaultPrompt": [
"Use TencentDB Agent Memory to recall prior context before answering and capture important session details after the turn."
],
"brandColor": "#2563EB"
},
"skills": "./skills/",
"mcpServers": "./.mcp.json",
"hooks": "./hooks/hooks.codex.json"
}
15 changes: 15 additions & 0 deletions codex-plugin/.mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"mcpServers": {
"tdai-memory": {
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/scripts/mcp-server.mjs"
],
"env": {
"TDAI_CODEX_AUTOSTART": "true"
},
"startup_timeout_sec": 20,
"tool_timeout_sec": 60
}
}
}
Loading