Mesh terminal agent CLI — token-efficient coding agent with a shared LLM gateway.
Drift inferred · capture-to-capture
No drift recorded — single capability capture; advisories appear once its surface changes.
transport stdio · http counts 0 tools · 0 res
· 0 prompts
permission surface via code analysis
no tools enumerated yet for this server.
evidence-backed
findings quoted directly from the published source artifact — not inferred
filesystem 12
- fs package/bin/mesh-daemon.cjs :4
const { existsSync } = require("node:fs"); - fs package/bin/mesh.cjs :4
const { existsSync } = require("node:fs"); - fs package/dist/runtime-observer.js :1
async function e(e,r=12e3){const t=await n.readFile(e,"utf8").catch(()=>"");return t.length<=r?t:t.slice(-r)}function r(e){const r=e.split(/\r?\n/g).map(e=>e.trim()).filter(Boolean),t=r.find(e=>/(?:er - fs package/dist/session-manager.js :1
import{promises as t}from"node:fs";import{existsSync as s,statSync as e,readFileSync as n}from"node:fs";import i from"node:path";import r from"node:crypto";const o=".mesh/sessions";export class Defaul - fs package/scripts/bench-guard.cjs :16
const fs = require("node:fs"); - fs package/scripts/bench-median.cjs :17
const fs = require("node:fs"); - fs package/scripts/check-core-version.cjs :15
const fs = require("node:fs"); - fs package/scripts/minify.js :2
import fs from "node:fs/promises"; - fs package/scripts/postinstall.cjs :10
const fs = require("fs"); - fs package/scripts/published-install-smoke.cjs :3
const { mkdirSync, mkdtempSync, readFileSync, rmSync } = require("node:fs"); - fs package/scripts/release-smoke.cjs :3
const { existsSync, mkdirSync, mkdtempSync, readdirSync, rmSync, writeFileSync } = require("node:fs"); - fs package/scripts/run-tests.cjs :4
const fs = require("node:fs");
shell / exec 45
- shell package/bin/mesh-daemon.cjs :6
const { spawnSync } = require("node:child_process"); - shell package/bin/mesh.cjs :6
const { spawnSync } = require("node:child_process"); - shell package/dist/adapter-pipeline.js :1
function t(t,e){const n=t.userInput.toLowerCase(),o=new Date(t.endedAt).getTime(),r=e.recentCommits.find(t=>Math.abs(t.at-o)<=216e5&&function(t,e){const n=t.toLowerCase().split(/\W+/).filter(t=>t.leng - shell package/dist/agent-loop.js :1
function e(e){return Xt.has(e)||e===Zt}function t(e,t){return Array.from(new Set(e.filter(Boolean))).slice(0,t)}function s(e){const t=(e.MESH_TOOL_DEDUP??"").toLowerCase().trim();return"0"!==t&&"off"! - shell package/dist/agent-os.js :1
function e(e){if(Array.isArray(e))return e.map(e=>String(e).trim()).filter(Boolean)}import{promises as t}from"node:fs";import i from"node:path";import r from"node:os";import s from"node:crypto";export - shell package/dist/auth.js :1
function e(e){const t=e.split(".");if(3!==t.length)return null;try{return JSON.parse(Buffer.from(t[1],"base64url").toString("utf8"))}catch{return null}}function t(t){return"object"==typeof t&&null!==t - shell package/dist/auto-pr.js :1
function t(t){const n=t.verificationOutcome??(t.verificationCommand,"skipped"),e=[`- **Command:** \`${t.verificationCommand??"_(no verification command configured)_"}\``,`- **Outcome:** ${n}`];if(t.ve - shell package/dist/bench/scorer.js :1
function e(e,r,u){const a=u?e.must_contain:e.must_not_contain;if(!a||0===a.length)return{rule:e,passed:!1,reason:`${e.kind} rule missing ${u?"must_contain":"must_not_contain"}`};const l=e.file_globs?? - shell package/dist/commands/pr-cmd.js :1
import{execSync as t}from"node:child_process";import e from"picocolors";import{buildAutoPrBundle as n,openPrViaGh as o,persistBundle as r}from"../auto-pr.js";import{EvidenceLedger as s}from"../evidenc - shell package/dist/company-brain.js :1
function t(t,e){const s=n(e).slice(0,8e4),i=s.split(/\r?\n/g),o=function(t){return/(\.test|\.spec)\.(ts|tsx|js|jsx|mjs|cjs)$|(^|\/)(test|tests|__tests__)\//.test(t)?"test":/\.(md|mdx)$/.test(t)?"doc": - shell package/dist/daemon.js :2
async function t(){await o.mkdir(l,{recursive:!0,mode:448}),await o.rm(m,{force:!0}).catch(()=>{}),await o.writeFile(p,String(process.pid),{encoding:"utf8",mode:384}),s(0,10);const t=await u(),e=new d - shell package/dist/doctor.js :1
async function e(e,t,s){try{return await s(),{id:e,ok:!0,message:t}}catch(t){return{id:e,ok:!1,message:`Failed to apply ${e}.`,details:[t.message]}}}function t(e){return/^(1|true|yes)$/i.test(process. - shell package/dist/issue-autopilot.js :1
function t(t){return{issue:t.issue,verificationCommand:t.verificationCommand,branchName:t.branchName,prTitle:t.prTitle,likelyFiles:t.likelyFiles,brainCitations:t.brainCitations.slice(0,8),route:t.rout - shell package/dist/knowledge-artifact.js :1
async function t(t,n){let s,i;try{s=await f.stat(n)}catch{return null}if(!s.isFile())return null;try{i=await f.readFile(n,"utf8")}catch{return null}if(i.length>4e6)return null;const c=h.createHash("sh - shell package/dist/live-mode.js :1
function t(t){const i=o.join(t,"package.json");try{const t=JSON.parse(e.readFileSync(i,"utf8")).scripts??{};if(t.typecheck)return"pnpm typecheck";if(t.test)return"pnpm test";if(t.build)return"pnpm bui - shell package/dist/llm-client.js :1
function e(e,t,o){const n="string"==typeof t?t:t.map(e=>e.text??"").join("\n"),i=o.map(e=>e.name).sort().join("|"),r=s.createHash("sha256");return r.update(e),r.update("\0"),r.update(n),r.update("\0") - shell package/dist/local-tools.js :1
async function e(e,t,i="utf8"){const r=j.dirname(e),s=j.join(r,`.${j.basename(e)}.${process.pid}.${D.randomBytes(6).toString("hex")}.tmp`);try{await R.writeFile(s,t,i),await R.rename(s,e)}catch(e){thr - shell package/dist/mcp-client.js :1
function e(){if(/^(1|true|yes)$/i.test(process.env.MESH_MCP_INHERIT_ENV??""))return Object.fromEntries(Object.entries(process.env).filter(e=>"string"==typeof e[1]));const e=new Set(["HOME","LANG","LC_ - shell package/dist/mesh-portal.js :1
import{promises as e,existsSync as t}from"node:fs";import n from"node:net";import i from"node:os";import o from"node:path";import r from"node:crypto";import{spawn as s,spawnSync as a}from"node:child_p - shell package/dist/moonshots/causal-autopsy.js :1
function e(e,t,o){const n=[];return n.push({step:"symptom",statement:e||t.runtime.errorSummary||"No explicit symptom supplied.",confidence:e?.9:.45}),"none"!==t.runtime.kind&&n.push({step:"runtime-evi - shell package/dist/moonshots/ephemeral-execution.js :1
import{promises as e}from"node:fs";import t from"node:path";import{spawn as n}from"node:child_process";import{writeJson as o,readJson as r}from"./common.js";export class EphemeralExecutionEngine{works - shell package/dist/moonshots/hive-mind.js :1
import{promises as t}from"node:fs";import o from"node:path";import{writeJson as e,readJson as s}from"./common.js";import{execSync as n}from"node:child_process";export class HiveMindEngine{workspaceRoo - shell package/dist/moonshots/precrime.js :1
function e(e){const i=[],o=[],s=t(e.file,e.raw,e.testFiles,e.changed);let c=e.changed?.22:.08;s.includes("auth")&&(c+=.24,i.push("Touches authentication/session boundary."),o.push("Run auth-focused re - shell package/dist/moonshots/proof-carrying-change.js :1
function e(e){const c=e.evidence.changedFiles,l=e.evidence.ledgers??{},d=t(l.specCode?.contracts??[],c),u=t(l.fluidMesh?.capabilities??[],c),f=function(e,t){const i=[];let s=e.length>0?12:4;const o=e. - shell package/dist/moonshots/semantic-sheriff.js :1
function t(t,n){const s=new Set;for(const t of n.matchAll(/\bexport\s+(?:default\s+)?(?:async\s+)?(?:abstract\s+)?(?:function\s*\*?\s*|class\s+|const\s+|let\s+|var\s+|type\s+|interface\s+|enum\s+)([A- - shell package/dist/moonshots/session-resurrection.js :1
function t(t){const e=Math.floor(t/6e4);if(e<60)return`${e}m`;const s=Math.floor(e/60);if(s<24)return`${s}h ${e%60}m`;return`${Math.floor(s/24)}d ${s%24}h`}function e(t){return Array.isArray(t)?t.map( - shell package/dist/playbook-rename.js :1
async function e(e){for(const[o,r]of e)try{await t.writeFile(o,r,"utf8")}catch{}}import{promises as t}from"node:fs";import{exec as o}from"node:child_process";import{promisify as r}from"node:util";impo - shell package/dist/production-readiness.js :1
import e from"node:path";import{execFile as t}from"node:child_process";import{promisify as i}from"node:util";import{readJson as s,writeJson as a}from"./moonshots/common.js";import{routeMeshTask as r}f - shell package/dist/repo-fingerprint.js :1
import{execFileSync as e}from"node:child_process";const r=new Map;export function repoFingerprint(t){if(!t)return"";const n=r.get(t);if(void 0!==n)return n;let i="";try{i=e("git",["rev-parse","HEAD"], - shell package/dist/runtime-observer.js :1
async function e(e,r=12e3){const t=await n.readFile(e,"utf8").catch(()=>"");return t.length<=r?t:t.slice(-r)}function r(e){const r=e.split(/\r?\n/g).map(e=>e.trim()).filter(Boolean),t=r.find(e=>/(?:er - shell package/dist/speculative-prefetch.js :1
function e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}async function t(e,t){const n=await async function(e,t,n=24){try{const{stdout:s}=await c("rg",["--vimgrep","--max-columns","180","-m",Strin - shell package/dist/support.js :1
import{promises as t}from"node:fs";import{execFile as e}from"node:child_process";import o from"node:os";import r from"node:path";import{promisify as n}from"node:util";const i=n(e);export async functio - shell package/dist/terminal-preview.js :1
async function e(){const e=await async function(){const e=[process.env.MESH_CHROME_PATH,"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome","/Applications/Google Chrome Canary.app/Contents/ - shell package/dist/terminal-tui.js :1
function e(e,t,s){const i=e.toLowerCase();if(!i||!t)return 0;if(i===t)return s+80;if(i.startsWith(t))return s+60-Math.min(20,i.length-t.length);const n=i.indexOf(t);if(n>=0)return s+35-Math.min(18,n); - shell package/dist/timeline-manager.js :1
function t(t){return t.split(/\r?\n/g).map(t=>t.trim()).filter(Boolean).reduce((t,e)=>{const i=e.match(/^(\d+|-)\t(\d+|-)\t/);return i?t+("-"===i[1]?0:Number(i[1]))+("-"===i[2]?0:Number(i[2])):t},0)}f - shell package/dist/timeline/symptom-bisect.js :1
import{execFile as t}from"node:child_process";import{promisify as e}from"node:util";const i=e(t);export class SymptomBisectEngine{workspaceRoot;timelines;constructor(t,e){this.workspaceRoot=t,this.tim - shell package/dist/voice-manager.js :1
import{spawn as e,execFile as t,execFileSync as i}from"node:child_process";import{promisify as n}from"node:util";import o from"node:fs";import r from"node:fs/promises";import s from"node:path";import - shell package/dist/workspace-index.js :1
function e(e){return e.startsWith("gemini-embedding")}async function t(e,t,n,s,i){if(0===e.length)return[];await async function(){const e=Math.max(0,Number(process.env.MESH_EMBED_MIN_INTERVAL_MS??0)); - shell package/scripts/bench-guard.cjs :14
const { spawnSync } = require("node:child_process"); - shell package/scripts/bench-median.cjs :16
const { spawnSync } = require("node:child_process"); - shell package/scripts/check-core-version.cjs :17
const { execSync } = require("node:child_process"); - shell package/scripts/postinstall.cjs :9
const { execSync, spawnSync } = require("child_process"); - shell package/scripts/published-install-smoke.cjs :6
const { spawnSync } = require("node:child_process"); - shell package/scripts/release-smoke.cjs :6
const { spawnSync } = require("node:child_process"); - shell package/scripts/run-tests.cjs :3
const { spawnSync } = require("node:child_process");
network 17
- net package/dist/auth.js :1
function e(e){const t=e.split(".");if(3!==t.length)return null;try{return JSON.parse(Buffer.from(t[1],"base64url").toString("utf8"))}catch{return null}}function t(t){return"object"==typeof t&&null!==t - net package/dist/dashboard/assets/index-DhabMlAE.js :1
function e(){let e=(0,P.useRef)(null),t=(0,P.useRef)(null),n=(0,P.useRef)(0),r=(0,P.useRef)(!1),[l,a]=(0,P.useState)(null),[o,i]=(0,P.useState)("connecting"),[u,s]=(0,P.useState)(null),[c,d]=(0,P.useS - net package/dist/doctor.js :1
async function e(e,t,s){try{return await s(),{id:e,ok:!0,message:t}}catch(t){return{id:e,ok:!1,message:`Failed to apply ${e}.`,details:[t.message]}}}function t(e){return/^(1|true|yes)$/i.test(process. - net package/dist/gemini-context-cache.js :1
function e(e){return"global"===e?"aiplatform.googleapis.com":`${e}-aiplatform.googleapis.com`}import{promises as t}from"node:fs";import s from"node:path";import n from"node:crypto";const i="https://ge - net package/dist/index.js :2
async function e(){try{const e=await t.readFile(new URL("../package.json",import.meta.url),"utf8");return JSON.parse(e).version||"unknown"}catch{return"unknown"}}import{promises as t}from"node:fs";imp - net package/dist/integrations/issues/github.js :1
export async function fetchGithubIssues(e,t){if(!e.enabled)return[];const s=e.project?.trim();if(s&&/^[^/\s]+\/[^/\s]+$/.test(s)){const t=process.env.MESH_GITHUB_TOKEN||process.env.GITHUB_TOKEN||proce - net package/dist/issue-autopilot.js :1
function t(t){return{issue:t.issue,verificationCommand:t.verificationCommand,branchName:t.branchName,prTitle:t.prTitle,likelyFiles:t.likelyFiles,brainCitations:t.brainCitations.slice(0,8),route:t.rout - net package/dist/llm-client.js :1
function e(e,t,o){const n="string"==typeof t?t:t.map(e=>e.text??"").join("\n"),i=o.map(e=>e.name).sort().join("|"),r=s.createHash("sha256");return r.update(e),r.update("\0"),r.update(n),r.update("\0") - net package/dist/local-tools.js :1
async function e(e,t,i="utf8"){const r=j.dirname(e),s=j.join(r,`.${j.basename(e)}.${process.pid}.${D.randomBytes(6).toString("hex")}.tmp`);try{await R.writeFile(s,t,i),await R.rename(s,e)}catch(e){thr - net package/dist/mesh-brain.js :1
function t(t,e){const r=new Set(t.split(/\s+/g).filter(Boolean)),n=new Set(e.split(/\s+/g).filter(Boolean));if(0===r.size||0===n.size)return 0;let i=0;for(const t of r)n.has(t)&&(i+=1);return i/Math.s - net package/dist/mesh-portal.js :1
import{promises as e,existsSync as t}from"node:fs";import n from"node:net";import i from"node:os";import o from"node:path";import r from"node:crypto";import{spawn as s,spawnSync as a}from"node:child_p - net package/dist/moonshots/ephemeral-execution.js :1
import{promises as e}from"node:fs";import t from"node:path";import{spawn as n}from"node:child_process";import{writeJson as o,readJson as r}from"./common.js";export class EphemeralExecutionEngine{works - net package/dist/nvidia-services.js :1
function e(e){return(process.env[e]??"").split(",").map(e=>e.trim()).filter(Boolean)}function t(e){return Array.from(new Set(e.filter(Boolean)))}export const DEFAULT_NVIDIA_CHAT_MODELS=["qwen/qwen3-co - net package/dist/telemetry-reporter.js :1
export async function reportSession(e){if(e.userId&&e.accessToken&&(0!==e.tokensIn||0!==e.tokensOut))try{await fetch("https://msmonxiacxhendxehezw.supabase.co/rest/v1/usage_events",{method:"POST",head - net package/dist/terminal-preview.js :1
async function e(){const e=await async function(){const e=[process.env.MESH_CHROME_PATH,"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome","/Applications/Google Chrome Canary.app/Contents/ - net package/dist/voice-manager.js :1
import{spawn as e,execFile as t,execFileSync as i}from"node:child_process";import{promisify as n}from"node:util";import o from"node:fs";import r from"node:fs/promises";import s from"node:path";import - net package/dist/workspace-index.js :1
function e(e){return e.startsWith("gemini-embedding")}async function t(e,t,n,s,i){if(0===e.length)return[];await async function(){const e=Math.max(0,Number(process.env.MESH_EMBED_MIN_INTERVAL_MS??0));
secrets 11
- secrets package/dist/auth.js :1
function e(e){const t=e.split(".");if(3!==t.length)return null;try{return JSON.parse(Buffer.from(t[1],"base64url").toString("utf8"))}catch{return null}}function t(t){return"object"==typeof t&&null!==t - secrets package/dist/config.js :1
function e(e,o){const t=process.env[e];return t&&t.trim()?t.trim():o}function o(e,o){const t=process.env[e];if(!t)return o;const r=Number(t);if(Number.isNaN(r))throw new Error(`Invalid numeric env var - secrets package/dist/dashboard-server.js :1
function e(){return H||(H=new x(C,{bedrock:{endpointBase:process.env.BEDROCK_ENDPOINT||"",bearerToken:process.env.AWS_BEARER_TOKEN_BEDROCK||process.env.BEDROCK_BEARER_TOKEN||process.env.BEDROCK_API_KE - secrets package/dist/gemini-context-cache.js :1
function e(e){return"global"===e?"aiplatform.googleapis.com":`${e}-aiplatform.googleapis.com`}import{promises as t}from"node:fs";import s from"node:path";import n from"node:crypto";const i="https://ge - secrets package/dist/integrations/issues/github.js :1
export async function fetchGithubIssues(e,t){if(!e.enabled)return[];const s=e.project?.trim();if(s&&/^[^/\s]+\/[^/\s]+$/.test(s)){const t=process.env.MESH_GITHUB_TOKEN||process.env.GITHUB_TOKEN||proce - secrets package/dist/issue-autopilot.js :1
function t(t){return{issue:t.issue,verificationCommand:t.verificationCommand,branchName:t.branchName,prTitle:t.prTitle,likelyFiles:t.likelyFiles,brainCitations:t.brainCitations.slice(0,8),route:t.rout - secrets package/dist/llm-client.js :1
function e(e,t,o){const n="string"==typeof t?t:t.map(e=>e.text??"").join("\n"),i=o.map(e=>e.name).sort().join("|"),r=s.createHash("sha256");return r.update(e),r.update("\0"),r.update(n),r.update("\0") - secrets package/dist/local-tools.js :1
async function e(e,t,i="utf8"){const r=j.dirname(e),s=j.join(r,`.${j.basename(e)}.${process.pid}.${D.randomBytes(6).toString("hex")}.tmp`);try{await R.writeFile(s,t,i),await R.rename(s,e)}catch(e){thr - secrets package/dist/nvidia-services.js :1
function e(e){return(process.env[e]??"").split(",").map(e=>e.trim()).filter(Boolean)}function t(e){return Array.from(new Set(e.filter(Boolean)))}export const DEFAULT_NVIDIA_CHAT_MODELS=["qwen/qwen3-co - secrets package/dist/voice-manager.js :1
import{spawn as e,execFile as t,execFileSync as i}from"node:child_process";import{promisify as n}from"node:util";import o from"node:fs";import r from"node:fs/promises";import s from"node:path";import - secrets package/dist/workspace-index.js :1
function e(e){return e.startsWith("gemini-embedding")}async function t(e,t,n,s,i){if(0===e.length)return[];await async function(){const e=Math.max(0,Number(process.env.MESH_EMBED_MIN_INTERVAL_MS??0));
install hooks 1
- postinstall package/package.json :102
node scripts/postinstall.cjs || true
declared dependencies 33
- @supabase/supabase-js@^2.105.4
- @trymesh/core@^0.2.3
- boxen@^7.1.1
- dotenv@^16.4.5
- enquirer@^2.4.1
- glob@^13.0.6
- ignore@^7.0.5
- ink@^6.8.0
- lucide-react@^1.14.0
- marked@^11.0.1
- marked-terminal@^6.2.0
- ora@^7.0.1
- picocolors@^1.0.0
- react@^19.2.5
- react-dom@^19.2.5
- sharp@^0.34.5
- ts-morph@^24.0.0
- ws@^8.20.0
- z3-solver@^4.13.0
- @types/marked-terminal@^6.1.0
- @types/node@^20.11.24
- @types/react@^19.2.14
- @types/react-dom@^19.2.3
- @types/ws@^8.18.1
- @vitejs/plugin-react@^6.0.1
- ink-testing-library@^4.0.0
- terser@^5.29.1
- tsx@^4.7.1
- typedoc@^0.28.19
- typescript@^5.3.3
- vite@^8.0.10
- vitepress@^1.6.4
- @trymesh/native@^0.1.0