contextdb-autopilot

contextdb-autopilot is a skill for Claude Code, Codex from rexleimo/aios. It costs 60 tokens per session (1,420 once invoked), scanned A, original, MIT.

An automatic session record for ContextDB, a system that stores context between coding-agent sessions. It manages session events, checkpoints, and continuity files without inserting stored text into prompts automatically.

In plain words
What is it for?
Use it to initialize ContextDB sessions, record session changes, save checkpoints, and retrieve continuity information when needed.
Why use it?
It helps preserve durable task state across sessions while keeping the agent's prompt limited to the instructions explicitly provided.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rexleimo/aios/contextdb-autopilot
Any agent
npx skills add rexleimo/aios --skill contextdb-autopilot
Clone the repo
git clone --depth 1 https://github.com/rexleimo/aios

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contextdb-autopilot

README.md
[![agentmods](https://agentmods.dev/badge/skills/rexleimo/aios/contextdb-autopilot.svg)](https://agentmods.dev/skills/rexleimo/aios/contextdb-autopilot)
Your own site
<a href="https://agentmods.dev/skills/rexleimo/aios/contextdb-autopilot"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/contextdb-autopilot.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00060 $0.01420
Opus 5 $0.00030 $0.00710
Sonnet 5 $0.00012 $0.00284
Haiku 4.5 $0.00006 $0.00142

Measured 4d ago against content hash b8b5f0abf46d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

contextdb-autopilot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill-sources/contextdb-autopilot/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ContextDB Autopilot

Working directory: project root. Commands assume repo root; npm run contextdb runs from mcp-server/.

Overview

Use this skill only to persist and retrieve ContextDB state. ContextDB is no longer a prompt-injection layer.

Runtime rules:

  • Do not auto-inject ContextDB packets, continuity summaries, persona overlays, user overlays, route guides, or handoff prompts into model prompts.
  • Interactive startup may show a short local unfinished-task summary to the user; it must not pass that summary as model input.
  • One-shot mode sends only the explicit --prompt text to the selected client.
  • Durable workflow constraints belong in checked-in instruction files (AGENTS.md, CLAUDE.md, GEMINI.md) and repo-local skills.

Deprecated prompt-loading flags are intentionally unsupported:

  • --startup-mode inject
  • --context-mode
  • --limit
  • CTXDB_AUTO_PROMPT

If old docs, scripts, or user requests mention these as ways to preload memory, treat them as removed behavior. Use explicit search/timeline retrieval instead.

Script path: scripts/ctx-agent.sh

When to Use

  • You want cross-CLI memory continuity (codex, claude, gemini, opencode) in the same project.
  • You need automatic session creation, event logging, checkpoints, and continuity/handoff artifact writes.
  • You want to retrieve prior facts explicitly before continuing work.

Do not use this skill just to execute a normal coding task. Let the current Rex Capability Command select the task Provider.

Required Pattern

Use one-shot mode (--prompt) when you want automatic logging around a single explicit request. The prompt is not augmented with ContextDB state.

scripts/ctx-agent.sh --agent codex-cli --project rex-cli --prompt "继续上次任务,先列出你会读取哪些 handoff 文件"
scripts/ctx-agent.sh --agent claude-code --project rex-cli --prompt "记录这个检查点并总结下一步"
scripts/ctx-agent.sh --agent gemini-cli --project rex-cli --prompt "基于我明确给出的文件继续分析"
scripts/ctx-agent.sh --agent opencode-cli --project rex-cli --prompt "执行这个明确请求,不自动加载历史"

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 129 lines · 60 tokens per session scan A b8b5f0abf46d

Subscribe to this mod's changes

contextdb-autopilot is a skill published in the GitHub repository rexleimo/aios (52 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,420 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.