Skip to main content

Task-state-machine-first runner for Logseq-driven workflows.

Project description

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 (main)
runtime_artifacts/  Execution artifacts

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

Roadmap

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

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawmind-0.1.3.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawmind-0.1.3-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file clawmind-0.1.3.tar.gz.

File metadata

  • Download URL: clawmind-0.1.3.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for clawmind-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f87e9a48a1a973c8038dcfebb82244f63069272c7c81575d729fd0e9894ba8eb
MD5 ab7518df1310a9a5ee9a42c80e59799f
BLAKE2b-256 808d13aaadd1c8741ed88214150fd305c637c9321c684b90e6a01b2ca4348446

See more details on using hashes here.

File details

Details for the file clawmind-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: clawmind-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for clawmind-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12987af0055294e9fdbc0b4d69fabebf2d13adf9aaa6145f04d701de9ccdc7c8
MD5 74717c6297f94d6e7cf51408443b1549
BLAKE2b-256 759ad0a028806b242f75d354be50a5d37686e2358630396b34651e412acda8d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page