v0.3.0
Context CLI v0.3.0
This release is a major evolution in how ctx works with AI agents. Slash commands are replaced by a full Agent Skills system, a new autonomous mode (--ralph) enables unattended operation, and a comprehensive suite of hooks keeps context healthy during long sessions. Under the hood, two consolidation sweeps eliminated magic strings, deshadowed variables, and split large files into focused modules.
Canonical Release Narrative
ctx v0.3.0: The Discipline Release
Highlights
- Agent Skills System: All 21 slash commands migrated to directory-based skills following the agentskills.io spec, each with frontmatter, quality gates, usage examples, and "When NOT to Use" triggers
- Autonomous Loop Mode:
ctx init --ralphcreates PROMPT.md and IMPLEMENTATION_PLAN.md configured for independent agent operation without clarifying questions - Context Health Hooks: New
UserPromptSubmithooks for context size checkpoints, backup staleness warnings, and a deployedcontext-watch.shmonitor tool - Code Consolidation: Two systematic sweeps replaced magic strings/numbers with constants, deshadowed variables across all packages, and split large files (journal/site.go into 12 files, recall/export.go into 4 files)
Features
- Convert all
.claude/commands/*.mdto.claude/skills/*/SKILL.mddirectory structure with structured frontmatter - Add
ctx init --ralphflag for autonomous agent mode with dedicated PROMPT.md template - Add context size checkpoint hook (
check-context-size.sh) with adaptive reminder cadence (silent for 15 prompts, then every 5th, then every 3rd) - Add
ctx-context-monitorskill teaching agents how to respond to checkpoint signals - Deploy
context-watch.shto.context/tools/viactx initfor all users - Add backup staleness hook (
check-backup-age.sh) warning when backups are >2 days old - Add global backup support (
hack/backup-global.sh) for~/.claude/withmake backup-global - Add
/consolidateskill with 9 project-specific drift checks - Add
/brainstormskill for design-before-implementation workflow - Add
ctx agent --cooldownand--sessionflags with tombstone debounce - Add "Update When" triggers to all context file templates (CONSTITUTION, TASKS, CONVENTIONS, etc.)
- Add Anti-Patterns section to AGENT_PLAYBOOK.md (Stale Context, Context Sprawl, Implicit Context, etc.)
- Deploy
Makefile.ctxtemplate viactx init(amend, never overwrite) - Add journal site
/files/index with popular/long-tail split - Add journal site
/types/pages grouping sessions by type - Change
ctx recall exportdefault to update mode preserving YAML frontmatter (--skip-existingfor old behavior,--forcefor full overwrite) - Add 7 deterministic normalize scripts for journal fence/metadata repair
- Add
ctx-journal-normalizeskill for clean journal site rendering
Bug Fixes
- Fix all 137 journal files: complete fence reconstruction (8 broken files with stray markers)
- Fix
consolidateToolRunsroot cause:(xN)on its own line creating broken fences - Fix session export reliability and browser performance
- Resolve all golangci-lint v2 errcheck and staticcheck warnings
- Remove unnecessary
nlparameter inrecall/fmt.go - Fix task insertion placement in TASKS.md
- Restore
release-notesandreleaseskills dropped during commands-to-skills migration
Refactoring
- Replace magic strings/numbers with config constants (
ExtJSONL,IssueType*,DefaultSessionFilename,ClaudeField*, session headings, template strings) - Deshadow
err/okvariables with descriptive names across drift, recall, session, task, context, and validation packages - Split
journal/site.gointo 12 focused files; splitrecall/export.gointo 4 files - Extract error constructors to
err.gofiles - Move Claude raw types to
types.gowith project-standard godoc - Extract hook matcher into
internal/claude/matcher.go - Simplify
defer file.Close()patterns - Replace
cmd.Printf("\n")withcmd.Println(fmt.Sprintf(...))
CI
- Upgrade to golangci-lint v2 for CI compatibility
- Fix goinstall mode removal and v2 security warnings
Documentation
- Add architecture docs and remove DRIFT.md (superseded by
/consolidateskill) - Add quick-reference table to CLI reference
- Add copyright headers to normalize scripts
- Add 3 blog posts: "The Attention Budget", "You Can't Import Expertise", "The Anatomy of a Skill That Works"
- Add blog post topic frontmatter to all 6 existing posts
- Add journal pipeline docs (
session-journal.md)
Full changelog: v0.2.0...v0.3.0
