Developers often keep AI conversation logs in separate files. The logs contain useful snippets, prompts, and responses that could become a personal reference. The open‑source project ditto shows a simple way to pull those snippets together and turn them into structured data.
At its core, ditto reads raw text files, extracts the parts that matter, and writes them into a JSON format that is easy to query. The JSON objects contain fields for the speaker, the timestamp, and the content. By keeping the schema consistent, a developer can feed the output into a search index or a small knowledge graph.
Consistent schema and clear identifiers make the data usable across tools. Once the logs are in JSON, a developer can write a tiny script that groups entries by topic, tags them, or even creates short summaries. The result is a personal knowledge base that grows with each interaction.
One practical use case is building an agent profile. An agent that assists with code reviews needs to remember past decisions, style guidelines, and common patterns. By feeding the structured logs into the agent, the model can retrieve relevant context without re‑reading the entire chat history. This reduces token usage and speeds up responses.
The ditto approach also helps with privacy. Because the logs are stored locally in a simple format, developers can control what gets shared and what stays private. No external service is required unless the developer chooses to sync the JSON files to a cloud bucket.
To get started, clone the repository, point the script at a folder of .txt logs, and run the conversion command. The output will appear in a new folder called knowledge. From there, a developer can import the JSON into a tool like masterphub.io to visualize connections and add manual tags.
After the first conversion, the workflow becomes a loop: new chats are saved, the script runs, and the knowledge base updates. Over time the base becomes a reliable reference for debugging, design decisions, and even onboarding new team members.
Because the process is open source, developers can add their own filters. For example, a filter could drop any entry that contains personal data, or a filter could highlight code blocks for later review. The flexibility keeps the system aligned with each project's needs.
In short, turning scattered AI logs into a structured knowledge base is a small step that yields big gains in productivity. The ditto repo provides a ready‑made script, a clear JSON schema, and a path to integrate with existing tools. Try it on a recent set of chats and see how quickly the data becomes searchable and actionable.