A knowledge base that gets smarter the more you use it
Project description
Spikuit
A knowledge base that gets smarter the more you use it.
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 | Auto-growing graph |
| 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.
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 learn "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-teach
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-teach + /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-teach
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-teach + /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-teach
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:
- Smart scheduling — each concept has its own review timing based on how well you know it (powered by FSRS)
- Activation spreading — reviewing one concept nudges related concepts closer to their review time. Connections that are used together get stronger.
- 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
- Getting Started — install, init, first commands
- How to Use — use cases, agent skills, Python API
- Concepts — brain, graph model, how things connect
- CLI Reference — all
spktcommands - Appendix: Algorithms — FSRS, graph propagation, technical details
- API Reference — Python API docs
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-teach, /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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spikuit-0.5.5.tar.gz.
File metadata
- Download URL: spikuit-0.5.5.tar.gz
- Upload date:
- Size: 391.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7dcd67f64bfa2ff8389de64a274eb5bd390a6a572d5e16be0637935da40eb81
|
|
| MD5 |
b74f3f7cb627e5e0f1f3e4602f0d7d66
|
|
| BLAKE2b-256 |
017af41a124a26047b0d4b611b546ea6c44059466cbe407a39383b5eb5bb8351
|
Provenance
The following attestation bundles were made for spikuit-0.5.5.tar.gz:
Publisher:
publish.yml on takyone/spikuit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spikuit-0.5.5.tar.gz -
Subject digest:
f7dcd67f64bfa2ff8389de64a274eb5bd390a6a572d5e16be0637935da40eb81 - Sigstore transparency entry: 1280573120
- Sigstore integration time:
-
Permalink:
takyone/spikuit@6d139c42473f34ac6b1fc76fecde542ed2da91fe -
Branch / Tag:
refs/tags/v0.5.5 - Owner: https://github.com/takyone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6d139c42473f34ac6b1fc76fecde542ed2da91fe -
Trigger Event:
push
-
Statement type:
File details
Details for the file spikuit-0.5.5-py3-none-any.whl.
File metadata
- Download URL: spikuit-0.5.5-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62af7ab42488d0b786ed486dd1a4ba2eb28d5cd4d27ceba9dccb93ac590f0ba1
|
|
| MD5 |
f6643abb0c19b8d5165f0ef8fb7b9fec
|
|
| BLAKE2b-256 |
071e8d5323f8886bbfab1569278edfd9d5f4f38e5b62b7263947511e08705193
|
Provenance
The following attestation bundles were made for spikuit-0.5.5-py3-none-any.whl:
Publisher:
publish.yml on takyone/spikuit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spikuit-0.5.5-py3-none-any.whl -
Subject digest:
62af7ab42488d0b786ed486dd1a4ba2eb28d5cd4d27ceba9dccb93ac590f0ba1 - Sigstore transparency entry: 1280573127
- Sigstore integration time:
-
Permalink:
takyone/spikuit@6d139c42473f34ac6b1fc76fecde542ed2da91fe -
Branch / Tag:
refs/tags/v0.5.5 - Owner: https://github.com/takyone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6d139c42473f34ac6b1fc76fecde542ed2da91fe -
Trigger Event:
push
-
Statement type: