Skip to content

Commit fb316ac

Browse files
committed
Add commands
1 parent 2fe1004 commit fb316ac

4 files changed

Lines changed: 447 additions & 0 deletions

File tree

‎assets/commands/daidocs.md‎

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# TAGLINE
2+
3+
CLI for an open plain-text AI memory format (.dai files on disk)
4+
5+
# TLDR
6+
7+
**Install and configure** Claude Code, Cursor, and other MCP clients
8+
9+
```daidocs setup```
10+
11+
Show **what is configured** and how to change each switch
12+
13+
```daidocs setup --status```
14+
15+
**Convert** existing chat history into a store (interactive)
16+
17+
```daidocs convert```
18+
19+
Convert selected Claude Code sessions **non-interactively**
20+
21+
```daidocs convert --source claude --project [name] --pick [1-5] --to [~/DaiDocs] --yes```
22+
23+
List sessions **captured but not yet converted**
24+
25+
```daidocs pending```
26+
27+
List **declared stores**, or find one that moved
28+
29+
```daidocs stores```
30+
31+
```daidocs stores --scan [path/to/code]```
32+
33+
**Back up** a project folder (skip **node_modules** and **.git**)
34+
35+
```daidocs backup [path/to/project] --to [path/to/backups]```
36+
37+
Find (or rewrite) **credentials** already in a store
38+
39+
```daidocs scrub```
40+
41+
```daidocs scrub --apply```
42+
43+
**Ingest** a folder of **.txt** / **.md** / **.jsonl** into a store
44+
45+
```daidocs ingest [path/to/chats] [path/to/store]```
46+
47+
**Ask** a question of a store from the shell
48+
49+
```daidocs ask [path/to/store] "[what did we decide about deploy?]"```
50+
51+
# SYNOPSIS
52+
53+
**daidocs** _command_ [_options_]
54+
55+
**daidocs** **setup** [_options_]
56+
57+
**daidocs** **convert** [_options_]
58+
59+
**daidocs** **pending** [**--route** _project_] [**--to** _folder_]
60+
61+
**daidocs** **stores** [**--scan** _folder_] [**--forget** _id_]
62+
63+
**daidocs** **backup** _folder_ **--to** _destination_ [**--zip**] [**--memory-only**]
64+
65+
**daidocs** **scrub** [_store_] [**--apply**]
66+
67+
**daidocs** **ingest** _folder_ [_store_] [**--observer** _spec_] [**--force**]
68+
69+
**daidocs** **ask** [_store_] _question_ [**--actor** _spec_]
70+
71+
# PARAMETERS
72+
73+
**setup**
74+
> Detect assistants on this machine (Claude Desktop, Claude Code, Cursor, Windsurf, Codex, Cline, Continue, Zed) and write MCP / hook / icon / reading-protocol config, backing up every file it touches.
75+
76+
**--status**
77+
> With **setup**, print each switch, whether it is on, and the command that changes it.
78+
79+
**--ask**
80+
> With **setup**, choose each surface interactively instead of configuring all of them.
81+
82+
**--restore** / **--unregister**
83+
> Put back files **setup** changed, or remove what was installed.
84+
85+
**--observer** _spec_
86+
> Model that writes **.dai** files (for example **openai:gpt-4.1-mini**). Applies to conversion, hooks, MCP, and the CLI until changed.
87+
88+
**--project** _name_ / **--project-type** _type_ / **--store** **here**|**shared**
89+
> Declare the current folder as a project, set its type (**normal**, **locked**, **frozen**, **connected**, **shared**, **confidential**, **temporary**), and choose a per-folder store or the shared **~/DaiDocs** store.
90+
91+
**convert**
92+
> Turn chat history into **.dai** files. Interactive by default. Reads Claude Code sessions under **~/.claude/projects**, **_pending** / **_unconverted** backlog, or a folder of **.txt** / **.md** / **.jsonl**.
93+
94+
**--source** _claude_|_raw_|_folder_
95+
> Limit **convert** to Claude Code history, already-captured unconverted text, or an export folder.
96+
97+
**--pick** _all_|_list_ / **--to** _store_ / **--yes**
98+
> Choose which items, where to write them, and skip prompts.
99+
100+
**pending**
101+
> List captured-but-unconverted sessions, grouped by project.
102+
103+
**--route** _project_
104+
> Convert one project's pending group into that project's store.
105+
106+
**stores**
107+
> List declared stores and any whose folders have gone missing. Ids live in **~/.daidocs/stores.json**.
108+
109+
**backup** _folder_
110+
> Copy a project to a dated destination, skipping **node_modules** and **.git**. **--zip** writes a zip; **--memory-only** copies only **.daidocs**.
111+
112+
**scrub**
113+
> Report credentials already stored in **.dai** files. **--apply** rewrites them out.
114+
115+
**ingest**
116+
> Convert a folder of documents into a store. Calls the observer model (can cost API usage). **--force** re-ingests files that are already present.
117+
118+
**ask**
119+
> Answer a question from a store on the command line. **--actor** _spec_ selects the answering model (can cost API usage).
120+
121+
# DESCRIPTION
122+
123+
**daidocs** is the command-line front end for DaiDocs, an Apache-2.0 plain-text format for assistant memory. Each conversation becomes a **.dai** file with three UTF-8 zones (YAML header, fenced JSON, and text) plus a small derived index. The files live on your disk and can be read with **grep**, **git**, or any editor.
124+
125+
The npm package also installs **daidocs-setup**, **daidocs-server** (stdio MCP), and session hook binaries. **npx daidocs setup** is the documented one-shot install. A Python extra (**pip install daidocs**) exposes the same **daidocs** command and a **Store** reader; the engine itself still needs **Node.js 18+**.
126+
127+
The default shared store is **~/DaiDocs**. Declared project folders keep memory in **.daidocs/store** inside the folder. Session hooks (when installed) convert in the background after about 4,000 new tokens; shorter sessions wait in **_unconverted/** and are still injected into the next session verbatim.
128+
129+
**ingest** and **ask** are the only subcommands that call a model themselves. Conversion through Claude Code hooks is done by the assistant already in the session and needs no extra API key.
130+
131+
# ENVIRONMENT
132+
133+
**DAIDOCS_STORE**
134+
> Default store path. Default: **~/DaiDocs**. When set, the store argument on **ingest**, **ask**, and **scrub** can be omitted.
135+
136+
**DAIDOCS_OBSERVER**
137+
> Override the observer model for one run.
138+
139+
**DAIDOCS_DISABLE**
140+
> Skip the auto-archive hook.
141+
142+
**DAIDOCS_NO_PING**
143+
> Decline the optional one-time anonymous install ping without being asked.
144+
145+
# CAVEATS
146+
147+
**.dai** files are not encrypted: **confidential** only stops other stores from reading them, it does not hide them on disk. **scrub** is not a guarantee that secrets are gone. Agent traces (tool calls, stack dumps) convert poorly. Below roughly 20k tokens of history the store adds little over keeping the raw transcript. **ingest** and **ask** spend tokens on a paid model when you are not on a subscription path that writes the extraction itself.
148+
149+
# HISTORY
150+
151+
DaiDocs launched in **September 2026** as an open format plus a Node reference engine and MCP server, maintained by **Kerneta** under Apache-2.0.
152+
153+
# SEE ALSO
154+
155+
[claude](/man/claude)(1), [grep](/man/grep)(1), [git](/man/git)(1)
156+
157+
# RESOURCES
158+
159+
```[Source code](https://github.com/Kerneta/daidocs)```
160+
161+
```[Homepage](https://daidocs.com)```
162+
163+
```[Documentation](https://github.com/Kerneta/daidocs/blob/main/docs/GUIDE.md)```
164+
165+
<!-- verified: 2026-09-16 -->

‎assets/commands/index.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,7 @@ daemonize.md
15881588
daff.md
15891589
dagger.md
15901590
dagster.md
1591+
daidocs.md
15911592
dalfox.md
15921593
daphne.md
15931594
daps.md
@@ -8678,6 +8679,8 @@ wine.md
86788679
wineboot.md
86798680
winecfg.md
86808681
winedbg.md
8682+
winedump.md
8683+
winemaker.md
86818684
winepath.md
86828685
wineserver.md
86838686
winetricks.md

‎assets/commands/winedump.md‎

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# TAGLINE
2+
3+
Dump Windows binaries, demangle C++ symbols, and generate Wine .spec files
4+
5+
# TLDR
6+
7+
Dump a **PE file, DLL, or executable**
8+
9+
```winedump dump [path/to/file.dll]```
10+
11+
Dump only the **PE header and COFF sections**
12+
13+
```winedump dump -f [path/to/file.dll]```
14+
15+
Dump a **named directory** (import, export, debug, resource, tls, reloc, …)
16+
17+
```winedump dump -j [import] [path/to/file.dll]```
18+
19+
Dump **everything** (very verbose)
20+
21+
```winedump dump -x [path/to/file.dll]```
22+
23+
**Demangle** an MSVC C++ symbol
24+
25+
```winedump sym [?mangled_symbol]```
26+
27+
Generate a **.spec file and stub DLL** from an existing DLL
28+
29+
```winedump spec [path/to/file.dll]```
30+
31+
Generate **traced stub functions** using headers for prototypes
32+
33+
```winedump spec -I [path/to/include] -c -t [path/to/file.dll]```
34+
35+
# SYNOPSIS
36+
37+
**winedump** [**-h** | **sym** _sym_ | **spec** _dll_ | **dump** _file_] [_mode_options_]
38+
39+
# PARAMETERS
40+
41+
**-h**
42+
> Help mode. Print usage and exit.
43+
44+
**dump** _file_
45+
> Dump the contents of _file_. Supported formats include PE, NE, LE, minidumps, and **.lnk**.
46+
47+
**-C** (dump mode)
48+
> Demangle C++ symbols in dump output.
49+
50+
**-f** (dump mode)
51+
> Dump only the standard PE header structures and the COFF sections.
52+
53+
**-j** _dir_name_ (dump mode)
54+
> Dump only directory _dir_name_. For PE files: **import**, **export**, **debug**, **resource**, **tls**, **loadcfg**, **clr**, **reloc**, **except**, and the **apiset** section. For NE files: **export** and **resource**.
55+
56+
**-x** (dump mode)
57+
> Dump all available information, including every implemented directory.
58+
59+
**-G** (dump mode)
60+
> Dump the debug section if present (stabs only).
61+
62+
**spec** _dll_
63+
> Generate a Wine **.spec** file and stub implementation from _dll_.
64+
65+
**-I** _dir_ (spec mode)
66+
> Search _dir_ for C prototypes (implies **-c**). May be a directory, a quoted glob such as **include/\***, or **/dev/null** if you have no headers.
67+
68+
**-c** (spec mode)
69+
> Generate skeleton C stubs for each exported function (requires **-I**).
70+
71+
**-t** (spec mode)
72+
> Same as **-c**, but TRACE arguments when the stub is called (implies **-c**).
73+
74+
**-f** _dll_ (spec mode)
75+
> Forward calls to another _dll_ (implies **-t**).
76+
77+
**-D** (spec mode)
78+
> Emit a full Wine documentation header on each generated function.
79+
80+
**-o** _name_ (spec mode)
81+
> Output DLL name (default: the input DLL's name). Controls **.spec** / **_main.c** filenames and the **NAME_** prefix.
82+
83+
**-C** (spec mode)
84+
> Assume **__cdecl** instead of **__stdcall** when the calling convention cannot be determined.
85+
86+
**-s** _num_ / **-e** _num_ (spec mode)
87+
> Start or end the prototype search after symbol number _num_.
88+
89+
**-S** _symfile_ (spec mode)
90+
> Generate code only for the symbol names listed in _symfile_ (one per line).
91+
92+
**-q** / **-v** (spec mode)
93+
> Quiet or verbose progress while generating stubs.
94+
95+
**sym** _sym_
96+
> Demangle C++ symbol _sym_ and exit.
97+
98+
# DESCRIPTION
99+
100+
**winedump** is a Wine developer tool for inspecting Windows binaries and for bootstrapping a Wine reimplementation of a Win32 DLL.
101+
102+
In **dump** mode it prints structure from PE, NE, LE, minidump, and shortcut files, similar to vendor **pedump** utilities. In **spec** mode it reads a DLL's export table and writes a **.spec** file plus stub C sources so **winebuild** can produce a Wine **.so** that applications can link against. Optionally it fills those stubs with TRACE output or forwards calls to another DLL. In **sym** mode it demangles a single MSVC C++ symbol.
103+
104+
Spec mode for **foo.dll** writes **foo.spec**, **foo_dll.h**, **foo_main.c** (containing **FOO_Init**), and a **Makefile.in** meant for insertion into the Wine source tree.
105+
106+
# FILES
107+
108+
**function_grep.pl**
109+
> Perl helper used to retrieve a function prototype while generating stubs.
110+
111+
# CAVEATS
112+
113+
C++ demangling is not fully in sync with msvcrt; mismatched names are a known source of wrong prototypes. Generated stubs still need a real implementation. **-x** produces a lot of output; pipe it through a pager. Prototype search with **-I** expects reasonably clean C declarations, not full SDK headers with commentary.
114+
115+
# HISTORY
116+
117+
**winedump** is part of **Wine**, the Windows API implementation begun in **1993**. The tool was written by **Jon P. Griffiths** and **Michael Stefaniuc**.
118+
119+
# INSTALL
120+
121+
```apk: sudo apk add wine-dev```
122+
123+
<!-- packages: 2026-09-16 -->
124+
125+
# SEE ALSO
126+
127+
[wine](/man/wine)(1), [winemaker](/man/winemaker)(1), [winedbg](/man/winedbg)(1)
128+
129+
# RESOURCES
130+
131+
```[Source code](https://gitlab.winehq.org/wine/wine)```
132+
133+
```[Homepage](https://www.winehq.org/)```
134+
135+
```[Documentation](https://www.winehq.org/help)```
136+
137+
<!-- verified: 2026-09-16 -->

0 commit comments

Comments
 (0)