Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
TypeScript
import type { AgentSourceContribution } from "./types.ts";
export function summarizeAgentContributions(
contributions: ReadonlyArray<AgentSourceContribution>,
agents: ReadonlyArray<string>,
): string {
if (contributions.length === 0) {
return "No contributions matched the selected filters.";
}
const lines: string[] = [];
for (const agent of agents) {
const agentContributions = contributions.filter((c) => c.agents.includes(agent));
if (agentContributions.length === 0) continue;
const topics = new Set<string>();
const kinds = new Set<string>();
for (const contribution of agentContributions) {
if (contribution.topic !== undefined) topics.add(contribution.topic);
kinds.add(contribution.kind);
}
const topicPart = `${topics.size} ${topics.size === 1 ? "topic" : "topics"}`;
lines.push(
`${agent}: ${agentContributions.length} contributions across ${topicPart} (${[...kinds].toSorted().join(", ")}).`,
);
}
return lines.length > 0 ? lines.join("\n") : "No contributions matched the selected filters.";
}