{"id":50908455,"url":"https://github.com/atobouh/symapse","last_synced_at":"2026-06-16T07:32:25.444Z","repository":{"id":363138442,"uuid":"1262099361","full_name":"atobouh/symapse","owner":"atobouh","description":"Symapse indexes a codebase, builds a deterministic call graph, and gives AI agents instant answers that would normally require dozens of file reads. 50% average token reduction measured across 8 real-world codebases.","archived":false,"fork":false,"pushed_at":"2026-06-07T17:03:06.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T17:14:26.536Z","etag":null,"topics":["ai","architecture","call-graph","code-analysis","coding-agent","impact-analysis","mcp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atobouh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/supported-extensions.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-07T15:16:15.000Z","updated_at":"2026-06-07T17:03:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/atobouh/symapse","commit_stats":null,"previous_names":["atobouh/symapse"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/atobouh/symapse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atobouh%2Fsymapse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atobouh%2Fsymapse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atobouh%2Fsymapse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atobouh%2Fsymapse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atobouh","download_url":"https://codeload.github.com/atobouh/symapse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atobouh%2Fsymapse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34394405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","architecture","call-graph","code-analysis","coding-agent","impact-analysis","mcp"],"created_at":"2026-06-16T07:32:25.355Z","updated_at":"2026-06-16T07:32:25.438Z","avatar_url":"https://github.com/atobouh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symapse\n\n\u003e Architectural awareness engine for AI coding agents\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/symapse?color=blue\"\u003e\n  \u003cimg alt=\"license\" src=\"https://img.shields.io/npm/l/symapse\"\u003e\n  \u003cimg alt=\"node\" src=\"https://img.shields.io/node/v/symapse\"\u003e\n\u003c/p\u003e\n\n## Install\n\n```bash\nnpm install -g symapse\n```\n\nRequires **Node.js 22+**. No dependencies. Zero config.\n\n---\n\n## Quick Start\n\n```bash\n# Index your project\nsymapse index /path/to/repo\n\n# Start the MCP server (for OpenCode/Cursor/Claude integration)\nsymapse mcp /path/to/repo\n\n# Query from the terminal\nsymapse_ask \"add notification system\"\nsymapse_find login\nsymapse_map \"direct login after payment\"\nsymapse_audit 10\nsymapse_health\n\n# Live coding awareness — start watching for collisions, breaks, and dead code\nsymapse_health --watch\n```\n\n---\n\n## OpenCode Integration\n\nInstall Symapse first:\n```bash\nnpm install -g symapse\n```\n\nAdd to your project's `opencode.json`:\n\n```json\n{\n  \"mcp\": {\n    \"symapse\": {\n      \"type\": \"local\",\n      \"command\": [\"npx\", \"symapse\", \"mcp\", \".\"],\n      \"enabled\": true\n    }\n  }\n}\n```\n\nCreate an `AGENTS.md` in your project root with:\n\n```markdown\n## RULE 1: Always check Symapse first\n\n| Instead of... | Use... |\n|---|---|\n| Reading files for architecture | `symapse_map` |\n| Grepping for symbols | `symapse_find` |\n| Guessing where code goes | `symapse_ask` |\n| Finding dead code or duplicates | `symapse_audit` |\n| Re-indexing or checking status | `symapse_health` |\n\nFirst action every session: `symapse_ask \"\u003crequest\u003e\"`. If it returns questions, ASK them.\nIf Symapse doesn't answer your question, read files.\n```\n\n---\n\n## Tools\n\n| Tool | Question it answers |\n|---|---|\n| `symapse_ask` | What should I know before working on X? |\n| `symapse_find` | Where is X and what does it touch? |\n| `symapse_map` | Show me the shape of this repo / feature |\n| `symapse_audit` | What's wrong, unused, or duplicated? |\n| `symapse_diff` | After changes: what did I affect? What did watch detect? |\n| `symapse_health` | What's the state of the index? Watch mode |\n\n**Temporal workflow:**\n- Before coding: `symapse_ask` → `symapse_map` → `symapse_find`\n- During coding: `symapse_health --watch`\n- After each edit: `symapse_diff`\n- Maintenance: `symapse_audit` | `symapse_health`\n\n---\n\n## Supported Languages\n\nJavaScript, TypeScript, Python, Go, Rust, C#, PHP, Ruby, Lua, and C.\n\n---\n\n## How It Works\n\n1. **Index** — walks the repo, extracts functions/classes/methods with regex parsers, builds call and import edges\n2. **Store** — normalized SQLite schema, incremental by mtime + engine version\n3. **Expose** — CLI, REST API, and MCP over stdio. All share the same engine.\n\n---\n\n## Self-Improving\n\nSymapse learns from agent behavior across sessions without any user involvement:\n\n- **Session coherence** — biases context toward the subsystem the agent is already exploring\n- **Usage signals** — logs which symbols agents actually drill into\n- **Workflow memory** — auto-detects repeated symbol sequences across sessions\n- **Intent classification** — routes config/docs questions away from source code exploration\n\n---\n\n## Architecture\n\n```\npackages/\n  engine/   — regex-based parser, call graph, all analysis tools\n  db/       — SQLite persistence with incremental indexing\n  mcp/      — MCP protocol server (JSON-RPC over stdio)\napps/\n  cli/      — command-line entry point\n  api/      — HTTP API server + web dashboard\n  web/      — terminal-style web UI\n```\n\n---\n\n## License\n\nAGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatobouh%2Fsymapse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatobouh%2Fsymapse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatobouh%2Fsymapse/lists"}