agd
agd is a local-first command-line tool for org-mode files. It searches and
reads an org knowledge base, renders agenda views, captures headings, and
updates TODO state and planning metadata without requiring Emacs at runtime.
Version 0.0.1 is a functional fork baseline derived from
szaffarano/org-mcp-server.
It exposes the inherited CLI as the agd package and executable. The shared
library is published as agd-core; the workspace retains the
upstream-derived org-core/ directory and org-mcp-server binary while the
product is consolidated.
Install
Rust 1.89 or newer is required.
From a source checkout:
Commands
agd agenda Agenda views and task management
agd capture Capture a new heading
agd config Initialize, inspect, or locate configuration
agd list List org files
agd read Read an org file
agd outline Print an org file's heading outline
agd heading Read one heading by outline path
agd element-by-id Read an element by its ID property
agd search Fuzzy-search the knowledge base
agd update-todo Update heading state, planning, tags, properties, or body
Use agd --help and agd <command> --help for the complete argument surface.
Every command that returns structured data supports JSON where its --format
option is available.
Examples
# Work against a directory without creating a config file.
# Agenda views.
# Capture a scheduled task.
# Update a heading selected by its :ID: property.
# Update a heading selected by file and outline path.
Configuration
Create and inspect the default configuration:
The default location is the platform configuration directory followed by
agendum/config.toml, for example:
- Linux:
~/.config/agendum/config.toml - macOS:
~/Library/Application Support/agendum/config.toml
TOML, YAML, and JSON configuration files are supported. A minimal TOML file:
[]
= "~/org"
= "inbox.org"
= ["**/*.org"]
= ["TODO", "NEXT", "|", "DONE", "CANCELLED"]
= true
= true
[]
= "plain"
[]
= "info"
= "~/.local/share/agendum/logs/agd.log"
CLI arguments override configuration values. Environment variables use the
AGD_ prefix and __ for nested keys:
AGD_ORG__ORG_DIRECTORY="/org"
AGD_CLI__DEFAULT_FORMAT=json
Development
The workspace layout is:
agd/— the published CLI package andagdexecutable.org-core/— the publishedagd-corelibrary: parsing, discovery, agenda, search, capture, and update logic.org-mcp-server/— the upstream-derived stdio MCP server.test-utils/— shared fixtures and test helpers.
Origin and license
This fork preserves the history and copyright notice of
szaffarano/org-mcp-server.
The combined agd distribution and new contributions are licensed under
GPL-3.0-or-later. Upstream-derived code remains available under its
original MIT license.