Updates the short company profile shown at session start, replacing previous narrative and key facts.
// Source: https://github.com/mperkins0155/crm | License: MIT | Copyright 2026 Comp AI
// Provided via justclaw.it.com; keep this notice with the code.
import { db } from "@crm/db";
import {
MAX_LINE,
MAX_NARRATIVE,
writeWorkspaceProfile,
} from "@crm/db/workspace";
import { defineTool } from "eve/tools";
import { z } from "zod";
import { currentFocus } from "../lib/focus";
import { assertResearchPurpose } from "../lib/session-purpose";
import { identity } from "../lib/workspace";
const line = (what: string) =>
z.string().max(MAX_LINE).optional().describe(what);
export default defineTool({
description:
"Write the short profile of the company we work for. Every other session opens with it, so it is deliberately small: a few sentences and three one-line facts. Replaces the previous
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key