Skip to content

Commit 969a2bb

Browse files
Merge pull request #70 from srijanAtGithub/adding-some-docs
Updated readme
2 parents 34548d1 + 4f0a167 commit 969a2bb

16 files changed

Lines changed: 204 additions & 162 deletions

How To Use.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# How to Use
2+
3+
## Requirements
4+
5+
- Python 3.11+
6+
- [`uv`](https://docs.astral.sh/uv/) (recommended) or pip
7+
8+
## Installation
9+
10+
```bash
11+
uv tool install sicily
12+
```
13+
14+
## First-time Setup
15+
16+
```bash
17+
sicily init
18+
```
19+
20+
This creates `~/.sicily/` and populates it with:
21+
22+
- `settings.json` — API keys and configuration
23+
- `Souls/` — personality definition files (edit these to change how Sicily talks)
24+
- `Context/` — long-term preferences, auto-managed by the agent
25+
- `Recurring_Tasks/recurring_tasks.yaml` — scheduled task definitions
26+
27+
```bash
28+
sicily config
29+
```
30+
31+
Opens `~/.sicily/` in your file manager. Fill in `settings.json` with your API keys:
32+
33+
```json
34+
{
35+
"OPENAI_API_KEY": "sk-...",
36+
"TELEGRAM_BOT_TOKEN": "...",
37+
"TAVILY_API_KEY": "...",
38+
"GITHUB_TOKEN": "..."
39+
}
40+
```
41+
42+
- `TELEGRAM_BOT_TOKEN` and `GITHUB_TOKEN` are only required for `sicily run` (Agent mode).
43+
- `TAVILY_API_KEY` is required for `sicily run` (Agent mode) and for `sicily navigator --start` (Navigator's backend).
44+
- For local file sessions (`sicily start`, Cowork mode), only `OPENAI_API_KEY` is needed.
45+
46+
---
47+
48+
## Running Sicily
49+
50+
### Sicily Agent (Telegram)
51+
52+
```bash
53+
sicily run
54+
```
55+
56+
Starts the full agent: FastAPI backend, Telegram listener, session manager, and recurring task scheduler. Connect your Telegram bot and start chatting.
57+
58+
### Sicily Cowork (Local Terminal)
59+
60+
```bash
61+
cd /path/to/your/project
62+
sicily start
63+
```
64+
65+
Locks the sandbox to your current directory, indexes all files, and drops you into an interactive terminal session. Ask anything about your files — Sicily will search the index first, then read only what it needs.
66+
67+
```
68+
>>>: What were the key decisions in meeting notes?
69+
>>>: What is the flight route for my Japan trip?
70+
>>>: Find the document containing my Aadhar and PAN card
71+
>>>: Summarise the Q3 report and compare it to Q2
72+
>>>: Create a new file called summary.md with the main findings
73+
```
74+
75+
Type `exit` or `quit` to end the session.
76+
77+
### Sicily Navigator (Browser Extension)
78+
79+
Navigator has two parts: a local backend server, and the Chrome extension itself.
80+
81+
**1. Start the backend:**
82+
83+
```bash
84+
sicily navigator --start
85+
```
86+
87+
This starts the Navigator server in the background on `http://127.0.0.1:8765`. Requires `OPENAI_API_KEY` (and `TAVILY_API_KEY` for research-backed features like "find more like this").
88+
89+
Manage the backend with:
90+
91+
```bash
92+
sicily navigator --status # check whether it's running
93+
sicily navigator --stop # stop it
94+
```
95+
96+
**2. Load the extension in Chrome**, then use it in two ways:
97+
98+
- **Right-click any selected text** on any web page to get writing tools — rewrite, summarise, or ask a question about the selection.
99+
- **Open the side panel** for the chat bot, one-click page summarise, one-click tab organiser, "find more like this," the reading list, drag-and-drop snippets and collections, and `@`-tab / `#`-collection references.
100+
101+
---
102+
103+
## CLI Reference
104+
105+
| Command | Description |
106+
| ---------------------- | ----------------------------------------------------------------------------------------------- |
107+
| `sicily --version` | Shows the installed version |
108+
| `sicily init` | First-time setup — creates `~/.sicily/` with config templates |
109+
| `sicily config` | Opens the config folder in your file manager |
110+
| `sicily run` | Starts the full Telegram agent (requires all API keys) |
111+
| `sicily start` | Starts a local terminal session sandboxed to the current directory (requires only OpenAI key) |
112+
| `sicily navigator` | Manages the Navigator backend for the browser extension — `--start`, `--stop`, `--status` |
113+
| `sicily usage` | Shows token usage and estimated cost — `--session`, `--day`, `--week` |
114+
| `sicily update` | Updates Sicily to the latest published version |
115+
| `sicily reset` | Resets all config, Souls, Context, and file index back to defaults |
116+
| `sicily uninstall` | Deletes `~/.sicily/` and uninstalls the package |
117+
| `sicily help` | Lists available commands |
118+
119+
---
120+
121+
## Customising Sicily
122+
123+
**Personality:** Edit `~/.sicily/Souls/*.md` to change how Sicily communicates. The Soul file is injected as part of the system prompt and can be swapped without touching any code.
124+
125+
**Scheduled tasks:** Edit `~/.sicily/Recurring_Tasks/recurring_tasks.yaml`. Set `enabled: false` to pause a task, or add new entries — no restart required on next run.
126+
127+
**Preferences:** Sicily builds these automatically over time. They live in `~/.sicily/Context/preferences.md` and can be edited manually if needed.

Media/Cowork_Demo_Video_1.mp4

2.34 MB
Binary file not shown.

Media/Reading_Tools_Demo_1.mp4

6.09 MB
Binary file not shown.

Media/Reading_Tools_Demo_2.mp4

4.92 MB
Binary file not shown.

Media/Writing_Tools_Demo.mp4

734 KB
Binary file not shown.

0 commit comments

Comments
 (0)