YujunZhou/tellonce / codex
tellonce
VerifiedUse to view, explain, correct, delete or reorganize the user's saved preferences, or to record one by hand when automatic recording is off; learning and rule injection otherwise run automatically through Codex hooks.
shared_lib/pt_platform.py
View on GitHub#!/usr/bin/env python3
"""Platform-specific values for the Codex Tellonce variant."""
import os
STATE_DIR_NAME = '.codex'
CLI_COMMAND = 'codex'
PREFER_MODEL_DEFAULT = ''
RETRIEVE_CLI_DEFAULT = 'codex'
JUDGE_MODEL_DEFAULT = ''
# Small model for background memory learning (one call per user prompt).
# Overridden by PT_MEMORY_UPSERT_MODEL; '' = the CLI's own default model.
MEMORY_UPSERT_MODEL_DEFAULT = 'gpt-6-luna'
INJECT_CADENCE = 'turns'
def _prefer_existing(new_path: str, legacy_path: str) -> str:
if os.path.exists(legacy_path) and not os.path.exists(new_path):
return legacy_path
return new_path
def default_state_dir(project_root: str) -> str:
return _prefer_existing(
os.path.join(project_root, '.codex', 'tellonce-state', 'runtime'),
os.path.join(project_root, '.claude', 'tellonce-state', 'runtime'),
)
def default_obs_log_dir(project_root: str) -> str:
return _prefer_existing(
os.path.join(project_root, '.codex', 'tellonce-state', 'obs_log'),
os.path.join(project_root, '.claude', 'tellonce-state', 'obs_log'),
)
def default_memory_dir(project_root: str) -> str:
return os.path.join(project_root, '.tellonce', 'memory')
def stop_block_exit_code() -> int:
value = os.environ.get('PT_STOP_BLOCK_EXIT')
return int(value) if value and value.strip().isdigit() else 0
def is_child_session() -> bool:
return os.environ.get('PT_CHILD_SESSION', '').strip().lower() in (
'1', 'true', 'yes', 'on'
)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |