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
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ permissions:
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.11", "3.13"]
runs-on: ubuntu-latest
# ubuntu-latest (26.04) no longer provides Python 3.9, which macOS still ships as python3.
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- run: python -m unittest discover -s tests -v
Expand All @@ -26,8 +28,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- run: python -m pip install build twine
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- run: python -m pip install build twine
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

All notable changes to TaskSeam will be documented here.

## 0.2.0 - 2026-11-21

Upgrade with `pipx upgrade taskseam` (or `python3 -m pip install -U taskseam`), then rerun
`taskseam setup` to install the session-start hook. Databases upgrade to schema version 4
automatically; once upgraded, they cannot be opened by 0.1.x.

- Add optional full current-state recovery to MCP continuation and CLI handoff
for fresh chats and lost context, preserving normal per-target deltas.
- Add recovery regression coverage and an evidence-linked next-step research memo.
- Load project state automatically: `taskseam setup` installs a read-only SessionStart hook
for Claude Code and Codex (`--no-hooks` to skip; `taskseam hook install` to manage it).
- Add `taskseam show`, a readable view of the state agents receive.
- Add `taskseam drop` and the `taskseam_retire` MCP tool. They remove an item that no longer
applies, recording the reason as an event. The database schema moves to version 4.
- Add deterministic `taskseam export` (JSON with optional history, or Markdown) and
`--agents-md`, which maintains a marked block in AGENTS.md for agents without MCP.
- Accept unique item ID prefixes in the CLI and MCP tools.
- MCP: negotiate protocol revisions 2025-11-25, 2025-06-18, and 2025-03-26; return
`structuredContent`; add a `continue` prompt and a current-state resource.
- Briefs with a size budget report omitted item counts instead of truncating silently.

## 0.1.1 - 2026-09-24

- Use the public PyPI installation command throughout the onboarding experience.
Expand Down
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,20 @@ Start with this prompt:

> Continue this project. What accepted decisions, constraints, and open questions should I know?

There are no routine TaskSeam commands after initialization.
There are no routine TaskSeam commands after initialization. In Claude Code and Codex, `taskseam setup` installs a session-start hook, so each new chat starts with the project's state even before you ask. Codex asks you to trust the hook once in `/hooks`.

## Everyday commands

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 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
taskseam export --history # deterministic JSON, including superseded items
```

Item IDs accept any unique prefix of four or more characters.

## What changes for the user?

Expand Down Expand Up @@ -126,11 +139,11 @@ The [five-minute demo](https://github.com/TaskSeam/taskseam/blob/main/docs/DEMO.

The [public roadmap](https://github.com/TaskSeam/taskseam/blob/main/ROADMAP.md) tracks the current priorities:

1. Validate clean installation across supported operating systems.
2. Publish the Python package to PyPI.
3. Package and submit the browser extension.
4. Improve automatic task matching and correction.
5. Publish repeatable continuity evaluations.
1. Retry-safe delivery: acknowledge exactly what an agent received.
2. Publish repeatable continuity evaluations.
3. Validate clean installation across supported operating systems.
4. Package and submit the browser extension.
5. Improve automatic task matching and correction.

## Development

Expand Down
18 changes: 17 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

TaskSeam aims to provide versioned task state across AI tools. This roadmap defines the behavior required to distinguish that product from a generic memory store or transcript handoff.

## Proposed next priorities

The [October 2026 ecosystem review](docs/NEXT_STEPS_RESEARCH.md) recommends:

1. Reliable fresh-chat recovery (released in 0.2.0 with session-start hooks), followed by retry-safe delivery.
2. Reproducible evaluations against transcripts, summaries, maintained Markdown, and memory retrieval.
3. Deterministic exports, auditable corrections, and concurrent-write protection.
4. Budgeted delivery with explicit omissions, then demand-led integrations.

These are recommendations; the research memo separates implemented behavior from future work.

## North-star acceptance scenario

1. A user discusses a feature in ChatGPT and considers storing state in Markdown.
Expand Down Expand Up @@ -30,7 +41,9 @@ TaskSeam is ready for a broader alpha when this scenario works repeatedly on an
- [x] Localhost API
- [x] MCP delivery with approved state updates
- [ ] Schema migrations with compatibility tests
- Version-one migration has a regression test; broader compatibility coverage remains.
- [ ] Export and deletion commands
- Deterministic JSON/Markdown export and item retirement shipped in 0.2.0; whole-task deletion remains.

## Milestone 2: Evidence ingestion

Expand All @@ -55,7 +68,10 @@ TaskSeam is ready for a broader alpha when this scenario works repeatedly on an
- [x] Record the checkpoint last delivered to each tool
- [x] Generate a delta from that checkpoint
- [ ] Filter by target, purpose, permissions, and token budget
- [ ] Deliver the result through MCP
- [x] Deliver the result through MCP
- [x] Optional full current-state recovery for fresh chats
- [x] Session-start hooks that inject current state in Claude Code and Codex
- [ ] Acknowledge exact snapshots after successful delivery, with retry and concurrency tests
- [ ] Preview and approve sensitive handoffs
- [ ] Package a Claude Desktop extension with explicit project selection

Expand Down
8 changes: 7 additions & 1 deletion docs/EDITOR_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ cd your-project
taskseam init
```

Then restart the editor or begin a new agent chat.
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:

```bash
taskseam show
```

## Codex in VS Code or Cursor

Expand Down
68 changes: 68 additions & 0 deletions docs/INTEGRATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,71 @@ Other AI clients require local MCP support or a dedicated TaskSeam adapter. They
Claude Desktop uses a separate desktop-extension system and does not automatically inherit Claude Code's project working directory. TaskSeam does not currently present it as supported. A packaged desktop extension with an explicit project selector is planned.

See the [editor setup guide](EDITOR_SETUP.md) for the complete interface matrix.

## Load state automatically at session start

`taskseam setup` also installs a read-only SessionStart hook for Claude Code
(`~/.claude/settings.json`) and Codex (`~/.codex/hooks.json`, or `$CODEX_HOME`).
Both hosts add the hook's output to the model's context. Every new, resumed,
cleared, or compacted session therefore starts with the project's accepted
decisions, active constraints, and open questions, even if the model never
calls a TaskSeam tool.

- The hook prints nothing outside an initialized project and never blocks a session.
- It does not advance any agent's delivery position, so `taskseam_continue` deltas are unaffected.
- Output stays under 6,000 characters, below both hosts' limits. Items that do not fit are
counted explicitly rather than silently dropped.
- Codex runs a new hook only after you review and trust it with `/hooks`.
- Existing settings are preserved. A one-time `*.taskseam-backup` copy is written beside the file.

Install or refresh only the hook with `taskseam hook install [claude-code|codex]`,
preview the change with `--dry-run`, or skip it during setup with `taskseam setup --no-hooks`.

## MCP prompt and resource

Besides its tools, the MCP server exposes:

- a `continue` prompt. Claude Code shows it as `/mcp__taskseam__continue`, which loads state on demand;
- a `taskseam://active/brief` Markdown resource with the current state.

The server negotiates MCP protocol revisions 2025-11-25, 2025-06-18, and 2025-03-26,
and tool results include `structuredContent` alongside the JSON text.

## Agents without MCP: AGENTS.md

Agents that read `AGENTS.md` but cannot reach TaskSeam (Cursor rules, Gemini CLI,
Jules, Windsurf, and others) can receive a generated copy of the current state:

```bash
taskseam export --agents-md # or --agents-md docs/AGENTS.md
```

TaskSeam maintains only the block between `<!-- taskseam:start -->` and
`<!-- taskseam:end -->`. The rest of the file is left untouched, and rerunning the
command replaces the block. `AGENTS.md` is usually committed, so review the block
before pushing. Your state then leaves the private `.taskseam/` directory.

Other exports are deterministic:

```bash
taskseam export # current state as JSON (schema "taskseam_export": 1)
taskseam export --history # include superseded, resolved, and retired items
taskseam export --format markdown -o STATE.md
```

## Recover state in a fresh chat

In a fresh chat or after losing prior context, call `taskseam_continue` with
`{"target": "codex", "full": true}` (use the receiving agent's stable target name).
In an initialized workspace the task is inferred; otherwise supply `task_id`.
The CLI equivalent is:

```bash
taskseam handoff --to codex --full
```

`current` contains all current items, while `added` and `removed` remain the
changes since that target's previous delivery. `changed: false` means no new
changes, not an empty task. Ordinary continuation omits `current` to keep
responses small. Recovery does not reset other agents' delivery positions.
This option requires TaskSeam 0.2.0 or later.
Loading
Loading