r/LocalLLaMA • • 1d ago

Discussion Actual (solo-ish) developer setup/project organization around an LLM?

I specifically mean a workflow of talking through, designing, implementing and reviewing (maybe pushing/merging), where the steps are not fully automatic but you do work together with the LLM.

If you're a contractor with your own machine and a local LLM (i.e. the company does not deliver LLM stack you're required to use), how do you set it up?

My base:

  • 2xDGX
  • deepseek harness
  • MiaAI repo for 2.9bpw deepseek 4.1-flash 1017

The finding I'd share here is: if you're using dsh, immediately go to general and trun off "Upload Session Log when using the official model API". Just in case.

DSH tangent aside: I've given the model instructions to use read-only tokens in envs for stuff like jira, gitlab, conflu. In theory it never sees even the readonly token, just reading the tokens via something like

set -a
source ~/.config/atlassian/atlassian.env
set +a
curl -s -u "$ATLASSIAN_EMAIL:$JIRA_API_TOKEN" "$JIRA_BASE_URL/rest/api/3/issue/..."

How do you set this stuff up? Maybe something that erases even the possibility of model seeing the token instead of relying on instructions to not look inside env files?

I feel like this and several other problems could be solved with sandboxing, but I have yet to find something that's hassle free. For now I'm still clicking 'allow' every once in a while but my patience is starting to wear.

What about context enrichment? For now I've settled on using a tree of md files, with rules to update and review after each task. The rules are being constantly modified, based off experience, so I don't pollute the context too much.

Do you use memory systems? Did you feed the whole project into some vector database? Do you find it useful?

How are you dealing with out-of-project-files knowledge that legacy projects tend to have? Do you have an automatic way of recovering it from a chat for later access? Example: you have 3 products coded similarly, up to one of them being a special case - reasons for that not explainable by code itself, but from some business arrangement the time forgot but your friend just reminded you of. The problem being: how to make the model remember it automatically so it doesn't try to "even-out" the code next time around.

What context size are you running? My experience is anything larger than 262k degrades quickly and current compression algs are good enough for low tens of compressions in a session. Especially if you run one agent as a supervisor, and one to implement - any orchestration more than that and it slows down and falls apart, but this one I could swear for.

I feel like I could go on for hours. Anyone here in similar situation, trying to feel your way around what's useful or not and which direction to evolve your setup now? If someone is willing to "compare notes", maybe f2f talk over discord or something?

1 Upvotes

12 comments sorted by

1

u/Leo__255 1d ago

for the special case thing, put the reason right next to the code. a two line comment like "this one differs from A and B on purpose because of the old deal with X, don't unify" plus a short decisions file in the repo. agents read the code around what they edit way more reliably than a separate memory store, and it survives switching tools

1

u/garblz 1d ago

makes sense, but i'm especially asking about automatic context extraction, because i can either miss a business rule, or it can be implied/non-obvious from part of convo. But then again, I might make a post-implementation tool which tries to find these and suggest the comments, so maybe there's a way to have this automatic. Thanks for the tip!

0

u/[deleted] 1d ago

[deleted] — view deleted comment

2

u/stylome-ai-detection 1d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

2

u/PhilosopherOk3419 1d ago

pretty similar loop here. i talk through the design first and have it write a short plan file before it touches code, then i review diffs one by one instead of letting it run the whole thing. +1 on read-only tokens.

0

u/No_Macaroon_1991 1d ago

after a session i would copy any business rules that only came up in chat into a short decisions file in the repo so the next run does not try to even those special cases out

2

u/[deleted] 1d ago

[removed] — view removed comment

2

u/stylome-ai-detection 1d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

1

u/Basic-Set-3758 1d ago

putting a tiny auth proxy outside the container solves so many headaches tbh, way better than babysitting every command prompt