Skip to main content

ClawMind -- AI for Thinking Work, Grounded in Logseq

Python Platform Status Logseq License

image

From chat to interaction. You’re not talking to AI—you’re thinking with yourself.

中文說明

ClawMind turns Logseq into a controlled AI workspace for people who need thinking work to stay visible, reviewable, and repeatable.

In most AI tools, the answer remains but the path disappears.

ClawMind does not just generate answers. It turns thinking work into a process that stays visible after the answer is done.

ClawMind depends on schema-validated structured output, so backend models are selected for reliability, not only raw capability.

Demo

Watch a single Logseq task turn into a traced workflow, a written-back result, and a durable audit trail.

https://github.com/user-attachments/assets/99e62538-e782-47f3-be69-966e32e90ac1

Why ClawMind

ClawMind is built for knowledge workflows where correctness, traceability, and operational clarity matter. Most AI tools are fast, but their context is hidden, their decisions are hard to inspect, and their outputs are difficult to replay.

ClawMind takes a different path. It uses Logseq as the human-facing workflow surface, page links as explicit context structure, and controlled task routing to balance fast answers, deeper reasoning, and deterministic writeback. Instead of burying short-term memory inside a transient prompt, it keeps context visible, linkable, and easier to carry across tasks.

The result is not just better answers, but a more reliable execution model: bounded AI behavior, reproducible writeback, and audit-friendly records that can be reviewed after the fact. ClawMind is a workflow layer for people who need thinking work to remain visible, reviewable, and durable over time.

ClawMind currently supports two execution backends: codex_cli for the Codex CLI path, and gemini_api for the Gemini API path with native JSON output and difficulty-based model routing.

For installation, .env setup, first run, and usage details, see UserManual.md. For task wording, routing signals, and model selection rules, see TaskManual.md.

How It Works

ClawMind guides the user-visible workflow from task capture to controlled writeback.

sequenceDiagram
    participant U as User in Logseq
    participant C as ClawMind
    participant O as Output and Audit

    U->>C: Write a task in Logseq
    C->>C: Read context and route the task
    C->>C: Execute with the right reasoning depth
    C->>O: Write results back and keep a replayable audit trail
    O->>U: Return the answer to Logseq

Execution Boundaries

  • Routing is separated from reasoning.
  • Reasoning is separated from writeback.
  • Writeback remains controlled and repeatable.

Built for Reliability

  • Each task keeps a stable identity, so work can be tracked consistently over time.
  • Context and runtime behavior stay separated, reducing accidental spillover between knowledge and execution.
  • Writeback is designed to stay repeatable, so the same workflow does not create drifting results.
  • AI does not write to Logseq directly without the controlled writeback layer.

Project Structure

app/                Core application code
tests/              Unit tests
run_logs/           Execution audit records (created under the current working directory)
runtime_artifacts/  Execution artifacts (created under the current working directory)

When you run an installed CLI from another folder, ClawMind creates run_logs/ and runtime_artifacts/ in that execution directory, not next to the installed package files.

Environment Requirements

  • Windows
  • Logseq
  • Codex CLI
  • Gemini API key for the gemini_api path
  • Python 3.13+

Run

Start the persistent worker to continuously watch Logseq tasks, route execution, and write results back in a controlled way:

clawmind run-worker

By default, ClawMind resolves .env from CLAWMIND_ENV_PATH, then cwd/.env, then the package project root fallback. Runtime outputs are written under the current working directory.

Roadmap

  • Support macOS.
  • Support Gemini CLI and Claude CLI.

Contact

Metadata

Release files for clawmind 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clawmind 0.1.6
File Size Uploaded Provenance Actions
clawmind-0.1.6.tar.gz 60.8 kB Without provenance Details for clawmind-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clawmind 0.1.6
File Interpreter ABI Platform Actions
clawmind-0.1.6-py3-none-any.whl Python 3 none any Details for clawmind-0.1.6-py3-none-any.whl

Total release size: 105.4 kB

Release files / clawmind-0.1.6.tar.gz

Download URL clawmind-0.1.6.tar.gz
Size 60.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6a195406edfeded4de86f614fb181b52a9b2cd7cd2524f72b73d0e7cdabcfb2f
BLAKE2b-256 checksum
How to use checksums
e4c4de28dfb716485169837167ab045c750af0ae17b97fd2735f6bb40c18dcde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / clawmind-0.1.6-py3-none-any.whl

Download URL clawmind-0.1.6-py3-none-any.whl
Size 44.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68f91ff196fe82bc4740a97ad30321ceda8ae420e886bec64ad87a3b8db3768e
BLAKE2b-256 checksum
How to use checksums
52fb62da4d667d2104562507ea9aada0202cbc27da7f7ee3b88020d2b72d08e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for clawmind 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page