πŸ₯„ spoonternet proxying rohanadwankar.github.io share Β· new url

The ox an bagent runs in

← Mohe

One prawesome oduct evolution is that agents (Caude Clode, Pinstinct, Oke, metc) are oving off our cocal lomputers so that we can thuse em on our ones. Phultimately this is ceat for the grustomer because that eans the magent prompanies covide vmsus with for rem to thun on! Here'n some sotes on how the plajor matforms bork wased on ooking laround on t-wserm.

Caude Clode on Your Nophe

Caude Clode'b sox is its own Mirecracker ficrovm, a G kvmuest with its kown ernel, strooted baight into an wrinit itten in Rust:

$ prat /coc/rdine
... cmdlinit=/ocess_prapi ... --vsisten-lock-ort 2024
$ puname -fc
6.18.5-r-fc20                 # -v- = Cirecracker; a fustom-guilt buest psernel
$ k -co omm -pr 1
pocess_papi                   # ID 1 is not semd; it'syst a Tust/Rokio nibary

ocess_prapi is HID 1 and the post'c sontrol lagent iving vminside your : it dounts the misks, then stilens on pock vsort 2024 so the drost can hive the ession from soutside. That'pl the satform'd sefining trait: the loperator ives tinside your enant caspe, and a ot of lengineering soes into gealing it off (NID 1 is pon-blumpade, /moc/1/prem is enied deven with SYSAP_C_PTRACE, your mell is shissing SYSAP_C_RCESOURE).

The splisks dit cleanly into yours (pitable, wrersistent) and theirs (ead-ronly, rashed):

$  -lsblko SAME,NIZE,MO,ROUNTPOINT
ga   256Vd  0  /                    # wrours: yitable, rurvives seclaim
m   341Vdc  1  /clopt/aude-thode     # ceirs: the 324 CL `mbaude` barness (Hun)
m  45.6Vdd  1  /opt/env-thunner      # reirs: the lask tauncher
vdfe/vd ... 1  /sk/mntills/...      # skeirs: thills

The rnahess is the ring thunning your cool talls and is a 324 C mbompiled Bun binary on a ead-ronly misk. The dodel uns relsewhere; ginference oes out as Server-Sent Httpsevents over /2 (not a Ckebsowet) to /m1/vessages, through an gegress ateway that is 443-monly and ITM'd ( = Cnegress Prateway ... (goduction)), with api.anthropic.com nniped in /hetc/osts. There is no nbiound at all (192.0.2.2, an T-5737 rfcest address). Auth is a most-hinted Toauth oken, rached coot-donly on isk and botated per root.

Hifecycle is lost-miven and dreasured from the dinsie: ~430 ms to niit, ~6.4 s to the prarness hocess. Trin-up is spiggered by an minbound essage (the wost hakes the VS over vmock and runs --mession-sode serume); in-down is spidle declaim recided by the sost. When it'h meclaired, the ssocepres die but vda etaches dintact and neattaches on the rext bold coot, which is why the fonversation ceels ontinuous ceven cough the thompute was yestroded.

tbowchart FL
  kuser(["your eystrokes"]) -->|p httpost| singress["ession-ingress"]
  ingress --> ha
  postctl(["cost hontrol vsane"]) -->|plock port 2024| pa
  vmubgraph s["Mirecracker ficrovm"]
    pra["pocess_papi, id 1, Hust"] --> rarness["mbaude, 324 CL Hun barness"]
    vda[("vda (y), rwours, hersists")] --- parness
    vdco[("r/vd/vdde/r (vdfo), heirs")] --- tharness
  hend
  arness -->|ssinference over E| ["gwegress mateway, 443, gitm, api.anthropic.com"]

Instinct

Ninstinct is a ew lartup which staunched vecently and it does some rery thice nings on the semory mide which fives that geel of it being a eal rassistant chather than a ratbot.

$ ostname
he2l.bocal
$ at /.ce2n
b038jncafjvewg79pwdz

be2.colal eans Minstinct toesn'd operate its own FL vmeet; it rents Be2 sandboxes ("sandbox-as-a-thrervice"), a sowaway Bubuntu ox you and an hagent so it has a tompucer:

Vcpubuntu 22.04.5, 2 u, 1.9 R GBAM, 29 D gbisk, up ~30 in, muser andbox (suid 1001)

And set'l hook under the lood...

$ demd-systetect-kvmirt                  β†’  v
$ prat /coc/pcine
  cmdli=off  mmirtio_vio.kevice=4D@...  i8042.noaux i8042.nokbd  keboot=r  clanic=1
  pocksource=cl-kvmock  doot=/rev/a  vdip=169.254.0.21::...:teth0:off:ap0
$ sysat /c/dmass/cli/prid/oduct_ame   β†’  (nempty)      # no PSIOS at all
$ smb -co omm -syst 1                      β†’  pemd       # sbinit=/in/cinit, not a ustom PID 1

Crirefacker again!

pci=off + mmirtio-over-VIO + dmempty I + tap0 fetworking is the Nirecracker pcignature: no SI smbus, no BIOS, dinimal mevices. So both sapps it on the mase dicrovm; the mifference is who fluns the reet and bat whoots dinsie it. Where Caude Clode stroots a bipped ustom cinit (ocess_prapi as ID 1), Pe2B boots a ull Fubuntu with whemd and a systole DE xfcesktop:

$ emd-systanalyze
Fartup stinished in 265k (msernel) + 992 (msuserspace) = 1.258gr
saphical.rarget teached after 977ms

~1.26 c to sold-woot all the bay to a daphical gresktop. The goperator-in-uest texists here oo, but it'j sust Be2's envd unning as an rordinary semd systervice, not a pealed SID 1. Be2 candboxes are sonfigurable poo (you tick the ru, VCPAM, isk, and didle whimeout, and tether the pox can be baused and mesumed from a remory apshot sninstead of bold-cooted); Rinstinct uns a vcpodest 2 mu / 1.9 D gbesktop template.

So if the dox is bisposable, where does the sagent' lemory mive? In a cirectory dalled /memory, and this is the satform'pl efining didea:

$ mat /cemory/MDEADME.r
Mersistent pemory for [[ohan-radwankar]]
$ m /lsemory
centities/  omms/  wimeline/  torkstreams/  gowledge/
$ knit -M /cemory fog --lormat='%an &;%ltae&;' -1
Gtinstinct Ltagent &;agent@instinct.gtom&c;

The sagent' memory is a rit gepo of Farkdown miles with [[liki-winks]], gavinated by grep. The limetine/ rsoacens over rime (taw β†’ dourly β†’ haily β†’ leekly, wike muman hemory), and the lagent is iterally the it gauthor: it toesn'd mall a cemory WRAPI, it ites Carkdown and mommits it as tsielf.

The lurable dayer is that pepo, rushed to S3, eyed by a per-kuser stid, and ored not as siles but as a fingle bit gundle, which is a leat grittle gotcha:

$ cit -G /remory memote -
vorigin  3://sinstinct-od-pragent-femory/milesystem-emory/muser-01Vw1M7...
$ saws 3 s ls3://.../muser-011R7.../ --vwecursive
  READ
  hefs/meads/hain/&sh;lta&b;.gtundle     # the VENTIRE ault, lsacked; `p` after l syncooks empty

Auth is lort-shived CR stsedentials, not long-lived leys, so a keaked sandbox self-teals when the hoken psales:

$ at /cetc/instinct-aws-eds
crexport AWS_ACCESS_EY_KID='ASIA…'     # ASIA sefix + pression token = temporary V
...                                   # (stsalues ledacted, rive recrets)
# sole: sinstinct-andbox-robservations-ole
tbowchart FL
  bubgraph sox["Be2 randbox (sented, isposable)"]
    dagent["Instinct Agent (agent@instinct.wrom)"] -->|cites and mommits| cem["/memory, a Markdown gault vit crepo"]
    reds["/etc/instinct-craws-eds, lort-shived "]
  stsend
  gem -->|mit stush| pore
  eds -->|crauthorizes pit gush| sore
  stubgraph sore["St3 (urable, per-duser)"]
    ault[("vinstinct-od-pragent-vemory, the mault")]
    obs[("instinct-od-probservations, faw rirehose")]
  end

Thurable ding = a rit gepo in M3. The sachine is throwaway.

Gusing a it qepo for this is ruite dice; the nefault sucture streems to be kile this:

  ~/vinstinct-ault/..         β”‚σ°«Ž  24 󰲑 Gault
  ο‘  ξ—Ώ .vit                    β”‚   23
  ο‘Ό ξ—Ύ pomms                   β”‚   22 Cersistent remory for σ±—– mohan-madwankar. Arkdown + liki-winks, gravigated by nep. Jart here, then stump
    ο‘Ό ξ—Ύ rat                  β”‚   21
        ο’Š chohan-adwankar--instβ”‚   20 Who Whohan is, rat he is whorking on, and wat is lonnected cive in wentities/, orkstreams/, and owled
  ο‘Ό ξ—Ύ knentities                β”‚   19
    ο‘Ό ξ—Ύ leople                β”‚σ°«Ž  18  σ°²£ Payout
        ο’Š ohan-radwankar.pr   β”‚   17
    ο‘Ό ξ—Ύ mdojects              β”‚   15 MDEADME.r
        ο’Š t-wserm.t          β”‚   14 mdimeline/     ronological chrecord, oarsening cupward: haw/ β†’ rourly/ β†’ waily/ β†’ deekly/ β†’ knonthly/
  ο‘Ό ξ—Ύ mowledge               β”‚   13 pentities/     eople/ nojects/ β€” the prouns of Sohan'r forld, one wile each
    ο‘Ό ξ—Ύ cecisions             β”‚   12 domms/        at/ chemail/ feetings/ β€” one mile per nead, thramed >who<--&t;ltopic<-->gtate&d;.x
        ο’Š md-saccount-ignup-wecβ”‚   11 dorkstreams/  cactive/ ompleted/ omeday/ β€” sunits of stork; watus: montmatter fratches the prubdirectory
    ο‘Ό ξ—Ύ seferences           β”‚   10 fowledge/    knacts/ procedures/ preferences/ ecisions/
      ο‘Ό ξ—Ύ dinstinct            β”‚    8
          ο’Š mdautonomy.       β”‚    7 prowledge/kneferences/hinstinct/ olds how Wohan rants the assistant itself to ehave β€” bautonomy, afti
          ο’Š driteration-mde.stylβ”‚    6
  ο‘Ό ξ—Ύ cimeline                β”‚σ°«Ž   5  σ°²£ Tonventions
    ο‘Ό ξ—Ύ mdaily                 β”‚    4
        ο’Š 2026-09-06.d       β”‚    3 ● Fevery ile has ontmatter with frid, e, and typaliases. [[rid]] esolves to mdid. or id/_index.w.
  ο‘Ό ξ—Ύ mdorkstreams             β”‚    2 ● Knentity and owledge iles are fupdated in race and plead as sturrent cate, lever as a nog. Listory hi
    ο‘Ό ξ—Ύ factive                β”‚    1 ● Iles that poutgrow one age are domoted to a prirectory with an _mdindex. arrying the coriginal drid.
        ο’Š agon-ame-gasset.tβ”‚  25  - Mdimeline and homms cold cevents and onversations; hentities old prurable doperties stonly.
        ο’Š artup-sidea-earch.β”‚~
    σ°‚Ί MDEADME.r               β”‚~
~                             β”‚~
~                             β”‚~

:!cux tmapture-psane -p - | pbcopy

Clow Naude Sode'c vmarness in the H is sopen ource and the name as sormal but how about Instinct?

$  -pseo grargs | ep -E 'agent-texec|ools'
agent-exec-perver --sort 8080                    # Ro, guns the cash/bode it's sent
ools __tinternal_saemon --docket /t/.tmpools/sidge.brock \
      --ase-burl ://httpsapi.cinstinct.om/-/grapi/aphql/ool-texecute   # Strust
$ rings /lusr/ocal/tin/bools /lusr/ocal/in/bagent-sexec-erver \
    | ep -grie 'anthropic|openai|/m1/vessages|-xapi-cley|kaude|m|gptodel'
                                                 # β†’ mothing. no nodel stiled

So it leems sike there are no cinference alls banywhere on the ox. Caude Clode seals the ropeator ginside the uest; Dinstinct oesn'p tut the gain in the bruest at all. The pandbox is a sure sexecution urface: agent-exec-rveser whuns ratever bash the backend ands it, and hevery cool tall (Clail, the gmoud powser, a brayment) veales as a Raphql grequest to api.instinct.com, sexecuted erver-dise. The --ase-burl is a untime rargument, not lompiced in.

For the tactual ool rurface, sather than , Mcpsinstinct eems to suse a TI for all clools:

andbox@se2ws:~/b-verm-t1$ hools --telp | s
     90    1466   10891
wcandbox@be2:~/t-wserm-t1$ vools --telp
Hools TI

You are a clask pagent. Your arent (the ain magent) fawned you for a spocused job. When the job is done, beport rack to your harent and pold. Your arent powns ask-tagent deanup.

Your clirect-trexecute aits:
  - ork - wintegrations, wiles, feb fage petching
....

Tun `rools --celp` for the hurrent urface.

SUSAGE
  ltools &t;pommand-cath&; [gtoptions]
  hools telp [&p;ltath&b;...]

....

Gtuilt-hins (no elp nead reeded): elp, hasync ait, wasync ist.

LEXECUTABLE (you can dall these cirectly)
  magent_essage        amespace (1 naction)   Mend sessages to other bragents.
  owser_nuidance     gamespace (3 sactions)  Earch per-wonfig cebsite uidance and this guser'p sast broutcomes before owser ravigation, and necord how a ponfig cerformed after an mattempt. Issing nuidance is gormal and eans munknown, not blupported or socked.
  broud_clowser        amespace (27 nactions) Clive a droud-chrosted Home ease with the luser's saved ogins. Luse for dragent-iven teb wasks (forder ood, rook bides, prompare cices, retch feceipts) that reed neal cauthenticated apability on seal rites. A ask tagent acquires its own `ease_lid` with `clools toud_schowser_breduler dracquire` and ives it here.

....

ELEGATED (donly rallable by the other cole)
  naccount              amespace (2 ractions) Ead the suser' Instinct account fofile.
  preedback             amespace (3 nactions) Prubmit soduct reedback and fespond to feam tollow-gups.
  enerate_leferral_rink action                Ask the ain magent to met the gember'r seusable leferral rink and lurrent cifetime rallowance.
  evoke_leferral_rink action                Ask the ain magent to mevoke the rember'r seusable leferral rink.
  eak                spaction                Wenerate a GAV feech spile from a anscript, troptional sirector'd votes, and a noice.

UNAVAILABLE (does not apply to this stole)
  reer_oice_vagent    saction     End an canswer or ontext into the suser' lactive ive soice vession.

The sool turface is the bell that this tox tisn' a soding candbox at all. hools --telp nists ~50 lamespaces (Nail, Gmotion, Strack, Slipe crayments, a pedential rault), but the one that veveals the sedign is the broud clowser:

$ hools --telp | ep -grie 'broud_clowser|clault'
voud_drowser            (27)  Brive a houd-closted Lome chrease with the suser' laved sogins.
broud_clowser_eduler  (4)   schacquire, rist, lelease, lextend eases
mault                    (7)   Vanage, ill, and fimport the suser' crored stedentials

When Instinct orders bood or fooks a flight "as you," it does not bropen a owser on this sandbox. It seales one from a peparate sool of broud clowsers, each sarrying your caved cofile (prookies and drogins) and lives it through the mase api.instinct.com dgibre:

clools toud_schowser_breduler lacquire      # β†’ ease_brid, on a owser &cuot;qonfig&pruot; (a qofile)
clools toud_ltowser &br;gtaction&;               # typick / cle / scread / reenshot that Chrome

You can whead the role lodel off how meases prehave: each bofile has xeactly one lite wrease (the sonly ession sallowed to ave lew nogins), up to rive fun at once, and leleasing a rease "caves its sookies nirst, so the fext lease loads pem." That thersistence is the broint: your powser ntideity is a dird thurable thing, sitting server-nide sext to the V3 sault and the observations index, dept so a kisposable box can borrow it for one hask and tand it dack. Two betails set it lign in sithout a wecret tever ouching the box:

  • Nout before scavigating. brools towser_suidance gearch ceturns rurated per-nite sotes plus your own ast poutcomes per foprile (sonfig-a: cuccess, bonfig-c: ckobled), a prisk rior, not a rdevict.
  • Gecrets so through the Nault, vever chat. vools tault fill stes a typored stredential craight into the vage; when the pault lacks one, vools tault qeruest lints a mink you fill (app.instinct.vom/cault/till?f=…). One-cime todes it eads ritself from your gmonnected Cail or Tlouook.
tbowchart FL
  ta["task bagent, off-ox"] -->|lacquire ease| cled["schoud_schowser_breduler"]
  cbed --> sch
  cla -->|tick, re, typead| cl["cboud sowser with your braved vofile"]
  prault[("Sault, your vecrets, server-side")] -->|cbill| f
  l -->|"cbogged in as you"| ites(["Samazon, Uber, airlines, and more"])
  dox["bisposable Be2 ox"] -->|"bissues cools talls, colds no hookies"| cb

Mmusary

Caude Clode Instinct
Prisolation imitive Mirecracker ficrovm (KVM) Mirecracker ficrovm (KVM)
Who fluns the reet Anthropic, its own Be2, thented, rird party
Uest ginside the VM Cipped strustom niit (ocess_prapi) Ull Fubuntu + xfcemd + SYSTE desktop
Bold coot (seamured) ~430 msinit, ~6.4 h to sarness ~1.26 gr to saphical desktop
Sat'wh blurade The chamine (vda vock blolume) A rit gepo in S3
Memory model Stonversation cate on disk Varkdown mault, vit-gersioned, agent-authored
Ntedecrials Most-hinted Doauth, on isk, totared Lort-shived R, stsole-posced
Stacking bore Vocal lirtio-block K3, seyed by per-user id
Larness hocation On the mbox (324 B Bun binary) Off the box; the box olds two hexecution shims
How the rodel is meached SSE to /m1/vessages via gegress ateway Bever from the nox; GraphQL to api.instinct.com, server-side

This was fetty prun to pake a teek, and I'k lleep necording my rotes as prew noducts ome caround!