Skip to content

chrisguidry/docketeer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docketeer

Build the AI personal assistant you need with Anthropic and Docket.

What is docketeer?

Docketeer is a toolkit for building the autonomous AI agent you want without bringing in dozens or hundreds of modules you don't. Instead of a huge and sprawling monolithic system, Docketeer is small, opinionated, and designed to be extended through plugins.

The core of Docketeer is an agent loop based on Anthropic's client SDK, a Docket for scheduling autonomous work, and a small set of tools for managing memory in its workspace. Any other functionality can be added through simple Python plugins that register via standard Python entry points.

Docketeer is currently under heavy early and active development. If you're feeling adventurous, please jump in and send PRs! Otherwise, follow along until things are a little more baked.

The philosophy behind Docketeer's autonomy

Our frontier models don't need much help at all to behave autonomously — they just need an execution model to support it. All we're doing here is giving the agent a Docket of its own, on which it can schedule its own future work. As of today, the agent can use a tool to schedule a nudge Docket task to prompt itself at any future time.

Additionally, two built-in Perpetual Docket tasks reverie and consolidation give the agent recurring opportunities throughout the day to evaluate the world, reflect on what's been going on recently, schedule new tasks, and to update its own memory and knowledge base.

Most importantly, the agent can direct itself by updating markdown files in its own workspace for those prompts. This self-prompting and the ability to self-improve its prompts are the heart of Docketeer's autonomy.

Standards

Yes, Docketeer is developed entirely with AI coding tools. Yes, every line of Docketeer has been reviewed by me, the author. Yes, 100% test coverage is required and enforced.

Security

Obviously, there are inherent risks to running an autonomous agent. Docketeer does not attempt to mitigate those risks. By using only Anthropic's extremely well-aligned and intelligent models, I'm hoping to avoid the most catastrophic outcomes that could come from letting an agent loose on your network. However, the largest risks are still likely to come from nefarious human actors who are eager to target these new types of autonomous AIs.

Docketeer's architecture does not require listening to the network at all. There is no web interface and no API. Docketeer starts up, connects to Redis, connects to the chat system, and only responds to prompts that come from you and the people you've allowed to interact with it via chat or from itself via future scheduled tasks.

Prompt injection will remain a risk with any agent that can reach out to the internet for information.

Architecture

graph TD
    People(["👥 People"])
    People <--> ChatClient

    subgraph chat ["🔌 docketeer.chat"]
        ChatClient["Rocket.Chat, ..."]
    end

    ChatClient <--> Brain

    subgraph agent ["Docketeer Agent"]
        Brain["🧠 Brain / agentic loop"]

        Brain <-- "reasoning" --> API["🤖 Claude API"]
        Brain <-- "memory" --> Workspace["📂 Workspace"]
        Brain <-- "scheduling" --> Docket["⏰ Docket"]

        Docket -- triggers --> CoreTasks["nudge · reverie · consolidation"]
        CoreTasks --> Brain

        subgraph prompt ["🔌 docketeer.prompt"]
            Prompts["agentskills, mcp, ..."]
        end
        Prompts -. system prompt .-> Brain

        Brain -- tool calls --> Registry
        subgraph tools ["🔌 docketeer.tools"]
            Registry["Tool Registry"]
            CoreTools["workspace · chat · docket"]
            PluginTools["web, monty, mcp, ..."]
        end
        Registry --> CoreTools
        Registry --> PluginTools

        Docket -- triggers --> PluginTasks
        subgraph tasks ["🔌 docketeer.tasks"]
            PluginTasks["git backup, ..."]
        end

        subgraph executor ["🔌 docketeer.executor"]
            Sandbox["bubblewrap, ..."]
        end
        PluginTools --> Sandbox

        subgraph vault ["🔌 docketeer.vault"]
            Secrets["1password, ..."]
        end
        PluginTools --> Secrets
    end

    Sandbox --> Host["🖥️ Host System"]

    classDef plugin fill:#f0f4ff,stroke:#4a6fa5
    classDef core fill:#fff4e6,stroke:#c77b2a
    class ChatClient,Prompts,PluginTools,Sandbox,Secrets,PluginTasks plugin
    class Brain core
Loading

Brain

The Brain is the agentic loop at the center of Docketeer. It receives messages from the chat backend, builds a system prompt, manages conversation history, and runs a multi-turn tool-use loop against the Claude API. Each turn sends the conversation, system prompt blocks, and available tool definitions to Claude and gets back text and/or tool calls — looping until Claude responds with text or hits the tool-round limit. Everything else in the system either feeds into the Brain or is called by it.

Workspace

The agent's persistent filesystem — its long-term memory. Contains SOUL.md (the agent's personality and instructions), a daily journal, per-person profiles, installed skills, and anything else the agent writes for itself. The Brain reads SOUL.md and person context into the system prompt on every turn, and workspace tools let the agent read and write its own files.

Docket

A Redis-backed task scheduler that gives the agent autonomy. The agent can schedule future nudges for itself, and three built-in recurring tasks — nudge, reverie, and consolidation — let it think on its own, reflect on recent events, and summarize its journal.

Vault

The agent often needs secrets — API keys, tokens, passwords — to do useful work, but those values should never appear in the conversation context where they'd be visible in logs or could leak through tool results. The vault plugin gives the agent five tools (list_secrets, store_secret, generate_secret, delete_secret, capture_secret) that let it manage secrets by name without ever seeing the raw values. When the agent needs a secret inside a sandboxed command, it passes a secret_env mapping on run or shell and the executor resolves the names through the vault at the last moment, injecting values as environment variables that only the child process can see.

Plugin extension points

All plugins are discovered via standard Python entry points. Single-plugin groups (docketeer.chat, docketeer.executor, docketeer.vault) auto-select when only one is installed, or can be chosen with an environment variable when several are available. Multi-plugin groups (docketeer.tools, docketeer.prompt, docketeer.tasks) load everything they find.

Entry point group Cardinality Purpose
docketeer.chat single Chat backend — how the agent talks to people
docketeer.executor single, optional Command executor — sandboxed process execution on the host
docketeer.vault single, optional Secrets vault — store and resolve secrets without exposing values to the agent
docketeer.tools multiple Tool plugins — capabilities the agent can use during its agentic loop
docketeer.prompt multiple Prompt providers — contribute blocks to the system prompt
docketeer.tasks multiple Task plugins — background work run by the Docket scheduler

Packages

Docketeer's git repository is a uv workspace of packages endorsed by the authors, but they don't represent everything your Docketeer agent can be! You can send new plugin implementations by PR or build your own and install them alongside Docketeer to build your perfect agent.

Package PyPI Description
docketeer PyPI Core agent engine — workspace, journal, scheduling, plugin discovery
docketeer-1password PyPI 1Password secret vault — store, generate, and resolve secrets
docketeer-agentskills PyPI Agent Skills — install, manage, and use packaged agent expertise
docketeer-bubblewrap PyPI Sandboxed command execution via bubblewrap
docketeer-git PyPI Automatic git-backed workspace backups
docketeer-mcp PyPI MCP server support — connect to any MCP-compatible server
docketeer-monty PyPI Sandboxed Python execution via Monty
docketeer-rocketchat PyPI Rocket Chat backend for messaging
docketeer-web PyPI Web search, HTTP requests, file downloads

Each package's README lists its tools and configuration variables.

Getting started

git clone https://github.com/chrisguidry/docketeer.git
cd docketeer
uv sync

Start Redis (used by Docket for task scheduling):

docker compose up -d

Set your Anthropic API key (and any plugin-specific variables — see each package's README):

export DOCKETEER_ANTHROPIC_API_KEY="sk-ant-..."

Run the agent:

docketeer start

About

A reasonably sized autonomous AI construction kit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages