DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Task State Guard: what you can do with it

What is Task State Guard? TaskStateGuard is a Python library and CLI that reconciles stuck AI-agent task and delivery states in a local SQLite ledger.

How do I use it? Create and activate a virtual environment, then run python3 -m venv .venv and . .venv/bin/activate; then install the package with python -m pip install task-state-guard; Preview the changes with task-state-guard --db ./private-state/tasks.sqlite reconcile --active-grace-seconds 600 --delivery-grace-seconds 600 --dry-run. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

3 use cases

Quick start with Task State Guard

  1. Check you have what it needs: CPython 3.11 to 3.14; A SQLite ledger file on a local filesystem, not a network or mapped drive; A virtual environment with task-state-guard installed from PyPI.
  2. Open MaxHu-xuan/task-state-guard on GitHub and read the README and license.
  3. Create and activate a virtual environment, then run python3 -m venv .venv and . .venv/bin/activate.
  4. Install the package with python -m pip install task-state-guard.
  5. Preview the changes with task-state-guard --db ./private-state/tasks.sqlite reconcile --active-grace-seconds 600 --delivery-grace-seconds 600 --dry-run. (inferred, check the README)
  6. Review the returned counts, then apply with task-state-guard --db ./private-state/tasks.sqlite reconcile --active-grace-seconds 600 --delivery-grace-seconds 600. (inferred, check the README)

These steps come from our top use case, Preview restart cleanup of stuck tasks before applying it, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for MaxHu-xuan/task-state-guard

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Software and DevOps

About this repo

  • Who it is forDevelopers and operators running AI agents, background workers, or local workflows that need to recover task state after a restart or timeout.
  • Why it is hot982 stars, launched 78 days ago
  • LanguagePython
  • Sourcegithub.com/MaxHu-xuan/task-state-guard · Back to Hot repos

Requirements

  • CPython 3.11 to 3.14
  • A SQLite ledger file on a local filesystem, not a network or mapped drive
  • A virtual environment with task-state-guard installed from PyPI

Add this badge to your README

Maintain Task State Guard? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/MaxHu-xuan/task-state-guard.svg)](https://dedupedai.com/use-cases/maxhu-xuan-task-state-guard/?utm_source=github&utm_medium=badge&utm_campaign=MaxHu-xuan-task-state-guard)

HTML

<a href="https://dedupedai.com/use-cases/maxhu-xuan-task-state-guard/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=MaxHu-xuan-task-state-guard"><img src="https://dedupedai.com/badge/MaxHu-xuan/task-state-guard.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Task State Guard

What is Task State Guard?

TaskStateGuard is a Python library and CLI that reconciles stuck AI-agent task and delivery states in a local SQLite ledger. It is an open-source project on GitHub: https://github.com/MaxHu-xuan/task-state-guard.

How do I use Task State Guard?

Create and activate a virtual environment, then run python3 -m venv .venv and . .venv/bin/activate; then install the package with python -m pip install task-state-guard; Preview the changes with task-state-guard --db ./private-state/tasks.sqlite reconcile --active-grace-seconds 600 --delivery-grace-seconds 600 --dry-run. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Task State Guard for?

Developers and operators running AI agents, background workers, or local workflows that need to recover task state after a restart or timeout.

What can I do with Task State Guard?

3 use cases so far, for example: Preview restart cleanup of stuck tasks before applying it; Record task and delivery closures only from real outcomes; Check a workflow ledger's health before trusting its history. Each has steps and a copy-paste agent prompt.

What do I need to run Task State Guard?

CPython 3.11 to 3.14; A SQLite ledger file on a local filesystem, not a network or mapped drive; A virtual environment with task-state-guard installed from PyPI.

What are alternatives to Task State Guard?

Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.

Is Task State Guard safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.