a self-evolving intelligent companion
# Add to your Claude Code skills
git clone https://github.com/vibeforge1111/vibeship-spark-intelligenceSelf-evolving intelligence layer for AI agents.
Spark automatically:
.learnings/| Situation | Action | |-----------|--------| | Session start | Spark auto-loads relevant cognitive context | | Tool fails | Spark captures error pattern, suggests recovery | | Pattern validated 3+ times | Consider promotion to CLAUDE.md | | Recurring workflow identified | Extract as skill | | Mind available | Sync for cross-project learning |
Spark learns in these categories:
| Category | What It Learns |
|----------|----------------|
| self_awareness | Overconfidence, blind spots, struggle areas |
| user_understanding | Preferences, expertise, communication style |
| reasoning | WHY things work, not just that they work |
| context | When patterns apply vs don't apply |
| wisdom | General principles across contexts |
| meta_learning | How to learn, when to ask vs act |
| communication | Explanation styles that work |
# Check system status
python cli.py status
# Sync to Mind
python cli.py sync
# Write learnings to markdown
python cli.py write
# Promote ready insights
python cli.py promote
# Sync bootstrap context to platform files
python cli.py sync-context
# Preview/apply decay-based pruning
python cli.py decay
# View recent learnings
python cli.py learnings --limit 20
Add to .claude/settings.json:
{
"hooks": {
"PostToolUse": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "python /path/to/Spark/hooks/observe.py"
}]
}],
"PostToolUseFailure": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "python /path/to/Spark/hooks/observe.py"
}]
}]
}
}
Spark automatically syncs learnings to workspace files:
AGENTS.md — Workflow patternsTOOLS.md — Tool insightsSOUL.md — User preferencesWhen Mind is running (python -m mind.lite_tier), Spark syncs learnings for:
| File | Contents |
|------|----------|
| .learnings/LEARNINGS.md | All cognitive insights |
| .learnings/ERRORS.md | Error patterns and recoveries |
| ~/.spark/cognitive_insights.json | Raw insight data |
| ~/.spark/queue/events.jsonl | Event queue |
Insights are auto-promoted when:
Promotion targets:
CLAUDE.md — Wisdom, reasoning, context rulesAGENTS.md — Meta-learning, self-awarenessTOOLS.md — Tool-specific context rulesSOUL.md — User understanding, communicationfrom lib import (
get_cognitive_learner,
sync_all_to_mind,
write_all_learnings,
check_and_promote,
)
# Get learner instance
cognitive = get_cognitive_learner()
# Learn something
cognitive.learn_why(
what_worked="Read before Edit",
why_it_worked="Prevents content mismatch errors",
context="File editing workflow"
)
# Sync to Mind
sync_all_to_mind()
# Write to markdown
write_all_learnings()
# Promote proven insights
check_and_promote()
Learns constantly. Adapts with your flow. Runs 100% on your machine as a local AI companion that turns past work into future-ready behavior. It is designed to be beyond a learning loop.
You do work -> Spark captures memory -> Spark distills and transforms it -> Spark delivers advisory context -> You act with better context -> Outcomes re-enter the loop
Spark Intelligence is a self-evolving AI companion designed to grow smarter through use.
It is:
The goal is to keep context, patterns, and practical lessons in a form that your agent can actually use at the right moment.
Prerequisites:
winget when missing)pipcurl + bashWindows one-command bootstrap (clone + venv + install + start + health):
irm https://raw.githubusercontent.com/vibeforge1111/vibeship-spark-intelligence/main/install.ps1 | iex
Optional re-check (from repo root):
.\.venv\Scripts\python -m spark.cli up
.\.venv\Scripts\python -m spark.cli health
If you already cloned the repo, run the local bootstrap:
.\install.ps1
If you are running from cmd.exe or another shell:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/vibeforge1111/vibeship-spark-intelligence/main/install.ps1 | iex"
``...
No comments yet. Be the first to share your thoughts!