neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Epicode - AI Memory Operating System. Spatial AI memory with knowledge graph, MCP integration, and auto-defense.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Epicode is an open-source memory service for AI agents. Retrieval is BM25 plus HNSW. Memories also have a tetrahedral placement used for clustering and visualization, a knowledge graph, validity windows, and an MCP endpoint for cross-session recall. Placement is not the retrieval index.
The fastest way to run Epicode locally is with Docker Compose:
• Spatial placement — memories can be placed as tetrahedrons for clustering and visualization. This is not the retrieval index.
• Semantic Search — BM25 + HNSWREADME 전문 보기 ↗English · 中文 · Quick Start · Docs · OpenAPI · Releases
Epicode is an open-source memory service for AI agents. Retrieval is BM25 plus HNSW. Memories also have a tetrahedral placement used for clustering and visualization, a knowledge graph, validity windows, and an MCP endpoint for cross-session recall. Placement is not the retrieval index.
The fastest way to run Epicode locally is with Docker Compose:
git clone https://github.com/sunormesky-max/epicode.git
cd epicode/deploy
cp .env.example .env
# Edit .env and add your DEEPSEEK_API_KEY and keys
docker compose up --build -d
Then store and search a memory:
curl -X POST http://127.0.0.1:8080/api/v1/remember \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{"content": "Epicode gives AI persistent spatial memory"}'
# Store a memory that expires in 7 days
curl -X POST http://127.0.0.1:8080/api/v1/remember \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{"content": "Sprint deadline: ship v1.0 by Friday", "ttl_seconds": 604800}'
curl -X POST http://127.0.0.1:8080/api/v1/search \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{"query": "AI memory"}'
💡 Live demo: epicode.cn
valid_from / valid_until windows and freshness decay scoring. This is a storage/filter feature, not a claim of parity with Zep/Graphiti on a shared benchmark.tools/list, including memory, identity, skills, and L0 drive tools.epicode-guard watches SSH/Web/honeypot traffic and auto-bans attackers./v1/stats.AI Agent → POST /api/v1/remember
→ Nginx (strips /api prefix)
→ Security middleware (API key + rate limit + energy check)
→ GatewayCenter (embedding → LLM classification → spatial placement)
→ New tetrahedron placed in Space (auto-merge nearby vertices)
→ Knowledge graph updated
→ Scheduler runs background cycles: pulse / link / dedup / dream
Read more in docs/architecture.md.
| Layer | Technologies |
|---|---|
| Frontend | React 19 · TypeScript · Vite 7 · Tailwind CSS |
| Backend | Rust · Axum · Tokio · SQLite · ONNX Runtime |
| Search | HNSW · BM25 · ONNX embeddings |
| Cognition | DeepSeek LLM API |
| Defense | Rust · nftables · firewalld · TCP honeypots |
| Deployment | Docker · Docker Compose · Kubernetes · Nginx |
# Frontend
cd frontend
npm install
npm run dev # http://localhost:5173
# Backend
cd backend
cargo build --release
cargo test --all-targets
./target/release/epicode --cloud # Cloud mode on :9111
See CONTRIBUTING.md for the full development setup.
cd deploy
cp .env.example .env
# fill in DEEPSEEK_API_KEY, EPICODE_ADMIN_KEY, EPICODE_MASTER_KEY
docker compose up --build -d
Visit http://127.0.0.1:8080 for the local HTTP gateway. Public deployments must put a TLS proxy in front; see docs/deployment.md.
pip install epicode-sdk
from epicode import EpicodeClient
client = EpicodeClient("your-api-key")
client.remember("Project deadline is June 15.")
results = client.search("deadline")
npm install epicode-sdk
import { EpicodeClient } from "epicode-sdk";
const client = new EpicodeClient("your-api-key");
await client.remember("Deployed v2.3 to production");
const results = await client.search("production deploy");
Note: The old package name
tetramem-sdkis deprecated. Please useepicode-sdk.
We welcome contributions!
Epicode is released under the MIT License.
Note on build-time dependencies. The local embedding engine (
backend/src/engine/vector.rs) depends on theortcrate, which downloads a prebuilt, MIT-licensed ONNX Runtime from the officialort-rsdistribution mirror (cdn.pyke.io) the first time you build the backend. This is a third-party precompiled binary, not source. To build fully from source or use a system-provided ONNX Runtime instead, setORT_STRATEGY=system/ORT_LIB_DIR(orORT_STRATEGY=compile) at build time. See theortdocs for details.
Made with ❤️ by sunormesky-max and contributors.