typebasedio bbc41646ee
Release / release (push) Successful in 27s
feat(release): add Gitea release-publishing pipeline
- Add scripts/build-release.sh: cross-compile linux+windows amd64 with
  ldflags injecting main.version and main.commit, write
  checksums-sha256.txt and release-manifest.json (full commit SHA).
- Add scripts/release-check.sh: local mirror of CI (test, vet, build,
  --version substring check); falls back to Windows artifact when run
  on a Windows host where the Linux binary can't exec.
- Wire main.version / main.commit -> cmd.SetVersionInfo. Default to
  "dev" / "" so local builds without ldflags still produce a
  sensible string. Output format: single line
  'ctask <version> (<short-sha>)' or 'ctask <version>' / 'ctask dev'.
- Add .gitea/workflows/release.yml: triggered on v* tags, runs-on
  ctask-release (golang:1.26-bookworm). Tag parsed from gitea.ref
  (not gitea.ref_name). Pure shell + Gitea API; no actions/checkout,
  no setup-go, no third-party release action. Installs jq at job
  start. RC tags are deletable+recreatable; final tags are immutable.
  Verify step downloads published assets, sha256sum -c's, and runs
  --version.
- notes.md: log Phase 0/2/3 + version-injection completion.
2026-05-20 15:19:59 -04:00
2026-04-06 10:05:27 -04:00
2026-04-06 10:05:27 -04:00
2026-04-06 10:05:27 -04:00
2026-04-06 10:05:27 -04:00

ctask

A local CLI that creates and manages named AI-agent task workspaces.

ctask gives developers dedicated directories with consistent structure, visible session identity, environment context injection, and automatic session logging -- so you can start, resume, and organize AI-assisted work more safely and predictably.

Status

v0.6.0 -- local use, not published to any package registry. Windows-primary, cross-platform design.

Key Features

  • Named workspaces with consistent layout (task metadata, agent instructions, notes, context, output, logs)
  • Session traceability -- automatic file-change snapshot logging on every session
  • Agent-agnostic -- built-in profiles for Claude Code and OpenCode, plus a custom escape hatch for any CLI agent or shell
  • Global config -- optional user-level config file for defaults (agent, roots, session mode), with source attribution in doctor
  • Session recovery -- PID-aware lease detection: a workspace whose owner process has died is recovered immediately, with no stale-wait
  • Query resolution -- find workspaces by name, slug, or substring
  • Status line -- persistent session context inside Claude Code's UI
  • Doctor -- verify setup, diagnose configuration problems, and validate agent setup
  • Safe delete -- active workspace protection prevents accidental data loss

Install (Windows)

cd C:\Users\Warren\claude_tasks\ctask
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/install.ps1

Installs to %LOCALAPPDATA%\ctask\bin. Open a new terminal after install.

See docs/install.md for full details.

Quick Start

# Verify setup
ctask doctor

# Create a new task workspace and launch Claude Code
ctask new "fix auth bug"

# List recent workspaces
ctask list

# Resume where you left off
ctask last

# Or resume a specific workspace
ctask resume auth-bug

Commands

Command Description
ctask new [title] Create a new workspace and launch the agent
ctask list Show recent workspaces
ctask resume <query> Reopen a workspace and launch the agent
ctask last Resume the most recently updated workspace
ctask open <query> Open a workspace directory without launching the agent
ctask attach <workspace> Attach to a workspace via tmux (persistent session)
ctask info <query> Display workspace metadata and path
ctask path <query> Print the absolute filesystem path of a workspace
ctask notes <query> Print a workspace's notes.md to stdout
ctask archive <query> Mark a workspace as archived
ctask restore <query> Un-archive a workspace (set status back to active)
ctask agents check [workspace] Validate the agent configuration for a workspace
ctask doctor Verify ctask setup and diagnose configuration problems
ctask delete <query> Permanently remove a workspace

See docs/commands.md for full usage.

Status Line

ctask includes a status-line helper for Claude Code that shows session context at the bottom of the UI:

(ctask:fix-auth-bug|local) C:\Users\Warren\ai-workspaces\general\2026-04-06_fix-auth-bug

Run ctask doctor to check if the status line is configured. See docs/install.md for setup.

Uninstall

cd C:\Users\Warren\claude_tasks\ctask
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/uninstall.ps1

Removes ctask files only. Your workspaces and task data are never touched.

Troubleshooting

See docs/troubleshooting.md.

S
Description
No description provided
Readme 544 KiB
v0.6.1 Latest
2026-05-21 11:02:21 +00:00
Languages
Go 96.6%
Shell 1.7%
PowerShell 1.5%
Just 0.2%