Skip to main content

Azure DevOps Daily Task Automation

Logo

Python 3.9+ MIT License PyPI

Python CLI for automating daily task creation, activation, and completion logging in Azure DevOps with AI-powered task breakdown via Claude.

  • AI Task Breakdown — Claude reads user stories and generates concrete development tasks
  • Interactive Workflow — create → start → update → end pipeline
  • Auto-linking — Tasks linked to parent stories, related across multiple stories
  • Progress Tracking — Log hours, remaining estimates, completion notes
  • Global CLI — Install once, use anywhere: azdo-daily configure

Installation

pip install azdo-daily
azdo-daily configure

From source

Clone repository:

git clone https://github.com/MrShakila/Azdo-Daily.git
cd Azdo-Daily
pip install .

Or install in development mode:

pip install -e ".[dev]"

Requirements

  • Python 3.9+
  • requests library (auto-installed)
  • Anthropic API key (for AI task breakdown)
  • Azure DevOps Personal Access Token (PAT)

Use from anywhere:

azdo-daily configure
azdo-daily status

Configuration

On first run, configure your settings:

azdo-daily configure

Configuration stored in .config/settings.json (project-local, excluded from git).

Interactive prompts for:

Field Description
org Your Azure DevOps organisation name
project Project name
pat Personal Access Token — needs Work Items (Read & Write) scope
anthropic_api_key From console.anthropic.com — for AI task breakdown
assigned_to Your email/display name — used to filter stories
area_path Default area path for new tasks (optional)

Project Structure

azdo_daily/
├── main.py       — Entry point: argument parsing + command dispatch
├── config.py     — Configuration: load/save/validate settings
├── state.py      — Daily state: load/save work items per day
├── ui.py         — Terminal UI: colors, prompts, formatters, selection helpers
├── azdo.py       — Azure DevOps API client: work item operations
├── ai.py         — Claude AI: task breakdown from stories
└── commands.py   — Command handlers: configure, create, start, update, end, status

Key Modules

azdo.py — Azure DevOps API client

  • session() — authenticated HTTP session
  • wit_base() — Work Item Tracking API base URL
  • get_my_stories() — fetch assigned stories via WIQL
  • create_task() — create new task linked to stories
  • set_workitem_state() — change work item state
  • resolve_task() — mark task complete with hours + comment
  • partial_task() — log progress, keep task open
  • _patch_workitem() — internal: apply JSON Patch operations
  • add_comment() — internal: append work item comment

commands.py — CLI command handlers

  • cmd_configure() — interactive setup
  • cmd_create() — select stories → generate tasks → create in Azure DevOps
  • cmd_start() — activate tasks (mark In Progress)
  • cmd_update() — log progress on tasks
  • cmd_end() — mark tasks done + auto-resolve stories
  • cmd_status() — show today's stories and tasks

ui.py — Terminal UI helpers

  • Color constants: R, B, DIM, GR, YL, BL, CY, RD, MG
  • Output: ok(), err(), info(), warn(), hdr(), sep()
  • Input: ask() (prompt with optional default)
  • Formatters: print_stories(), print_tasks()
  • Selection: parse_selection(), select_from_list() (handles "all")
  • Conversion: float_or_none()

Daily Workflow

Setup (once)

azdo-daily configure

Morning — Create tasks

azdo-daily create
  1. Fetches all active User Stories assigned to you
  2. You select stories to work on (e.g. 1 or 1,3 or 2-4)
  3. Choose task creation method:
    • Use template — Auto-generate standard tasks (UI, Logic, Unit Test)
    • AI auto-breakdown — Claude reads story and generates tasks
    • Manual entry — Type tasks yourself
    • Template + AI — Generate template tasks + AI suggestions, then review
  4. If multiple stories: tasks created once, linked to all (child of #1, related to rest)
  5. Task names include story title (e.g., "UI | My Story Title")
  6. Tasks appear in Azure DevOps immediately with direct links

Activate tasks

azdo-daily start

Marks selected new tasks as "In Progress" and auto-activates linked stories.

Anytime — Check status

azdo-daily status

Shows active stories and all tasks with open/resolved counts.

Throughout day — Log progress (optional)

azdo-daily update

Log hours spent and remaining estimates on open tasks (keeps them "In Progress").

Evening — Mark complete

azdo-daily end
  1. Lists all open tasks for today
  2. You select which to complete (e.g. 1,3 or all)
  3. For each: enter hours spent + optional closing note
  4. Task marked done + hours logged
  5. If all tasks for a story are done → story auto-resolved

Maintenance Commands

Reconfigure credentials

azdo-daily reconfigure

Update your Azure DevOps org, project, PAT, or Anthropic API key. Prompts to confirm before overwriting.

Clear task history

azdo-daily clear-history

Delete all daily state files (state/*.json). Keeps configuration. Useful for starting fresh after month/week.


State Files

Each day's data in state/YYYY-MM-DD.json:

{
  "stories": [
    {"id": 42, "title": "Implement auth"}
  ],
  "tasks": [
    {
      "id": 101,
      "title": "Add login endpoint",
      "url": "https://...",
      "closed": false,
      "start_date": "2026-05-19T09:30:45.123456",
      "completed_hours": 2.5,
      "remaining_hours": 1.0,
      "story_ids": [42]
    }
  ]
}

Bugs and pull requests

List the bugs assigned to you, move them through their states, and open one PR with all the fixes. Every command takes --json for scripts and agents. Run them from the project folder: config is per project (.config/settings.json) and also needs the repo and target_branch keys (azdo-daily configure asks for them). The PAT needs Work Items and Code read/write scopes.

azdo-daily bugs                                   # open bugs assigned to you
azdo-daily bug show 123                           # repro steps, comments, attachments
azdo-daily bug start 123                          # move to the in-progress state
azdo-daily bug task 123 --title "Fix null check"   # child Task under the bug
azdo-daily bug resolve 123 --comment "Fixed null check" --task 456  # closes task 456, resolves bug
azdo-daily pr create --bugs 123,124 --title "Fix QA bugs"
azdo-daily pr comments 45                         # active review threads
azdo-daily pr reply 45 7 --text "Done" --resolve  # reply and mark thread fixed

State names are read from the project's Bug work item type by category, so Agile and Scrum templates both work. pr create refuses to run on the target branch or on a branch that is not on origin.


Cron (optional)

Status reminder at 9 AM weekdays:

0 9 * * 1-5 azdo-daily status

start, update, and end commands are interactive — use cron for status only.


Troubleshooting

"Work item X does not exist"

Task IDs in state file no longer exist in Azure DevOps. Reset today's state:

rm ~/.config/azdo_daily/state/2026-04-29.json  # or today's date
azdo-daily create

"anthropic_api_key not set"

Run configure and enter Anthropic API key from console.anthropic.com:

azdo-daily configure

"Personal Access Token (PAT) invalid"

Regenerate PAT in Azure DevOps → User Settings → Personal Access Tokens. Must have Work Items (Read & Write) scope.

ModuleNotFoundError after install

Reinstall in development mode:

pip install -e .

Development

Install with dev tools:

pip install -e ".[dev]"

Install pre-commit hooks:

pip install pre-commit
pre-commit install

Format code (auto-runs on commit via pre-commit):

black azdo_daily/

Lint code:

flake8 azdo_daily/

See CONTRIBUTING.md for full development guide.


License

MIT — see LICENSE

Metadata

Release files for azdo-daily 1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azdo-daily 1.8.1
File Size Uploaded Provenance Actions
azdo_daily-1.8.1.tar.gz 33.9 kB Without provenance Details for azdo_daily-1.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for azdo-daily 1.8.1
File Interpreter ABI Platform Actions
azdo_daily-1.8.1-py3-none-any.whl Python 3 none any Details for azdo_daily-1.8.1-py3-none-any.whl

Total release size: 61.7 kB

Release files / azdo_daily-1.8.1.tar.gz

Download URL azdo_daily-1.8.1.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1d9c02226aa4a8faa3158159894658ab6702c9ea0d658bbf3c3d1ed741fec505
BLAKE2b-256 checksum
How to use checksums
45c5919f243b77344779b052ce13d226e1d66f9c61676931111147e64ca44c2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / azdo_daily-1.8.1-py3-none-any.whl

Download URL azdo_daily-1.8.1-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f51995b96119fcf079146e149659cc23c85bbead7cbad4e166ee15570738f99
BLAKE2b-256 checksum
How to use checksums
a395e41cff27229e292bea3b6a3d3ad71fee13ae4e76b0886e9b122471b3aa78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for azdo-daily 1.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.8.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page