← ClaudeAtlas

telloncelisted

Use when handling any user message; records and enforces user preferences with Codex-native audit/wrapper support.
YujunZhou/tellonce · ★ 8 · AI & Automation · score 76
Install: claude install-skill YujunZhou/tellonce
# Tellonce for Codex ## 统一记忆 Upsert - 三个平台共用 `<project_root>/.tellonce/memory/`。SQLite 是唯一真值;旧的 `.codex/tellonce/memories/active` 只作为首次迁移来源。 - 持久偏好只能通过 `shared_lib/memory_upsert.py enqueue` 入队;agent 主动记录使用 `python <skill_dir>/shared_lib/memory_upsert.py enqueue --manual --force --source-text "<完整原始用户消息>"`,自动 hook 已启用时会跳过重复入队。复杂多行消息可改用 `--request-file <json>`。禁止直接写 active Markdown;`promote_candidate()` 也只保留为入队兼容入口。 - UserPromptSubmit 前台只写 inbox 并启动 detached worker,立即返回。LLM 判断与 SQLite 提交都在后台进行,任何失败都不能阻塞用户。 - judge 在返回 `NEEDS_USER` 前,先用当前项目根目录、最近对话和 active rules 消解指代、scope 与 activation;这些 context 只能帮助解释本轮用户原话,不能单独授权持久化。只有剩余歧义会改变未来行为时才进入轻量 clarification 队列,并在后续上下文中只问一个简短问题;下一条明确回答可关闭对应 turn。 - 关闭自动 upsert 后 clarification 不再注入;过期项可用 `python <skill_dir>/shared_lib/memory_upsert.py dismiss --turn-key <id>` 手动移除。 - 自动 hook 默认关闭。设置 `memory_upsert_enabled=true` 或 `PT_MEMORY_UPSERT_ENABLED=1` 后才启用。 - 一次修改三平台:运行 `python <skill_dir>/shared_lib/memory_upsert.py enable-hooks`;`disable-hooks` 关闭,`hook-status` 查询。 Codex actually exposes the same hook system as Claude Code (`PreToolUse / PostToolUse / SessionStart / UserPromptSubmit / PermissionRequest`). The codex variant of tellonce installs into `~/.codex/skills/tellonce/` + `~/.codex/hooks.json` and uses native hooks for retrieval + enforcement. The wrapper path (`tellonce_codex exec --`) is still the way to enforce on the FINAL agent text response (codex doesn't fire a Stop hook for that; PostToolUse only sees tool inputs/outputs). ##