@loctree/loct
v0.13.1
Published
Loctree — structural code intelligence for AI agents. One runtime (loctree), one npm install. MCP and editor (LSP) modes run through `loct watch`.
Downloads
107
Readme
@loctree/loct
Loctree — structural code intelligence for AI agents. One runtime, one install.
npm install -g @loctree/loct installs the Loctree runtime. Source of truth
lives in Loctree/loctree.
Install
npm install -g @loctree/loct
# or
pnpm add -g @loctree/loctThis gives you one runtime, exposed as two commands:
| Command | What it is |
|---------|-----------|
| loctree | the Loctree runtime — scan, slice, impact, health, plus MCP / editor modes |
| loct | short alias for loctree (the same binary) |
Smoke-test:
loctree --version
loct --versionMCP and editors are modes of the runtime
MCP and LSP are not separate commands you install or run directly — they are modes the runtime brings up on demand:
loct watch --http # streamable-HTTP MCP server at http://127.0.0.1:5174/mcp
loct watch --lsp # editor language server (co-process for IDEs)The runtime spawns its loctree-mcp / loctree-lsp co-process binaries from
inside the installed package. You never install them as separate npm packages.
How delivery works
The wrapper declares one technical platform package per target as an
optionalDependency; npm/pnpm/yarn install only the one matching your platform.
Each platform package embeds the runtime and its co-process binaries side by side
(no postinstall download), so the runtime always finds them as siblings.
@loctree/loct is the only public package.
Supported platforms
- macOS Apple Silicon:
@loctree/loct-darwin-arm64 - macOS Intel:
@loctree/loct-darwin-x64 - Linux x64 glibc:
@loctree/loct-linux-x64-gnu - Windows x64:
@loctree/loct-win32-x64-msvc
We only claim the targets CI actually builds today.
License
BUSL-1.1. See LICENSE.
Links
- Source: https://github.com/Loctree/loctree
- Website: https://loct.io
- Issues: https://github.com/Loctree/loctree/issues
