ContextLib

v0.1.0
io.github.willykeenan/agentbrain-contextlib Checked 1 day ago Published 2 months ago

A project's long-term memory as plain Markdown files, with an append-only, tamper-evident log.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

context_brief

Always-loaded project summary (at most 8192 bytes).

ParameterTypeDescription
project *stringProject slug.

context_get

One record: meta, body, path, evidence state, supersession chain.

ParameterTypeDescription
id *stringRecord id.
project *stringProject slug.

context_record

Create a record (decision, requirement, fact, lesson, glossary, source, return, brief-note). Author is the server identity.

ParameterTypeDescription
body *string
project *string
title *string
type *string
approved_bystring
evidencearray
request_keystring
review_bystringYYYY-MM-DD
scopeobject
sensitivitystring
supersedesarray
tagsarray

context_supersede

Supersede an old id with a new id and move the old file.

ParameterTypeDescription
new_id *string
old_id *string
project *string
reason *string

context_review_due

Records whose review_by is due on or before a date (default today).

ParameterTypeDescription
project *string
beforestringYYYY-MM-DD. Default today.

context_review

Confirm or retire a record. Use context_supersede to supersede.

ParameterTypeDescription
id *string
outcome *string
project *string
next_review_bystringYYYY-MM-DD
notestring

context_capture

RESULT.json becomes a return record; listed lessons go to the inbox.

ParameterTypeDescription
project *string
pathstringPath to RESULT.json.
result_pathstring

context_export

Zip a project. include_private defaults to false.

ParameterTypeDescription
out_dir *string
project *string
include_privateboolean

context_import

Import a project bundle zip.

ParameterTypeDescription
bundle_pathstring
pathstringPath to the bundle zip.

context_status

Library and project health: counts, inbox, due, index age.

ParameterTypeDescription
projectstringOptional project slug.