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
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.25.0] - 2026-06-13
## [0.25.1] - 2026-06-14

### Fixed
- **Distiller subagent no longer pins fragile MCP tool names.** The
`task-journal-distiller` agent dropped its explicit `tools:` list (which named
the journal MCP tools under one marketplace-specific prefix and would have left
the agent unable to write events on any install with a different prefix). It
now inherits the session's tools, so it can always reach the journal MCP.

### Added
- **`task-journal capture status`** — reports whether realtime capture is ON or
OFF (the `.capture-disabled` marker) without changing it.

### Added
- **In-session compaction distiller.** A new `task-journal-distiller` subagent
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
]

[workspace.package]
version = "0.25.0"
version = "0.25.1"
edition = "2021"
rust-version = "1.88"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion crates/tj-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ default = ["embed"]
embed = ["tj-core/embed"]

[dependencies]
tj-core = { package = "task-journal-core", version = "0.25.0", path = "../tj-core", default-features = false }
tj-core = { package = "task-journal-core", version = "0.25.1", path = "../tj-core", default-features = false }
anyhow = { workspace = true }
clap = { workspace = true }
tracing = { workspace = true }
Expand Down
11 changes: 9 additions & 2 deletions crates/tj-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ enum Commands {
/// already-running session — without touching the read-only SessionStart
/// resume. Use it to silence a stale auto-capture hook.
Capture {
/// "on" (remove the marker) or "off" (write it).
/// "on" (remove the marker), "off" (write it), or "status" (report it).
state: String,
},
/// Distil this project's recurring decisions and constraints into durable
Expand Down Expand Up @@ -1348,7 +1348,14 @@ fn main() -> Result<()> {
let _ = std::fs::remove_file(&marker);
println!("realtime capture ON.");
}
other => anyhow::bail!("expected `on` or `off`, got `{other}`"),
"status" => {
if marker.exists() {
println!("realtime capture OFF (.capture-disabled present).");
} else {
println!("realtime capture ON.");
}
}
other => anyhow::bail!("expected `on`, `off`, or `status`, got `{other}`"),
}
}
Commands::Consolidate {
Expand Down
30 changes: 30 additions & 0 deletions crates/tj-cli/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5400,6 +5400,36 @@ fn consolidate_skips_without_api_key_and_spends_nothing() {
.stdout(contains("skipped"));
}

#[test]
fn capture_status_reports_current_state() {
// `capture status` reports ON/OFF without changing anything.
let dir = assert_fs::TempDir::new().unwrap();

// Fresh install → ON.
Command::cargo_bin("task-journal")
.unwrap()
.env("XDG_DATA_HOME", dir.path())
.args(["capture", "status"])
.assert()
.success()
.stdout(contains("ON"));

// After `off` → OFF, and status must not flip it back.
Command::cargo_bin("task-journal")
.unwrap()
.env("XDG_DATA_HOME", dir.path())
.args(["capture", "off"])
.assert()
.success();
Command::cargo_bin("task-journal")
.unwrap()
.env("XDG_DATA_HOME", dir.path())
.args(["capture", "status"])
.assert()
.success()
.stdout(contains("OFF"));
}

#[test]
fn capture_off_marker_no_ops_ingest_hook_capture() {
// `capture off` writes a marker that makes ingest-hook skip the capture
Expand Down
2 changes: 1 addition & 1 deletion crates/tj-mcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/main.rs"

[dependencies]
# Lean: the MCP server doesn't embed yet, so it skips the model2vec backend.
tj-core = { package = "task-journal-core", version = "0.25.0", path = "../tj-core", default-features = false }
tj-core = { package = "task-journal-core", version = "0.25.1", path = "../tj-core", default-features = false }
anyhow = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion plugin/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "task-journal",
"version": "0.25.0",
"version": "0.25.1",
"description": "Append-only journal of AI-coding task reasoning chains: hypotheses, decisions, rejections, evidence. Renders compact resume packs so an agent can pick up a 2-week-old task with full context.",
"author": {
"name": "Mher Shahinyan"
Expand Down
1 change: 0 additions & 1 deletion plugin/agents/task-journal-distiller.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: task-journal-distiller
description: Distills a conversation segment into task-journal memory. Use when a compaction just happened (or is about to), or when asked to "capture what we just did" — it reads the segment from the transcript, finds the decisions / rejections / findings that were NOT yet logged for the active task, and records them via the task-journal MCP. Runs in the background so it never blocks the main chat. Does NOT close tasks.
model: haiku
background: true
tools: Read, Bash, Grep, Glob, mcp__plugin_task-journal_task-journal__task_search, mcp__plugin_task-journal_task-journal__task_pack, mcp__plugin_task-journal_task-journal__event_add
---

You are the **task-journal distiller**. A segment of a coding conversation is
Expand Down
Loading