Skip to main content

A knowledge base that gets smarter the more you use it

Project description

Spikuit

English | 日本語

A knowledge base that gets smarter the more you use it.

spikuit on PyPI spikuit-core on PyPI Supported Python versions License Publish status

Documentation: https://takyone.github.io/spikuit/

Source Code: https://github.com/takyone/spikuit

⚠️ Pre-1.0 / under active development. Spikuit is moving fast toward v1.0.0 (Daily Use Ready). Expect frequent breaking changes to the CLI, data schema, and Python API until then. Pin exact versions and read the release notes before upgrading.


What is Spikuit?

Spikuit (spike + circuit, pronounced /spaɪ.kɪt/) is a personal knowledge system built around one idea: your knowledge base should learn from you, not just store things.

Every time you search, review, or ask a question, Spikuit quietly adapts — boosting what's useful, connecting related ideas, and surfacing what you're about to forget.

It works as:

  • A self-improving knowledge base — search quality gets better through usage, not re-indexing
  • A study partner — an AI tutor that teaches, quizzes, and coaches based on what you actually know
  • An agent's brain — a knowledge graph that AI agents can read, write, and learn from

What makes it different?

Anki Obsidian + SRS Spikuit
Scheduling Per-card Per-note Per-concept, connected
Knowledge structure Flat deck Manual links Emergent graph (no up-front taxonomy)
Tagging / domain Required Manual, up-front Optional, filled in later from structure
Search Keyword Keyword + tags Semantic + graph-weighted
Retrieval quality Static Static Improves with usage
AI integration Limited Plugins Built-in (agent-native)

Spikuit doesn't replace these tools — it explores what becomes possible when you combine a knowledge graph, spaced repetition, and AI agents into one system.

Structure emerges

You do not pick a folder tree, tag scheme, or taxonomy before you start. Drop Neurons in with or without a domain label; Spikuit discovers clusters from the Synapse structure itself. When a blank domain has enough evidence, spkt domain audit fills it in — with your approval on anything ambiguous.

This matters because curation is where knowledge bases usually fail: the cost of keeping taxonomy consistent grows faster than the value of having one. Spikuit keeps that cost sub-linear by letting structure self-assemble, and surfacing disagreements only when they are load-bearing.

For the full picture, see Emergent Structure and the Cognitive Retrieval model.

Quick Start

1. Install

pip install spikuit

2. Create a Brain

A "Brain" is Spikuit's workspace — like a .git/ directory for your knowledge. Run spkt init where you want to set one up:

mkdir my-brain && cd my-brain
spkt init

The interactive wizard will ask about embedding settings. If you're just trying things out, choose "none" for embeddings — you can configure them later.

3. Add some knowledge

# Add a concept
spkt neuron add "# Ownership in Rust\n\nEach value has exactly one owner. When the owner goes out of scope, the value is dropped." \
  -t concept -d rust

# Add from a URL
spkt source ingest "https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html" -d rust

# Connect related concepts
spkt synapse add <id-1> <id-2> -t relates_to

4. Set up Agent CLI skills (recommended)

Spikuit's interactive skills — tutoring, knowledge curation, and Q&A — run inside Agent CLIs like Claude Code, Cursor, or Codex. To use them, install the skill definitions:

spkt skills install                    # defaults to .claude/skills/
spkt skills install -t .cursor/skills  # or specify your agent

This copies the skill files (SKILL.md) and an agent context file (SPIKUIT.md) that gives the agent a complete command reference.

5. Start using it

From your Agent CLI:

You: /spkt-ingest
     I'm studying category theory. A Functor maps between categories
     preserving structure. A Monad is a monoid in the category of endofunctors.

Agent: Added 2 neurons, 1 synapse (Monad --requires--> Functor).

You: /spkt-qabot
     What's the relationship between Functors and Monads?

Agent: A Monad is built on top of a Functor...
       Sources: n-abc123 (Functor), n-def456 (Monad)

You: /spkt-tutor

Tutor: Let's start with Functor — it's a prerequisite for Monad.
       [teaches, quizzes, gives feedback]

You: /spkt-curator

Curator: Your "math" domain spans 2 communities (algebra vs. analysis).
         Split into sub-domains? [Y/n]

Or use spkt commands directly:

spkt retrieve "ownership borrow"           # search your knowledge graph
spkt neuron due                            # what needs reviewing?
spkt neuron fire <id> -g fire              # record a review
spkt diagnose                              # brain health check
spkt consolidate                           # optimize graph structure
spkt visualize                             # interactive HTML graph

All commands support --json for machine-readable output.

Use Cases

/spkt-ingest + /spkt-qabot : Self-improving RAG

Feed sources into your brain, then query it. Retrieval quality improves with every conversation — no re-indexing needed.

You: /spkt-ingest
     Here's an article on attention mechanisms: https://arxiv.org/abs/1706.03762

Agent: Added 8 neurons (Multi-Head Attention, Scaled Dot-Product, ...).
       6 synapses created, source linked for citation.

You: /spkt-qabot
     How does multi-head attention differ from single-head?

Agent: Multi-head attention runs multiple attention functions in parallel,
       each with different learned projections...

       Sources:
       - [Attention Is All You Need](https://arxiv.org/abs/1706.03762) (via n-a1b2c3)

You: What about computational cost?

Agent: [prior results auto-penalized, new neurons retrieved]

/spkt-ingest + /spkt-tutor : AI study partner

Build a knowledge graph from your study material, then let an AI tutor teach, quiz, and coach you based on what you actually know.

You: /spkt-ingest
     I'm studying category theory. Key concepts:
     - A Functor maps between categories preserving structure
     - A Natural Transformation is a morphism between functors
     - A Monad is a monoid in the category of endofunctors

Agent: Added 3 neurons, 2 synapses (Monad/NatTrans --requires--> Functor).

You: /spkt-tutor

Tutor: You have 3 new concepts. Let's start with Functor —
       it's a prerequisite for the other two.
       [teaches, then quizzes]

You: It's like... a mapping that keeps the structure?

Tutor: Right direction, but incomplete. A functor maps both objects
       AND morphisms, and must preserve composition and identity.
       Can you give an example of a functor between two concrete categories?

How It Works

Spikuit organizes knowledge as a graph — concepts are nodes, relationships are edges. When you interact with the graph, three things happen automatically:

  1. Smart scheduling — each concept has its own review timing based on how well you know it (powered by FSRS)
  2. Activation spreading — reviewing one concept nudges related concepts closer to their review time. Connections that are used together get stronger.
  3. Search optimization — results are ranked by relevance × how well you know each concept × how central it is in your graph. Feedback from conversations continuously improves ranking.

For the technical details behind these mechanisms, see Appendix: Algorithms.

Documentation

Architecture

spikuit-core/     # Pure engine (no LLM dependency)
spikuit-cli/      # spkt command
spikuit-agents/   # Agent skills and adapters

The core engine is LLM-independent — spkt commands work standalone. Agent skills (/spkt-tutor, /spkt-ingest, /spkt-qabot, /spkt-curator) add LLM-powered interactions on top, designed for Agent CLIs like Claude Code.

Development

git clone https://github.com/takyone/spikuit.git
cd spikuit
uv sync --package spikuit-core --extra dev
uv run --package spikuit-core pytest spikuit-core/tests/ -v

License

Apache-2.0

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

spikuit-0.9.0.tar.gz (545.9 kB view details)

Uploaded Source

Built Distribution

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

spikuit-0.9.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file spikuit-0.9.0.tar.gz.

File metadata

  • Download URL: spikuit-0.9.0.tar.gz
  • Upload date:
  • Size: 545.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spikuit-0.9.0.tar.gz
Algorithm Hash digest
SHA256 8095c6076a87faf458dc91b5352258e9c2dcc5737f94dc136a95f93449e6ecb4
MD5 04ad72540df4a61061aee989fd2a3cbd
BLAKE2b-256 1f4fe9d9586072f7b3ad1505fc607500feb47d8d0499a03adb2f495d3c1b75da

See more details on using hashes here.

Provenance

The following attestation bundles were made for spikuit-0.9.0.tar.gz:

Publisher: publish.yml on takyone/spikuit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spikuit-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: spikuit-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spikuit-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd7a671031a314fe1e24bd39f9a557ae483255c652c4778d85908050b00e4c62
MD5 19cc6a16451b4536592a29b230cb743c
BLAKE2b-256 553ec0cab6ccb0320e9ffc1b7b6baf6ae39158e2bbbec1569d42293e0f8777ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for spikuit-0.9.0-py3-none-any.whl:

Publisher: publish.yml on takyone/spikuit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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