PKM Task¶
Manages the task lifecycle in AnyType: create, update status, link context, query open items, and close with a resolution note.
When to use¶
- "Add a task: send the contract by Friday"
- "Mark task X done"
- "What tasks are open?" / "What did I agree to do?"
- "I committed to delivering Y by next week"
- An agent finishes delegated work and needs to update the task record
What you produce¶
- One AnyType
taskobject per create operation - Updated
status,notes, or relation fields per update - Audit-log entry per write
MCP tools used¶
mcp__anytype__API-list-spaces— resolve space IDmcp__anytype__API-create-object— create new taskmcp__anytype__API-search-space— find existing tasks by title or statusmcp__anytype__API-get-object— read current field values before updatemcp__anytype__API-update-object— update status, notes, linked objects
Procedure¶
Create a task¶
- Classify data — determine
data_classificationbefore any write (required, SPB-01). - Default:
internalfor work commitments;private_sensitivefor personal. - If unclear, ask.
- Resolve space ID via
mcp__anytype__API-list-spaces. Default space: Agent · LLM wiki. - Create the task object via
mcp__anytype__API-create-object: type_key:task- Required fields (per
schemas/object-types.md):title— imperative form ("Send follow-up to Alice by Friday")status—open(default on creation)data_classification
- Optional fields to set when known:
due_datetask_source— one of:meeting,email,self,agent-delegated⚠️ Usetask_source, NOTsource(reserved by AnyType).agent_delegated— set totrueif an agent is handling thisnotes— any context, blockers, or background
- Link people and projects (if known):
- Read current
linked_peopleandlinked_projectvalues first. - Write the full merged list —
update-objectreplaces, does not append. - Audit log — append to
knowledge/anytype-integration/runbooks/audit-log.md. Action:write. Object type:Task.
Update a task¶
- Find the task via
mcp__anytype__API-search-space(search by title fragment or status). - If multiple matches, show the user a short list and ask which one.
- Read before write via
mcp__anytype__API-get-object— capture current field values. - Update via
mcp__anytype__API-update-object: - For status changes: set
statusto the new value. - For notes: append new content to existing notes text (do not replace).
- For linked objects: merge —
[...existing_ids, new_id]. - Audit log — action:
write. Include old and new status in rationale.
Query open tasks¶
- Use
mcp__anytype__API-search-spacewith a filter forstatus = open(orin-progress,blocked). - Return a summary table: title, status, due date, source.
- Flag any task with
agent_delegated = truethat has no recent audit log entry — may need follow-up.
Close a task¶
- Find and read the task (as above).
- Set
statustodone(orcancelledif abandoned). - Append a resolution note to the
notesfield. - Audit log — action:
write. Rationale: "closed:".
Anti-patterns¶
- Don't create a task without
data_classification. - Don't use
sourceas a property key — usetask_source. - Don't overwrite
linked_peopleorlinked_project— always read first and merge. - Don't mark a task done if
agent_delegated = truewithout confirming the agent output was reviewed. - Don't write to Sensitive · Human only space.
- Don't auto-close tasks with
agent_delegated = true— require explicit user confirmation.
Compatibility¶
- Requires AnyType Local API key (agent-scoped) injected via env var.
- Requires the
anytypeMCP server configured in.cursor/mcp.jsonor Claude Code MCP config. - Local-only network egress.