Features / Knowledge Base

Your codebase learns
from every AI session.

Every session your team runs is automatically distilled into knowledge entries — architecture decisions, debugging patterns, API contracts, environment quirks. Your codebase builds its own documentation over time.

AI agents don't just read the knowledge base — they write back. Discoveries, fixes, and patterns flow in automatically. The next agent picks them up.

22 MCP tools Auto-summarize Agent write-back
Get started
knowledge base
$ sfs project ask "How does auth work?"
Knowledge Base Results
auth/middleware — JWT validation via PyJWT. Tokens refreshed on 401.
auth/oauth2 — OAuth2 authorization_code grant. Callback at /auth/callback.
auth/testing — Test fixtures via factory_boy. Auth tokens mocked in conftest.py.
3 entries found. Answer compiled from 14 sessions.

The Knowledge Loop

Every session makes the next session smarter. Fully automatic.

1

Capture

Daemon watches 8 AI tools and captures sessions in real time. Messages, tool calls, file changes, and command outputs — all recorded.

2

Extract

Deterministic summarization extracts files changed, tests run, commands executed, packages installed, and key decisions — no LLM cost.

3

Entries

Extracted facts become knowledge entries — tagged by topic, linked to source sessions, and indexed for search. Backlinks connect related entries.

4

Compile

Related entries are compiled into wiki pages — one page per topic. Pages update automatically as new sessions add information.

5

Concepts

Cross-session patterns emerge as concepts. "Auth always uses PyJWT" or "Tests need Redis running" — learned from real sessions, not guesses.

6

Agent Write-back

AI agents write discoveries back to the knowledge base during sessions via MCP. The next agent reads them. The loop closes.

Agents write back. Automatically.

When an AI agent discovers something new — a debugging pattern, an API quirk, a configuration requirement — it writes the finding to the knowledge base via the add_knowledge MCP tool. No manual curation needed.

Works with any MCP-compatible AI tool
Entries tagged and linked automatically
Backlinks connect related knowledge
Health checks flag stale or conflicting entries
agent write-back
# Agent discovers a pattern during session
MCP tool call: add_knowledge
topic: "database/migrations"
content: "Alembic migrations must
run with --sql flag in prod.
Direct execution disabled via
env guard in alembic.ini."
tags: ["database", "migrations", "alembic"]
Entry kb_f8a2 created. Linked to ses_m3n4.
Backlinks: database/connection, deploy/prod-checklist

22 MCP tools. Four categories.

Everything your AI agents need to read, search, and contribute to your team's knowledge.

Session Tools (7)

  • list_recent_sessions
  • get_session_context
  • get_session_summary
  • search_sessions
  • find_related_sessions
  • get_audit_report
  • get_session_provenance

Knowledge Read (8)

  • get_project_context
  • get_context_section
  • get_wiki_page
  • search_project_knowledge
  • list_knowledge_entries
  • get_knowledge_entry
  • get_knowledge_health
  • ask_project

Knowledge Write (4)

  • add_knowledge
  • update_wiki_page
  • list_wiki_pages
  • compile_knowledge_base

A living wiki. Built from real sessions.

Knowledge entries compile into topic pages. Each page links to its source sessions and related topics.

sfs project wiki
Wiki Pages (12)
Page Entries Sources Last updated
auth/middleware85 sessions2h ago
database/migrations129 sessions4h ago
api/rate-limiting53 sessions1d ago
deploy/prod-checklist1511 sessions2d ago
testing/fixtures64 sessions3d ago
+ 7 more pages

Knowledge health. At a glance.

The health check flags stale entries, conflicting information, and orphaned pages. Keep your knowledge base accurate without manual curation.

Detects stale entries (no recent sessions)
Flags contradictory information
Identifies orphaned pages without backlinks
Suggests merges for duplicate topics
health check
$ sfs project health
Knowledge Base Health
92%
12 pages · 46 entries · 87 backlinks
1 stale: deploy/staging — last updated 30d ago
1 conflict: auth/tokens — 2 entries disagree on expiry
10 pages healthy. 0 orphans.

Start building your knowledge base.

Every session your team runs makes the next one smarter. Free during beta.