### Setup commands Source: https://github.com/betabots-llc/callimachus/blob/main/CONTRIBUTING.md Clone the repository, install dependencies, and launch the desktop app in development mode. ```bash git clone callimachus && cd callimachus pnpm install pnpm desktop:dev # launches the desktop window (tauri dev) ``` -------------------------------- ### Install and run desktop dev environment (pnpm, Tauri) Source: https://github.com/betabots-llc/callimachus/blob/main/README.md Install dependencies and launch the Tauri desktop window with pnpm desktop:dev. From the repo root, pnpm build runs turbo to build every app's frontend, and pnpm typecheck typechecks every app. ```bash pnpm install pnpm desktop:dev ``` ```bash pnpm build ``` ```bash pnpm typecheck ``` -------------------------------- ### Cal CLI examples for history, memory, and snapshots Source: https://github.com/betabots-llc/callimachus/blob/main/README.md A CLI cheat sheet for the `cal` command, covering search, recent, cat, stats, export, ask, files, memory, done, remember, check, commits, issues, cost, audit-pr, snapshot, snapshots, resume, agents, and hook. `cal` ships with the desktop app and is on PATH; build from a checkout with `cargo install --path apps/desktop/src-tauri --bin cal`. Common options include `-y` for hybrid search, `--vault` for Obsidian export, and `--json` for commits. ```bash cal search "vector index migration" -y ``` ```bash cal recent -n 10 ``` ```bash cal cat 42 | pbcopy ``` ```bash cal stats ``` ```bash cal export 42 --vault ~/Obsidian ``` ```bash cal ask "how did we set up releases?" ``` ```bash cal files embed/mod.rs ``` ```bash cal memory ``` ```bash cal done 17 ``` ```bash cal remember decision "use sqlite-vec for KNN" --because "no cloud, KNN in SQL" ``` ```bash cal check "switch to pgvector" ``` ```bash cal commits ``` ```bash cal issues ``` ```bash cal cost ``` ```bash cal audit-pr . --changed-files a,b --shas s1,s2 ``` ```bash cal snapshot 42 -l "pre-refactor" ``` ```bash cal snapshots ``` ```bash cal resume 7 -a claude ``` ```bash cal agents ``` ```bash cal hook ``` -------------------------------- ### Build and package the extension with pnpm Source: https://github.com/betabots-llc/callimachus/blob/main/apps/vscode/README.md Commands to install dependencies, build the extension, launch an Extension Development Host, and package a .vsix file. Run from the monorepo root. ```bash pnpm install # from the monorepo root (pulls @types/vscode etc.) pnpm --filter callimachus-vscode build # then press F5 in VS Code to launch an Extension Development Host pnpm --filter callimachus-vscode package # build a .vsix with @vscode/vsce ``` -------------------------------- ### Run the desktop app with a real index Source: https://github.com/betabots-llc/callimachus/blob/main/apps/web/public/screenshots/CAPTURE.md Starts the desktop app in development mode with a non-sensitive index for capturing screenshots. ```bash pnpm desktop:dev ``` -------------------------------- ### One-time manual publish steps for MCP registry Source: https://github.com/betabots-llc/callimachus/blob/main/RELEASING.md Run these commands once from a clean checkout of the tagged commit to publish the npm wrapper, install the registry CLI, authenticate, publish the server manifest, and verify the entry. Requires membership in the BetaBots-LLC GitHub org for authentication. ```bash # 1. publish the npm wrapper (its package.json carries the matching mcpName) cd packages/callimachus-mcp && npm publish --access public && cd - # 2. install the registry CLI brew install mcp-publisher # or grab the release binary # 3. authenticate (device flow) and publish server.json from the repo root mcp-publisher login github # opens a GitHub device-code prompt mcp-publisher publish # reads ./server.json # 4. verify curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.betabots-llc/callimachus" ``` -------------------------------- ### cal audit-pr command example Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/CHANGELOG.md Example invocation of the `cal audit-pr` command, which returns a JSON bundle with commit provenance, file history, recurring errors, and project memory for a PR audit. ```bash cal audit-pr --changed-files src/auth.rs,src/lib.rs --shas , ``` -------------------------------- ### Callimachus CLI usage examples (cal search, recent, cat, decisions, gotchas, similar, knowledge, memory, ask, files, done, remember, agents, hook) Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Run these commands from the repo root to query or update Callimachus memory. `cal search` uses -y for hybrid semantic+keyword search; `cal done` takes a TODO id from `cal todos --json`; `cal remember` persists a decision or gotcha; `cal agents` writes the repo memory into AGENTS.md and `cal hook` prints it for a Claude Code SessionStart hook. ```bash cal search "vector index migration" -y # -y = hybrid (semantic + keyword) cal recent -n 10 # most recent threads cal cat 42 # full thread -> stdout (pipe/quote it) cal decisions "auth flow" # recall past decisions (semantic) cal gotchas "rate limiting" # recall known gotchas/pitfalls cal similar "add stripe webhooks" # prior sessions like this task cal knowledge 42 # distilled recap of one thread cal memory [project] # a project's durable memory (decisions/gotchas/TODOs) cal ask ``` -------------------------------- ### Enter and exit Changesets prerelease mode Source: https://github.com/betabots-llc/callimachus/blob/main/RELEASING.md Use pnpm rc:enter to start prerelease mode and pnpm rc:exit to leave it. While in prerelease mode, Version Packages merges produce versions like vX.Y.Z-rc.0 and are marked as GitHub prereleases; publish-extension.yml skips them. Exiting produces the stable vX.Y.Z. ```bash # Enter RC mode (commit the generated .changeset/pre.json to main) pnpm rc:enter # = changeset pre enter rc # From here, every Version Packages merge produces vX.Y.Z-rc.0, -rc.1, … # (e.g. v0.6.0-rc.1). build.yml marks these as GitHub *prereleases* automatically, # and publish-extension.yml skips them (no extension prerelease channel). # When the RC is good, leave prerelease mode: pnpm rc:exit # = changeset pre exit # The next Version Packages merge produces the stable vX.Y.Z. ``` -------------------------------- ### project_memory Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns a project's durable memory: decisions, gotchas, and open TODOs distilled across all past sessions, with coverage counts. Call at the start of work on a repo. ```APIDOC ## project_memory ### Description Returns a project's durable memory: decisions, gotchas, and open TODOs distilled across all past sessions, with coverage counts. Call at the start of work on a repo. ### Parameters - **project** (string) - Optional - The project to query. Omit to use the repo the server runs in. ### Returns - Project memory object with decisions, gotchas, open TODOs, and coverage counts. ``` -------------------------------- ### Manually create a version tag to trigger both workflows Source: https://github.com/betabots-llc/callimachus/blob/main/RELEASING.md Creates a tag like v0.5.0 and pushes it to origin, which triggers both build.yml and publish-extension.yml. Use this when a previous run failed or automation was skipped. ```bash git tag v0.5.0 && git push origin v0.5.0 # → build.yml + publish-extension.yml ``` -------------------------------- ### Create a changeset with pnpm changeset Source: https://github.com/betabots-llc/callimachus/blob/main/RELEASING.md Run this command to create a changeset for a PR. It prompts to select a version bump (patch, minor, or major) and write a one-liner description. The generated .changeset/*.md file should be committed. ```bash pnpm changeset # pick patch/minor/major, write a one-liner ``` -------------------------------- ### Generate Tauri updater signing keypair Source: https://github.com/betabots-llc/callimachus/blob/main/RELEASING.md Run this command once to generate the signing keypair. The public key must be copied into tauri.conf.json under plugins.updater.pubkey, replacing the placeholder. Keep the private key secret and never commit it. ```bash pnpm --filter callimachus tauri signer generate -w ~/.tauri/callimachus.key ``` -------------------------------- ### Optimize screenshot to webp with cwebp Source: https://github.com/betabots-llc/callimachus/blob/main/apps/web/public/screenshots/CAPTURE.md Converts a PNG screenshot to WebP format with quality 82, targeting a file size under 250 KB. ```bash cwebp -q 82 shot.png -o shot.webp ``` -------------------------------- ### Optimize screenshot to webp with squoosh Source: https://github.com/betabots-llc/callimachus/blob/main/apps/web/public/screenshots/CAPTURE.md Alternative command using the Squoosh CLI to convert a PNG screenshot to WebP with auto quality. ```bash pnpm dlx @squoosh/cli --webp auto shot.png ``` -------------------------------- ### Development commands for callimachus-web Source: https://github.com/betabots-llc/callimachus/blob/main/apps/web/README.md Commands to run the dev server, build the project, and typecheck. The build emits the Vercel Build Output API directory. ```bash pnpm --filter callimachus-web dev # http://localhost:3000 pnpm --filter callimachus-web build # emits .vercel/output (Build Output API v3) pnpm --filter callimachus-web typecheck ``` -------------------------------- ### Run Rust tests (cargo test) Source: https://github.com/betabots-llc/callimachus/blob/main/README.md Run unit tests and real-data smoke tests. Note that the --ignored tests touch live data and require network for the embedding-model download and a Keychain round-trip. ```bash cd apps/desktop/src-tauri cargo test ``` ```bash cargo test -- --ignored --nocapture ``` -------------------------------- ### list_open_todos Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Lists unfinished action items left across sessions. ```APIDOC ## list_open_todos ### Description Lists unfinished action items left across sessions. ### Parameters - **project** (string) - Optional - Project to filter by. - **source** (string) - Optional - Source to filter by. - **limit** (integer) - Optional - Maximum number of results. ### Returns - List of open TODOs. ``` -------------------------------- ### Checks before a PR Source: https://github.com/betabots-llc/callimachus/blob/main/CONTRIBUTING.md Run lint, typecheck, build, and Rust unit tests before submitting a pull request. ```bash pnpm check # Biome lint + format check pnpm typecheck # all apps (tsc) pnpm build # all apps cd apps/desktop/src-tauri && cargo test # Rust unit tests ``` -------------------------------- ### Repository layout Source: https://github.com/betabots-llc/callimachus/blob/main/CONTRIBUTING.md Shows the top-level directory structure of the Turborepo workspace. ```text apps/desktop/ Tauri 2 app + the `cal` CLI and `callimachus-mcp` server (src-tauri) apps/vscode/ VS Code extension (shells out to `cal`) apps/web/ marketing + download site (TanStack Start) scripts/ version-sync, release tagging .changeset/ versioning + changelog ``` -------------------------------- ### Verify AppImage signature with --appimage-signature Source: https://github.com/betabots-llc/callimachus/blob/main/SIGNING.md Inspect the embedded GPG signature of a built AppImage. Replace with the actual version. ```bash ./Callimachus__amd64.AppImage --appimage-signature ``` -------------------------------- ### get_thread_knowledge Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns a short summary plus key decisions, gotchas, and open TODOs for a thread. ```APIDOC ## get_thread_knowledge ### Description Returns a short summary plus key decisions, gotchas, and open TODOs for a thread. ### Parameters - **thread_id** (string) - Required - The thread ID. ### Returns - Summary with key decisions, gotchas, and open TODOs. ``` -------------------------------- ### MCP client configuration for callimachus Source: https://github.com/betabots-llc/callimachus/blob/main/packages/callimachus-mcp/README.md JSON configuration for an MCP client that uses npx to launch callimachus-mcp. Add this to your client's config file. ```json { "mcpServers": { "callimachus": { "command": "npx", "args": ["-y", "callimachus-mcp"] } } } ``` -------------------------------- ### search_current_project Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Searches the current git repository for relevant threads. Best signal when the user means 'this project'. ```APIDOC ## search_current_project ### Description Searches the current git repository for relevant threads. Best signal when the user means 'this project'. ### Parameters - **query** (string) - Required - The search query. - **hybrid** (boolean) - Optional - Set to true for fuzzy/conceptual recall (semantic + keyword); leave off for exact terms. ### Returns - List of matching threads. ``` -------------------------------- ### Generate GPG signing key for Linux AppImage Source: https://github.com/betabots-llc/callimachus/blob/main/SIGNING.md Generate a GPG key pair for signing the AppImage. Use RSA 4096, no expiry or a long one, and set a passphrase. Then list secret keys to note the long key ID after 'rsa4096/'. ```bash gpg2 --full-gen-key # RSA 4096, no expiry or a long one; set a passphrase gpg --list-secret-keys --keyid-format=long # note the long KEY ID (after rsa4096/) ``` -------------------------------- ### End-user verification of AppImage signature Source: https://github.com/betabots-llc/callimachus/blob/main/SIGNING.md End-user verification steps: download the validator from AppImageUpdate, make it executable, and run it against the AppImage. Confirm the reported key ID matches the published public key. ```bash # one-time: grab the validator # https://github.com/AppImageCommunity/AppImageUpdate/releases/tag/continuous chmod +x validate-x86_64.AppImage ./validate-x86_64.AppImage Callimachus__amd64.AppImage ``` -------------------------------- ### recall_gotchas Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Surfaces pitfalls and non-obvious constraints the user hit before. ```APIDOC ## recall_gotchas ### Description Surfaces pitfalls and non-obvious constraints the user hit before. ### Parameters - **query** (string) - Required - The search query. - **project** (string) - Optional - Project to filter by. - **limit** (integer) - Optional - Maximum number of results. ### Returns - List of gotchas. ``` -------------------------------- ### get_thread Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns the full thread as packed markdown. ```APIDOC ## get_thread ### Description Returns the full thread as packed markdown. ### Parameters - **thread_id** (string) - Required - The thread ID. ### Returns - Full thread as packed markdown. ``` -------------------------------- ### Register callimachus MCP server with Claude Code Source: https://github.com/betabots-llc/callimachus/blob/main/packages/callimachus-mcp/README.md Adds the callimachus MCP server to Claude Code using npx. Run this command in your terminal to register the server. ```bash claude mcp add callimachus -- npx -y callimachus-mcp ``` -------------------------------- ### Export GPG signing keys for Linux AppImage Source: https://github.com/betabots-llc/callimachus/blob/main/SIGNING.md Export the secret and public GPG keys. The secret key is sensitive and must never be committed; the public key should be committed and served over TLS. ```bash KEYID= gpg --armor --export-secret-keys "$KEYID" > callimachus-signing-private.asc # SECRET gpg --armor --export "$KEYID" > callimachus-signing-public.asc # publish ``` -------------------------------- ### complete_todo Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Marks a tracked TODO done so it drops out of open-TODO lists. ```APIDOC ## complete_todo ### Description Marks a tracked TODO done so it drops out of open-TODO lists. ### Parameters - **id** (string) - Required - The TODO ID from list_open_todos. ### Returns - Confirmation of completion. ``` -------------------------------- ### search_threads Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Searches all threads across projects. Use with hybrid for fuzzy recall or without for exact terms. ```APIDOC ## search_threads ### Description Searches all threads across projects. Use with hybrid for fuzzy recall or without for exact terms. ### Parameters - **query** (string) - Required - The search query. - **sources** (array) - Optional - Sources to search. - **hybrid** (boolean) - Optional - Set to true for fuzzy/conceptual recall (semantic + keyword); leave off for exact terms. - **limit** (integer) - Optional - Maximum number of results. ### Returns - List of matching threads. ``` -------------------------------- ### record_gotcha Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Persists a pitfall / non-obvious constraint just discovered. ```APIDOC ## record_gotcha ### Description Persists a pitfall / non-obvious constraint just discovered. ### Parameters - **text** (string) - Required - The gotcha text. - **project** (string) - Optional - Project to associate. Omit to use the repo the server runs in. ### Returns - Confirmation of persistence. ``` -------------------------------- ### list_tags Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Lists the user's topic labels (collections) with counts. ```APIDOC ## list_tags ### Description Lists the user's topic labels (collections) with counts. ### Parameters - None. ### Returns - List of tags with counts. ``` -------------------------------- ### record_decision Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Persists a technical choice you/the user just settled. ```APIDOC ## record_decision ### Description Persists a technical choice you/the user just settled. ### Parameters - **text** (string) - Required - The decision text. - **project** (string) - Optional - Project to associate. Omit to use the repo the server runs in. ### Returns - Confirmation of persistence. ``` -------------------------------- ### Updater endpoint URL Source: https://github.com/betabots-llc/callimachus/blob/main/RELEASING.md The tauri.conf.json plugins.updater.endpoints already points to this GitHub releases URL. The releases/latest path always resolves to the newest non-prerelease, so the stable updater never picks up a release candidate. ```text https://github.com/BetaBots-LLC/callimachus/releases/latest/download/latest.json ``` -------------------------------- ### threads_for_file Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns past sessions that mentioned a file path. ```APIDOC ## threads_for_file ### Description Returns past sessions that mentioned a file path. ### Parameters - **path** (string) - Required - The file path to search for. ### Returns - List of past sessions that mentioned the file. ``` -------------------------------- ### recall_decisions Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Performs cross-thread semantic recall of concrete decisions the user already made and why. ```APIDOC ## recall_decisions ### Description Performs cross-thread semantic recall of concrete decisions the user already made and why. ### Parameters - **query** (string) - Required - The search query. - **project** (string) - Optional - Project to filter by. - **limit** (integer) - Optional - Maximum number of results. ### Returns - List of decisions with rationale. ``` -------------------------------- ### find_prior_work Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns past sessions where the user did something similar, with relevant decisions/gotchas and threadId. ```APIDOC ## find_prior_work ### Description Returns past sessions where the user did something similar, with relevant decisions/gotchas and threadId. ### Parameters - **query** (string) - Required - The search query. - **project** (string) - Optional - Project to filter by. Searches all projects if omitted. - **limit** (integer) - Optional - Maximum number of results. ### Returns - List of past sessions with most-relevant decision/gotcha and threadId. ``` -------------------------------- ### ask_history Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Retrieves the most relevant threads and returns a synthesized answer with citations and source list. ```APIDOC ## ask_history ### Description Retrieves the most relevant threads and returns a synthesized answer with citations and source list. ### Parameters - **question** (string) - Required - The question to ask over history. ### Returns - Synthesized answer with [thread N] citations and source list. ``` -------------------------------- ### Indexer module contract: KIND and scan function Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/src/indexer/README.md Every indexer module must expose a KIND constant matching the sources.kind row and a scan function that parses conversations into ParsedThread and calls upsert_thread. The scan function is idempotent and requires no per-source code for FTS or embeddings. ```rust pub const KIND: &str = "gemini"; // matches the `sources.kind` row pub fn scan(conn: &mut Connection) -> Result; ``` -------------------------------- ### recent_threads Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns recent threads, optionally filtered by project or tag. ```APIDOC ## recent_threads ### Description Returns recent threads, optionally filtered by project or tag. ### Parameters - **limit** (integer) - Optional - Maximum number of results. - **project** (string) - Optional - Project to filter by. ### Returns - List of recent threads. ``` -------------------------------- ### check_decision Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Surfaces already-settled decisions on a topic before re-litigating one. ```APIDOC ## check_decision ### Description Surfaces already-settled decisions on a topic before re-litigating one. ### Parameters - **proposal** (string) - Required - The proposal you're about to make. - **project** (string) - Optional - Project to filter by. ### Returns - Already-settled decision with rationale, if any. ``` -------------------------------- ### ParsedThread and ParsedMessage data structures Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/src/indexer/README.md These Rust structs define the canonical shape for parsed conversations. ParsedThread includes external_id, title, project_path, git_branch, timestamps, is_subagent, and messages. ParsedMessage includes role, text, tool_name, and timestamp. ```rust pub struct ParsedThread { pub external_id: String, // stable, unique within the source (path / session id) pub title: Option, pub project_path: Option, pub git_branch: Option, pub created_at: Option, // epoch seconds pub updated_at: Option, pub is_subagent: bool, pub messages: Vec, } pub struct ParsedMessage { pub role: String, // user | assistant | tool | system pub text: String, pub tool_name: Option, pub ts: Option, } ``` -------------------------------- ### linked_commits Source: https://github.com/betabots-llc/callimachus/blob/main/apps/desktop/src-tauri/resources/recall/SKILL.md Returns the git commits a thread likely produced, inferred on-device. ```APIDOC ## linked_commits ### Description Returns the git commits a thread likely produced, inferred on-device. ### Parameters - **thread_id** (string) - Required - The thread ID. ### Returns - List of git commits. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.