Skip to content

wtjerry/claude_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

claude_setup

Here i described how i currently use claude CLI. Currently i use it purely from the CLI without any integration into any SW like IDE or github or anything. To mitigate security concerns i use it only within a VM (vagrant) without any shared FS. Data is exchanged via git remote.

doing

  1. ensure vagrant is running
  2. host: j-claude-main (fetch main, switch on vm to allow pushing, push to vm)
  3. on vm in main worktree start claude
  4. use superpowers
  5. use brainstorm superpowers
  6. prompt
  7. back and forth
  8. it will ask to use either subagent or other CLI implement feature, choose subagent

setup

general

  1. running claude in vagrant
  2. ~/.claude/settings.json: see file in repo
  3. ~/.claude/CLAUDE.md. see file in repo
  4. docs excluded in .git/info/excluded to not checkin plans
  5. .worktrees excluded bc superpowers wants this dir

one time steps

  1. host: install vagrant
  2. host: vagrant plugin install vagrant-scp / or use plain ssh with ~/.ssh/config
  3. host: vagrant up
  4. host: vagrant scp ~/your_repo /home/vagrant/coding/
  5. host: vagrant ssh
  6. guest: remove real remote from git repo
  7. guest: install dotnet
    • install dotnet via install script
    • add to path via .bashrc or something
    • dotnet tool install --global Microsoft.Artifacts.CredentialProvider.NuGet.Tool
    • dotnet restore --force --interactive # + login
  8. guest: install claude plugins
  9. host: setup git upstream to vagrant
    • vagrant ssh-config > vagrant-ssh
    • append to ~/.ssh/config
    • change config alias to vagrant_claude
    • in repo: git remote add vagrant_claude vagrant_claude:/home/vagrant/coding/repo

plugins

  • superpowers
  • context7

prompt

depends on the kind of problem:

simple

if i already know what and how to do it but dont know the exact syntax:

goal: do this exact thing

consider this and that while doing the thing
in ABC there is an example which is similar in the XYZ aspect.
ignore FooBar, because it will be dealt with in a different step

steps:
0. look at this and that
1. add the contract ABC
2. add a spec for XYZ
3. implement the part about FooBar
4. implement the part about Quz

complex

if i dont yet know how to implement the thing, i still state a goal and the "consider, example, ignore" parts but do a back and forth to get the exact steps.

aliases

alias j-claude-main="git fetch origin; ssh vagrant_claude 'cd ~/coding/repo/ && git switch main_b' && git push --force vagrant_claude origin/main:main && ssh vagrant_claude 'cd ~/coding/repo/ && git reset --hard main && git switch main'"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors