Skip to content

Instantly share code, notes, and snippets.

View cszentkiralyi's full-sized avatar

Chris Szentkiralyi cszentkiralyi

  • Colorado Springs, CO
View GitHub Profile
@cszentkiralyi
cszentkiralyi / SLOP.md
Created May 7, 2026 23:56
Qwen3.6 35B-A3B analysis of Dolorous via slop

Prompt: Map out the structure of this project, at a very high level. Describe the folder structure, the kinds of code that lives where, and a very short overview of how to run/build the project based on a package file or README. DO NOT read more than the top 20 lines of any particular file. Record your results in the file SLOP.md

Project Structure: Dolorous Code (dol)

Dolorous Code is an agentic development tool written in Go. It uses AI models (specifically Moonshot/OpenAI) to interact with a codebase autonomously, allowing the agent to read, write, and edit files within a sandboxed environment.

High-Level Overview

The project is a Go CLI application (main.go) that acts as a chat interface for an AI agent. The agent is equipped with "tools" (file reading, writing, editing, listing) to navigate and modify the project directory. It maintains a conversation history with the AI to plan and execute code changes.

Here's the full breakdown:


1. Memory Operations (Tools)

Four tools are exposed to the model, all defined in memory/tools.py:

Tool What it does
[
// Rebind <Esc> to not do Calva stuff, because that messes with the VIM extension
{
"key": "escape",
"command": "-calva.clearInlineResults"
},
{
"key": "shift+escape",
"command": "calva.clearInlineResults",
"when": "editorTextFocus && !editorHasMultipleSelections && !editorReadOnly && !hasOtherSuggestions && !suggestWidgetVisible && editorLangId == 'clojure'"
@cszentkiralyi
cszentkiralyi / .spacemacs
Last active February 15, 2023 16:12
Spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@cszentkiralyi
cszentkiralyi / context_quick_scope.vim
Last active April 16, 2016 07:15
Only enable the quick-scope plugin's highlighting when using the f/F/t/T movements
" Insert into your .vimrc after quick-scope is loaded.
" Obviously depends on <https://github.com/unblevable/quick-scope> being installed.
" Thanks to @VanLaser for cleaning the code up and expanding capabilities to include e.g. `df`
let g:qs_enable = 0
let g:qs_enable_char_list = [ 'f', 'F', 't', 'T' ]
function! Quick_scope_selective(movement)
let needs_disabling = 0
@cszentkiralyi
cszentkiralyi / vim-sexp-cheatsheet.md
Last active December 22, 2025 05:37
vim-sexp cheatsheet

Prereqs

These are for the combined vim-sexp (https://github.com/guns/vim-sexp) and vim-sexp-mappings-for-regular-people (https://github.com/tpope/vim-sexp-mappings-for-regular-people) plugins. vim-sexp is neat on its own but Tim Pope makes common stuff much easier.

Note that some vim-sexp functionality depends on <LocalLeader> mappings. This is a different leader key than the global leader, and is the variable maplocalleader (instead of mapleader). To see if you have this set, use :echo maplocalleader; if it errors out you'll need to set it, otherwise it will echo the key. If you want to set your LocalLeader to <Space>, you'll need two commands in your .vimrc, since by default <Space> is bound to <Right> in normal mode:

nnoremap <Space> <Nop>
let maplocalleader=" "

TOC

execute pathogen#infect()
syntax on
filetype plugin indent on
set ffs=unix,dos
set nocompatible
set expandtab
set smarttab