Skip to main content

AI-native cron task runner for per-project scheduled prompts and commands.

Project description

kage 影 - Autonomous AI Project Agent

kage hero

English | 日本語

kage is an autonomous execution layer for project-specific AI agents. It schedules AI-driven tasks via cron, maintains state across runs using a persistent memory system, and provides advanced workflow controls.

Features

  • Autonomous Agent Logic: Automatically decomposes tasks into GFM checklists and tracks progress.
  • Persistent Memory: Stores task state in .kage/memory/ to maintain context.
  • Hybrid Tasks: Supports both AI prompts (Markdown body) and direct shell commands (command in front matter).
  • Advanced Workflow Controls:
    • Execution Modes: continuous, once, autostop.
    • Concurrency Policy: allow, forbid (skip if running), replace (kill old).
    • Time Windows: Restrict execution using allowed_hours: "9-17" or denied_hours: "12".
  • Markdown-First: Define tasks using simple Markdown files with YAML front matter.
  • Layered Configuration: .kage/config.local.toml > .kage/config.toml > ~/.kage/config.toml > defaults.

Installation

curl -sSL https://raw.githubusercontent.com/igtm/kage/main/install.sh | bash

Task Example (.kage/tasks/audit.md)

AI Task

---
name: Project Auditor
cron: "0 * * * *"
provider: gemini
---

# Task: Continuous Health Check
Analyze the current codebase for architectural drifts.

Shell-Command Task

---
name: Log Cleanup
cron: "0 0 * * *"
command: "rm -rf ./logs/*.log"
shell: "bash"
---
Cleanup old logs every midnight.

Commands

  • kage onboard: Global setup.
  • kage init: Initialize kage in the current directory.
  • kage run: Manually trigger tasks.
  • kage task list: List all tasks.
  • kage task show <name>: Show detailed configuration.
  • kage doctor: Diagnose configuration health.
  • kage skill: Display agent skill guidelines (SKILL.md).

Configuration

  • ~/.kage/config.toml: Global settings.
  • .kage/config.toml: Project-shared settings.
  • .kage/config.local.toml: Local overrides (git-ignored).
  • .kage/system_prompt.md: Project-specific system prompt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kage_ai-0.1.9.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kage_ai-0.1.9-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file kage_ai-0.1.9.tar.gz.

File metadata

  • Download URL: kage_ai-0.1.9.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for kage_ai-0.1.9.tar.gz
Algorithm Hash digest
SHA256 8df0ac15c5a71a4d841dbc8628d4bf664a2754cda7bbd94d2b1da88221cf5ff1
MD5 580b6e5eb24a425951ca4202b094b7d4
BLAKE2b-256 ae0565672e5d662d1f3a64b4cc948da899b14a2b0691902f8ed4c62705c270ed

See more details on using hashes here.

File details

Details for the file kage_ai-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: kage_ai-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for kage_ai-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 305e291bccb2053aff01fcd4f4f7909172db99d2181a6a45bdb57b0efd74f259
MD5 692c553573e7a7f35144610f6cf24755
BLAKE2b-256 6cf11b51b777fa5293f03dbf6ade69cd914342714579f6fd7ec06e1bd9a3969d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page