sinhaankur commited on
Commit
662ade7
·
verified ·
1 Parent(s): d8a21c1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - agent
7
+ - personal-ai
8
+ - local-llm
9
+ - tool-use
10
+ - function-calling
11
+ - ollama
12
+ - lm-studio
13
+ - apple-intelligence
14
+ - privacy
15
+ - local-first
16
+ - voice-assistant
17
+ pretty_name: Cognitive Twin — a local-first personal AI twin
18
+ ---
19
+
20
+ # Cognitive Twin
21
+
22
+ > *This repository is **not** a model.* It is the **model card / project home** for
23
+ > [Cognitive Twin](https://github.com/sinhaankur/cognitive-twin-agent) — a
24
+ > local-first personal AI twin. Published here so anyone running a local LLM can
25
+ > understand, fork, or critique the agent without cloning first. The runnable code
26
+ > lives on GitHub; nothing here downloads weights.
27
+
28
+ A **personal AI twin** that runs on your own machine — a digital version of *you*.
29
+ It learns who you are (a persona you create), reasons with a local model, and calls
30
+ **skills** to do real things. Local-first by default; nothing leaves the machine
31
+ unless you allow it.
32
+
33
+ ## What it does
34
+
35
+ - **Be you** — a persona (likes, dislikes, values, style) so it reasons and speaks
36
+ as you, not a generic assistant.
37
+ - **Remember you** — private, on-device memory of how you actually behave. Clearable
38
+ anytime.
39
+ - **Pick the right brain** — routes each request to the best local model by task.
40
+ - **Talk** — a native macOS Siri-style app: speak to it, it speaks back.
41
+ - **Act** — bounded, permissioned tool-calling (web research, screen reading, open
42
+ apps/URLs) with confirmation.
43
+
44
+ ## Choose your model backend
45
+
46
+ The twin drives more than one local backend and lets you switch models live:
47
+
48
+ | Backend | How models appear | Notes |
49
+ | --- | --- | --- |
50
+ | **Ollama** (default) | `llama3.2`, `qwen2.5:3b` | bare names |
51
+ | **OpenAI-compatible** | `lmstudio/qwen2.5-7b-instruct` | **LM Studio**, `llama.cpp --api`, **Jan**, vLLM, LocalAI |
52
+ | **Apple Intelligence** | `Apple Intelligence (on-device)` | fully on-device, no server |
53
+
54
+ Tool/function calling is translated between the Ollama and OpenAI APIs, so skills
55
+ work the same on either backend. Enable the OpenAI-compatible backend:
56
+
57
+ ```bash
58
+ # LM Studio: load a model, then Developer ▸ Start Server (defaults to :1234)
59
+ CTWIN_USE_LMSTUDIO=1 python -m cognitive_twin voice --web
60
+ # …or any OpenAI-compatible base URL:
61
+ CTWIN_OPENAI_BASE=http://localhost:8080/v1 python -m cognitive_twin voice --web
62
+ ```
63
+
64
+ ## Quick start
65
+
66
+ ```bash
67
+ git clone https://github.com/sinhaankur/cognitive-twin-agent
68
+ cd cognitive-twin-agent
69
+ # Ollama path: install Ollama (https://ollama.com) and pull a tool-capable model
70
+ ollama pull llama3.2
71
+ python -m cognitive_twin "good morning"
72
+ ```
73
+
74
+ See the [GitHub repo](https://github.com/sinhaankur/cognitive-twin-agent) for the
75
+ full README, the native macOS **Twin Voice** app, model routing, and the skill
76
+ system.
77
+
78
+ ## Why local-first
79
+
80
+ Local models already handle a large share of everyday queries. The gap is the
81
+ *software around them*: a persona, a skill system, and a reliable loop that turns
82
+ "do X" into real actions — locally, privately, on hardware you own.
83
+
84
+ ## License
85
+
86
+ MIT. Inspired by [OpenJarvis](https://github.com/open-jarvis/OpenJarvis)
87
+ ("Personal AI, on personal devices") — an original implementation, same spirit.