Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

All notable changes to TaskSeam will be documented here.

## 0.2.1 - 2026-11-21

- Fix setup for editor-only users. `taskseam setup` now finds the Claude Code and Codex
CLIs bundled inside the VS Code, VS Code Insiders, Cursor, and Windsurf extensions.
Previously it skipped any agent missing from `PATH`, so extension-only installs were
never connected.
- Add `taskseam demo`, a one-minute walkthrough in a temporary project that needs no
agents, accounts, or settings changes.
- Add `taskseam doctor`. It checks each agent's MCP registration and session-start hook
(including hooks pointing at a removed Python), locates the project or nearby projects
when an editor is opened in the wrong folder, summarizes project state, and warns when
`.taskseam/` is not ignored by Git. Every problem includes the command that fixes it.
- `taskseam setup` and `taskseam init` print plain-language next steps on standard error.
Their JSON output is unchanged.
- CI tests Python 3.9 on ubuntu-24.04 and uses Node 24 actions.

## 0.2.0 - 2026-11-21

Upgrade with `pipx upgrade taskseam` (or `python3 -m pip install -U taskseam`), then rerun
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ TaskSeam stores the current task state under the project's `.taskseam/` director

## Quick start

Install TaskSeam as an isolated command-line application:
Install TaskSeam as an isolated command-line application, then watch it work in a throwaway project:

```bash
pipx install taskseam
taskseam demo # one minute, no agents or settings touched
```

Standard pip installation also works:
Expand All @@ -45,7 +46,7 @@ Standard pip installation also works:
python3 -m pip install taskseam
```

Connect the supported agents installed on your computer:
Connect the supported agents installed on your computer. Their CLIs or VS Code/Cursor extensions are detected automatically:

```bash
taskseam setup
Expand All @@ -71,6 +72,7 @@ There are no routine TaskSeam commands after initialization. In Claude Code and
You rarely need these, because agents record state through their approval screen. They are useful when you want to check or correct that state yourself:

```bash
taskseam doctor # is everything connected? prints the fix if not
taskseam show # what every agent will see, in plain text
taskseam drop 3f9a --reason "Offline mode cut" # retire an item that no longer applies
taskseam export --agents-md # mirror state into AGENTS.md for non-MCP agents
Expand Down
23 changes: 22 additions & 1 deletion docs/DEMO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# End-to-end TaskSeam demo

## One minute, no setup

```bash
pipx install taskseam
taskseam demo
```

`taskseam demo` runs in a temporary directory and touches no agent settings. It shows the whole loop. A decision is made in one agent and replaced in another. A new chat then starts with only current state, a returning agent receives only what changed, and every item keeps its evidence. Record it with any screen recorder, or `asciinema rec -c "taskseam demo"`.

## With real agents

This demonstration proves that one agent can save accepted task state and another can receive only what changed. After setup, the user works through normal conversation rather than maintaining state with CLI commands.

## Prepare a clean project
Expand Down Expand Up @@ -42,12 +53,22 @@ Approve the proposed TaskSeam write.

## Return to the first agent

Start a new session with the first agent and ask:
Start a new session with the first agent. With the session-start hook installed by `taskseam setup`, you do not need to ask anything special. The session already contains the SQLite decision and the new deterministic-export constraint. To see only what changed, ask:

> Continue this TaskSeam task. Tell me only what changed since you last received it.

The response should contain the newly added deterministic-export constraint.

## Correct state

Tell either agent that a stored item no longer applies, for example:

> We are dropping the deterministic export requirement. Retire it in TaskSeam.

The agent proposes `taskseam_retire` with your reason. After approval, `taskseam show` no longer lists it, and other agents receive it as removed.

If anything does not appear, run `taskseam doctor` in the project folder.

The demo works for any project. The storage topic is example data rather than application logic.

Browser capture is a separate developer preview documented in [`browser-extension/README.md`](../browser-extension/README.md).
5 changes: 4 additions & 1 deletion docs/EDITOR_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ taskseam init

Then restart the editor or begin a new agent chat. Setup also installs a session-start hook, so Claude Code and Codex begin every session with the project's current state without being asked. In Codex, approve the new hook once with `/hooks`.

Check what agents will see at any time:
You do not need the separate `claude` or `codex` command-line tools: setup also finds the copies bundled inside the VS Code, Cursor, and Windsurf extensions.

Check the connection, and see what agents will receive:

```bash
taskseam doctor
taskseam show
```

Expand Down
10 changes: 9 additions & 1 deletion docs/QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Run once from any directory:
taskseam setup
```

TaskSeam detects Codex and Claude Code on `PATH` and configures the tools it finds. Missing tools are skipped.
TaskSeam detects Codex and Claude Code on `PATH` or inside the VS Code, Cursor, and Windsurf extensions, so no separate CLI install is needed. It registers the MCP server and installs a session-start hook for each tool it finds. Missing tools are skipped. Codex asks you to trust the new hook once in `/hooks`.

## 3. Initialize a project

Expand All @@ -39,6 +39,14 @@ taskseam init

TaskSeam names the initial task after the project directory, creates `.taskseam/` with a local SQLite database, and adds that directory to `.gitignore`.

## 4. Check the connection

```bash
taskseam doctor
```

Doctor checks each agent's MCP registration and session-start hook, finds the project, and summarizes its state. Each problem it reports comes with the command that fixes it. It also catches the most common mistake: an editor opened on a parent or sibling folder instead of the initialized project.

## 4. Work normally

Open the initialized project in the Codex or Claude Code editor interface and start a new chat. You can also start either agent from the project terminal.
Expand Down
2 changes: 1 addition & 1 deletion plugins/taskseam/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taskseam",
"version": "0.2.0",
"version": "0.2.1",
"description": "Continue versioned task state across AI agents with local evidence and per-agent deltas.",
"author": {
"name": "TaskSeam contributors",
Expand Down
2 changes: 1 addition & 1 deletion plugins/taskseam/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "taskseam",
"version": "0.2.0",
"version": "0.2.1",
"description": "Continue versioned task state across AI agents with local evidence and per-agent deltas.",
"author": {
"name": "Sai Sandeep Kantareddy",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "taskseam"
version = "0.2.0"
version = "0.2.1"
description = "Local-first task continuity across AI coding agents"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
3 changes: 2 additions & 1 deletion site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ <h1>Switch AI agents.<br><em>Keep the project.</em></h1>
<button id="copy" type="button">Copy</button>
</div>
<p class="availability">Prefer pip? <code>python3 -m pip install taskseam</code> works too.</p>
<p class="availability"><strong>One-time setup:</strong> install, run <code>taskseam setup</code>, then <code>taskseam init</code> in each participating project. Open that project in Codex or Claude Code for VS Code and work through normal conversation.</p>
<p class="availability"><strong>See it first:</strong> <code>taskseam demo</code> runs a one-minute walkthrough in a throwaway folder, with no agents or settings touched.</p>
<p class="availability"><strong>One-time setup:</strong> run <code>taskseam setup</code>, then <code>taskseam init</code> in each participating project. Every new Codex or Claude Code chat then starts with the project's current decisions automatically. Something missing? <code>taskseam doctor</code> shows what to fix.</p>
<p class="availability">Local SQLite · Open source · MCP compatible · No hosted account</p>
</section>

Expand Down
2 changes: 1 addition & 1 deletion taskseam/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Local task state and handoff tools."""

__version__ = "0.2.0"
__version__ = "0.2.1"
41 changes: 41 additions & 0 deletions taskseam/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def parser():
destination.add_argument("--agents-md", nargs="?", const="AGENTS.md", metavar="PATH",
help="Maintain a TaskSeam block inside AGENTS.md (or PATH)")
export.add_argument("--task-id", help="Defaults to the active workspace task")
demo = commands.add_parser("demo", help="One-minute walkthrough in a temporary project")
demo.add_argument("--pause", type=float, default=None, help="Seconds between steps")
doctor = commands.add_parser("doctor", help="Check agent connections and this project's state")
doctor.add_argument("--json", action="store_true", help="Print machine-readable results")
doctor.add_argument("--skip-mcp", action="store_true",
help="Do not ask agent CLIs whether the MCP server is registered")
hook = commands.add_parser("hook", help="Agent session hooks")
hook_sub = hook.add_subparsers(dest="action", required=True)
hook_sub.add_parser("session-start", help="Print state for a SessionStart hook (reads hook JSON)")
Expand All @@ -119,6 +125,26 @@ def _task_or_active(task_id, workspace):
return task_id


def _print_setup_summary(result, dry_run, tool=None):
names = {"claude-code": "Claude Code", "codex": "Codex"}
connected = [{"tool": tool, **result}] if tool else result.get("configured", [])
lines = []
for entry in connected:
if entry.get("tool"):
how = entry.get("found_via", "")
lines.append(" {} {}{}".format("would connect" if dry_run else "connected", names[entry["tool"]],
" (" + how + ")" if how and how != "PATH" else ""))
for entry in result.get("skipped", []):
lines.append(" skipped {}: {}".format(names.get(entry["tool"], entry["tool"]), entry["reason"]))
for entry in (result.get("session_hooks") or {}).get("hooks", []):
if entry["tool"] == "codex" and entry["status"] != "unchanged":
lines.append(" Codex: open /hooks once and trust the TaskSeam hook")
if lines:
print("\nTaskSeam setup" + (" (dry run, nothing written)" if dry_run else "") + ":\n" +
"\n".join(lines) + "\nNext: cd your-project && taskseam init, then `taskseam doctor`.",
file=sys.stderr)


def _agents_md_block(task, items):
from .render import brief
body = brief(task, items, header=False)
Expand All @@ -129,6 +155,17 @@ def _agents_md_block(task, items):
def main(argv=None):
args = parser().parse_args(argv)
try:
if args.command == "demo":
from .demo import run as run_demo
return run_demo(args.pause)
if args.command == "doctor":
from .doctor import diagnose, render
sections = diagnose(probe_mcp=not args.skip_mcp)
if args.json:
print(json.dumps([{"section": title, "checks": checks} for title, checks in sections],
indent=2))
return 1 if any(c["status"] == "fail" for _, cs in sections for c in cs) else 0
return render(sections)
if args.command == "hook" and args.action == "session-start":
from .hooks import session_start
return session_start()
Expand All @@ -145,6 +182,9 @@ def create_task(path, task_title):
root, config = initialize(Path.cwd(), title, create_task)
print(json.dumps({"workspace": str(root), "project": config["project"],
"active_task": config["active_task"]}, indent=2))
print("\nTaskSeam is ready in {}.\nNext: open this folder in Claude Code or Codex and "
"start a new chat.\nCheck the connection any time with: taskseam doctor".format(root),
file=sys.stderr)
return 0
if args.command == "prompt":
from .importer import PACKET_PROMPT
Expand Down Expand Up @@ -176,6 +216,7 @@ def create_task(path, task_title):
tools = {"codex": ["codex"], "claude-code": ["claude-code"]}.get(args.tool)
result["session_hooks"] = install_detected(sys.executable, args.dry_run, tools)
print(json.dumps(result, indent=2))
_print_setup_summary(result, args.dry_run, args.tool)
return 0
if args.command == "import":
from .importer import parse_packet
Expand Down
94 changes: 94 additions & 0 deletions taskseam/demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
"""`taskseam demo`: a one-minute, agent-free walkthrough in a temporary project."""

import json
import sys
import tempfile
import time
from pathlib import Path

from .hooks import session_start
from .render import brief, short
from .store import Store
from .workspace import database_path, find_workspace, initialize


def run(pause=None, stream=None):
stream = stream or sys.stdout
color = hasattr(stream, "isatty") and stream.isatty()
if pause is None:
pause = 1.2 if color else 0.0

def say(text):
stream.write("\n" + ("\033[1m# " + text + "\033[0m" if color else "# " + text) + "\n")
stream.flush()
time.sleep(pause)

def show(text):
stream.write(text if text.endswith("\n") else text + "\n")
stream.flush()

with tempfile.TemporaryDirectory(prefix="taskseam-demo-") as directory:
root = Path(directory)

def create(path, title):
store = Store(path)
try:
return store.create_task(title)
finally:
store.close()

initialize(root, "Invoice exporter", create)
workspace = find_workspace(root)
task = workspace[1]["active_task"]
store = Store(database_path(workspace))
try:
say("Monday, in Claude Code: you accept a decision, and the agent saves it")
pdf = store.add_item(task, "decision", "Export invoices as PDF", "claude-code")
store.add_item(task, "constraint", "Never send invoice data to third-party services", "user")
store.add_item(task, "question", "Should exports include voided invoices?", "claude-code")
store.handoff(task, "claude-code")
context = store.context(task)
show(brief(context["task"], context["items"], header=False, ids=False))

say("Tuesday, in Codex: you change your mind. CSV replaces PDF, plus a new rule")
csv = store.add_item(task, "decision", "Export invoices as CSV, not PDF", "codex", pdf)
store.add_item(task, "constraint", "CSV must follow RFC 4180", "codex")
show("saved. The PDF decision is superseded, not deleted")

say("Any new chat, in any agent: the session-start hook loads current state")
show("(no prompting, no pasted history. The old PDF decision is gone)")
stdin = _Input(json.dumps({"cwd": str(root), "source": "startup"}))
session_start(stdin, stream)

say("Back in Claude Code: it receives only what changed since its last visit")
delta = store.handoff(task, "claude-code")
for item in delta["added"]:
show(" + {}: {}".format(item["kind"], item["body"]))
for item in delta["removed"]:
show(" - {}: {}".format(item["kind"], item["body"]))

say("Every item keeps its evidence")
evidence = store.explain(csv)
show(" {} `{}` <- {} at {}".format(evidence["body"], short(csv), evidence["source"],
evidence["event_time"][:16].replace("T", " ")))
finally:
store.close()

say("Try it in your own project")
show(" taskseam setup # connect Claude Code and Codex (CLI or editor extension)\n"
" cd your-project && taskseam init\n"
" taskseam doctor # confirm everything is connected")
return 0


class _Input:
"""Minimal stdin stand-in for the hook (not a TTY)."""

def __init__(self, text):
self.text = text

def isatty(self):
return False

def read(self):
return self.text
Loading
Loading