@darkdepot/tatami
v0.1.1
Published
Context layer plugin for OpenClaw
Readme
Tatami
Tatami is a generic OpenClaw plugin that appends extra workspace context to the
agent system prompt on every before_prompt_build run.
It replaces two legacy workspace hooks:
inject-contextforcontext/*.mdsession-contextfor per-session docs indocs/<project>/
What It Injects
Tatami loads two context sources in this order:
- All
*.mdfiles fromworkspace/context/(or the configuredcontextDir) - Project docs for the current session, resolved from
context/session-settings.jsonintoworkspace/docs/<project>/
The plugin appends content through appendSystemContext, so it extends the
core OpenClaw workspace context instead of replacing it.
Install
# Standard install from npm
openclaw plugins install @darkdepot/tatami
# Update later from npm
openclaw plugins update tatami
# Local development link
openclaw plugins install -l ./path/to/tatami
# Local tarball or release artifact
openclaw plugins install ./darkdepot-tatami-0.1.1.tgzVerify installation:
openclaw plugins list
openclaw plugins doctorConfiguration
Configure Tatami in openclaw.json:
{
plugins: {
entries: {
tatami: {
enabled: true,
config: {
contextDir: "context",
docsDir: "docs",
maxCharsPerFile: 20000,
maxCharsTotal: 100000
}
}
}
}
}Configuration keys:
contextDir: workspace-relative directory for shared markdown context filesdocsDir: workspace-relative directory for project documentationmaxCharsPerFile: truncates each loaded file to this many charactersmaxCharsTotal: stops appending more files after this total content budget
Session Settings Contract
Tatami reads context/session-settings.json and resolves the current project by
exact sessionKey.
{
"agent:iris:s-42a532b8": {
"projectId": "session-context",
"projectName": "Session Context"
}
}projectIdis the directory name underdocs/_project.mdis loaded first, then the remaining markdown files are sorted alphabetically- project paths are checked so a
projectIdcannot escape the configureddocsDir
For long-lived installs, prefer the npm package. Local -l installs are best
for development.
Development Notes
- Node.js 22+
- TypeScript is loaded directly by OpenClaw via jiti
- No build step is required
- Local validation:
npm install && npm run ship:preflight - Ship report:
npm run ship:report:check - Release sanity check:
npm pack --dry-run
