Skip to content

superlinked/synty

Repository files navigation

synty

Your coding agents start every session from zero. So do you.

synty passively records every coding-agent session (Claude Code, Codex, Cowork) and your GitHub activity into one local, searchable memory, for you and the agents you work with.

synty's TUI: browse topics, sessions, search, and stats in the terminal

Demos rendered from docs/*.tape with vhs.

  • Recall, not re-discovery. Ask "has anyone touched the auth flow?", or just run synty related, and get the sessions and PRs that matter. You browse in the TUI; your agents read the same over the CLI and MCP.
  • Your data stays yours. Everything is open on disk: raw events as JSONL, a SQLite index, --json on every command. Chart agent friction, fine-tune a model, build your own dashboards. Nothing is trapped in a viewer.
  • Local-first. One binary and no remote model API: even the one-line summaries run locally. Data stays on the machine unless you explicitly join a shared team bucket.

Quick start

curl -fsSL https://raw.githubusercontent.com/superlinked/synty/main/install.sh | sh

One paste installs the binary, turns on the login-time tracker, and opens the viewer. After that, two commands cover the daily loop:

synty tui        # browse your work memory: topics, sessions, search, stats
synty related    # surface prior work for whatever you're doing now (no query)

The tracker runs at login, so the memory keeps building on its own. Update any time with synty upgrade. Building from source instead? See Build.

Commands

Every read command prints Markdown to stdout, or --json for a versioned envelope.

Command What it does
synty related prior work for your current task, from this repo's git (no query)
synty search "<query>" semantic search; add --filter repo=…,kind=pull_request
synty recent latest PRs, issues, and prompts
synty topic [name] emergent topics, or one topic's members
synty show <id> open a session, PR/issue (repo#123), or topic
synty trace list/show/search/compare inspect turns, paired tool calls, async jobs, and raw evidence
synty status what's indexed, freshness, activation, the fleet roster
synty stats tokens / tools / sessions vs LOC / PRs / issues per week
synty tui interactive browser: tabs, drill-down, filter by repo or account
synty mcp serve the read surface to agents over stdio
synty build / synty up rebuild the index once / keep it fresh on a loop

A result is a ranked Markdown card with ids you can drill ([a1b2c3d4] sessions, repo#123 PRs/issues, [72a778f8] topics) that feed synty show:

## rate limiting middleware

1. [24.3] **pull_request api#1487** — Add a token-bucket limiter to the gateway
   merged · https://github.com/acme/api/pull/1487
2. [21.8] _user_prompt · api · a3f1c2d9_
   how do we share the per-tenant limiter's state across pods? settled on Redis…
3. [19.0] **issue api#1502** — 429s under burst load on the search endpoint
   open · https://github.com/acme/api/issues/1502

synty's agent surface: related, search, and status as Markdown on stdout

Own your data

synty is a capture layer, not a walled garden. Everything it records sits in plain files under ~/.synty, so you can build on it directly:

  • Raw events (the source of truth): append-only JSONL under corpus/local/ (and events/<stream>/ in a shared bucket).
  • Documents: corpus/docs.jsonl, one object per line with meta (source, kind, repo, author, session_id, ts).
  • Metadata: a SQLite database under index/, queryable with any SQLite tool.
synty stats --json | jq '.data.weeks[] | {week: .start, tok_in, tok_out}'   # weekly token trend
synty trace list --type spans --status error --sort duration               # slow/error tool evidence
synty trace list --type jobs --sort wait                                   # associated exec/poll lifecycles
synty trace search 'libxcb.so.1'                                           # literal raw-event lookup
synty trace show <full-or-unique-id> --json                                # surrounding execution context
jq -r '.meta.kind' ~/.synty/corpus/docs.jsonl | sort | uniq -c              # straight from the raw file

Because synty already clusters the work and links across sources (PRs, issues, sessions), your analysis starts from structured data, not a heap of logs.

Teams

Solo, the "bucket" is a local directory. For a team, or just your own laptop and desktop, point synty at one shared S3/GCS bucket and you build one memory:

# Workstation: a durable credential_process profile (for example Roles Anywhere)
synty init s3://my-team-synty --aws-profile synty-writer --capture-since now

# AWS VM/container: omit --aws-profile and use its instance/task/workload role
synty init s3://my-team-synty --capture-since 2026-07-21

On a systemd-based EC2 developer VM, enable lingering once so the per-user tracker starts at boot without an SSH login, then run init normally:

sudo loginctl enable-linger "$USER"

That bucket is the only shared infrastructure: no build server, no coordination service. Each machine writes a stable edge-<machine>-<source> stream, so writers do not overwrite one another. Readers pull every stream plus the latest published read-model. A bounded stream registry and per-stream local key cursors avoid relisting historical chunks on each read. The TUI builds unpublished event deltas in the background; synty build does the same explicitly, while search warns if raw events are newer than the published index. One tokened machine scrapes GitHub for everyone.

The tracker polls locally every 30 seconds and, by default, uploads only new complete event lines every 60 seconds as immutable chunks (not one request per event and not a whole-file rewrite). Set --upload-interval <seconds> on init to change that cadence. --capture-since now, a UTC date, or an RFC3339 timestamp is resolved and persisted as an absolute lower bound; older agent content is neither newly uploaded nor included in a published read-model. This is a forward collection boundary, not deletion of objects already in a bucket.

Do not use an expiring aws sso login session as the unattended credential. On workstations, point --aws-profile at a shared-config profile backed by a refreshing credential_process; on EC2/ECS/EKS, omit it and grant the workload role access to the bucket. The login service stores only the profile name, never AWS keys. Release assets include S3/GCS support; source builds need --features s3 / gcs.

For S3, scope each writer/reader role to the chosen bucket (or URI prefix): s3:ListBucket on the bucket and s3:GetObject, s3:PutObject, and s3:DeleteObject on its objects. Delete is used only to release the soft build lease; event chunks and content-addressed derived objects are immutable.

Heads up: every member with the bucket can read every session in it. synty is built for high-trust groups; there's no per-reader redaction. If that doesn't fit, stay local, or scope the bucket to people who already see each other's work.

How it works

  • Retrieval is late interaction. pylate-rs runs a small ColBERT model (ModernBERT, 32 M params) that encodes each document as one vector per token; next-plaid scores queries with MaxSim over a SQLite metadata filter. That per-token scoring lets a rare or specific term (a function name, a file path) carry its own signal, instead of being averaged into one document vector the way single-vector embeddings do.
  • Summaries and topic names come from a small local model (Qwen3-0.6B) on your CPU, never a remote API, with an extractive fallback.
  • Events are the source of truth. The index and metadata are derived projections, rebuildable any time and shareable through a bucket.

Architecture and rationale live in docs/design.md; the on-real-data validation lives in evals/.

Build

cargo build --release        # plain CPU, portable, dependency-light (the shipped build)

On Apple Silicon, add --features metal for GPU encode (~5.7× faster); accelerate (macOS) and mkl (Linux) are CPU-BLAS alternatives. The embedding model (~127 MB) downloads on first use; the summarizer (~1.2 GB) the first time anything summarizes. For an air-gapped setup and the per-stage pipeline, see docs/design.md and CONTRIBUTING.

Cutting a release is a maintainer task: see CONTRIBUTING.

About

Local-first memory for you and your coding agents. Every session and PR, searchable; the raw data is yours to analyze.

Resources

License

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors