[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108047":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},108047,"dim","arcships\u002Fdim","arcships"," An agent paradigm built on an event-driven timeline and a fully plugin-based runtime — it grows and iterates within the environment it runs in.","https:\u002F\u002Fdimagent.com",null,"Rust",635,44,1,101,0,37,355,4,77.46,"MIT License",false,"main",[],"2026-11-23 20:27:18","2026-11-23 05:30:07","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"docs\u002Fdesign\u002Fassets\u002Fdimagent-banner.png\" alt=\"DimAgent logo above a green wave of light\" width=\"760\">\n\n# Dim\n\n**Dim is a paradigm for general-purpose agents that grow into the environments they inhabit.**\n\n[![Rust toolchain 1.98.1](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-1.98.1-93450a.svg?logo=rust)](rust-toolchain.toml) [![npm alpha version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fdimcode-alpha\u002Falpha.svg?label=npm%20alpha)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fdimcode-alpha?activeTab=versions) [![MIT license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE) [![Join us on Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-Join%20us-5865F2?logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.gg\u002Fds35K3TadP)\n\n\u003C\u002Fdiv>\n\nAn event-driven Timeline connects what an agent senses to what it does next. The runtime is built entirely from plugins. A plugin written in Rust, TypeScript or Python can give the agent a new way to act and the vocabulary to understand when to use it.\n\nIn the Rust alpha, you can ask Dim to write a TypeScript tool for itself in a session with permission to do so. Once the plugin loads, Dim can call the tool on its next model request, edit the implementation and reload it in the same session. [Plugin authoring inside Dim](runtime\u002Fplugins\u002Fplugin-authoring\u002Fskills\u002Fplugin-authoring\u002FSKILL.md)\n\n## Install\n\nInstall the **Rust alpha** from `dimcode-alpha` and launch it with `dima`. We plan to ship the Rust implementation through the existing `dimcode` npm package and its `dim` command. Today that package distributes the earlier TypeScript CLI.\n\nWith Node.js `^22.19.0 || >=23.11.0` and npm optional dependencies enabled, run this from a repository you want to explore:\n\n```sh\nnpm install -g dimcode-alpha@alpha\ndima\n```\n\nSign in with `\u002Flogin` or select a configured model with `\u002Fmodels`. Type `ls` in the chat and press Enter. In this session Dim asks to run `ls -la` in `runtime\u002Fplugins`. Choosing **Allow once** lets it list the three plugin directories.\n\n\u003Cimg src=\"docs\u002Fdesign\u002Fassets\u002Fcli-ls.gif\" alt=\"A user sends ls in Dim chat, approves one directory listing, and gets goal, plugin-authoring and workflow.\" width=\"760\">\n\nFor a read-only investigation, start `dima --permission read-only` in the [retry example workspace](xtask\u002Fscenario-eval\u002Ftimeline-branches\u002Fsibling-relay\u002Fworkspace) and ask:\n\n> Read src\u002Fretry.py to see what happens when every attempt fails. Open a branch to read tests\u002Ftest_retry.py. Does the existing test cover that case?\n\nUse `\u002Flines` to follow either investigation. To inspect the events that connect them, see [Timeline export](docs\u002Fdesign\u002Fappserver\u002Ftimeline-export.md).\n\n**Safety.** Read-only mode allows workspace reads and refuses agent file writes and shell commands. Process isolation is configured separately. Plugins, hooks and MCP servers can execute code when enabled. Project-supplied entries start disabled until you enable them locally. [Permission controls](docs\u002Fdesign\u002Fcli-commands.md#permission-controls) · [Plugin and command trust](docs\u002Fadr\u002F003-approval-scope.md)\n\n## How Dim adapts\n\n- **Grow across languages.** A Python plugin can provide a service that a TypeScript or Rust part calls by name. The service contract stays the same when its implementation changes. [How Dim uses rutis](docs\u002Fdesign\u002Frutis-usage.md) · [TypeScript authoring guide](docs\u002Ftypescript-plugin-authoring.md)\n- **Let events drive behavior.** Each branch commits facts to its Timeline in sequence. Subscribed parts act on those facts and record the outcome, so a later part can pick up where the first left off. On restart, a part can recover its state without repeating a past action. [Timeline](docs\u002Farchitecture\u002Frust-agent\u002Ftime-bus.md) · [Event flows](docs\u002Farchitecture\u002Frust-agent\u002Fevent-driven-flows.md)\n- **Discover what the environment means.** A plugin can introduce an action, describe when to use it, and register a guide entry for the signals it sends. Each branch adopts its own tool declarations. An input guide explains the eight channels of model-facing text, including how to distinguish an operator’s instruction from a reading or a tool result. A plugin can also record an event for another part to consume without putting it in the model’s context. [Tool declarations](docs\u002Farchitecture\u002Frust-agent\u002Fplugins\u002FToolRegistry.md) · [Model-facing text](docs\u002Fdesign\u002Fmodel-prompts.md) · [Event contract](docs\u002Fdesign\u002Fplugin-contract.md#51-timeline-facts)\n- **Follow two leads as one agent.** A child branch inherits the parent’s history through a specific event. From there each line builds and compacts its own model context. Parent and child share a workspace and can exchange findings while they work. [Branch design](docs\u002Fdesign\u002Ftimeline-branches.md)\n\n## Clients, tools and model protocols\n\nThe Rust harness can be embedded as a library. The App Server hosts it with persistence and workspace tools, and exposes sessions to clients. The terminal CLI is one such client. [Architecture](docs\u002Farchitecture\u002FREADME.md) · [Harness foundation](docs\u002Fadr\u002F001-harness-foundation.md)\n\n| Entry point | What it connects |\n| --- | --- |\n| Native CLI and Web | The CLI keeps output in terminal scrollback. Open `\u002Fweb` for the Web workspace, `\u002Fresume` to reconnect to a saved session, or use `dima --prompt TEXT` for a single turn. [CLI contract](crates\u002Fdim-cli\u002FREADME.md) · [Web workspace](docs\u002Fdesign\u002Fweb-workspace.md) |\n| Agent Client Protocol (ACP) | ACP clients such as acpx can launch `dima acp` over stdio. The gateway connects to the local App Server and handles protocol I\u002FO, session projection and reconnection. Model selection and managed login depend on the daemon’s capabilities. [ACP implementation](docs\u002Fdesign\u002Facp-gateway-implementation.md) · [Client acceptance, including Lody](docs\u002Fdesign\u002Facp-gateway-acceptance.md) |\n| Model Context Protocol (MCP) | MCP servers supply tools alongside native tools. Servers supplied by an ACP client are scoped to its session and their configuration is discarded afterwards. Older daemons without this capability ignore the list. The gateway supports one workspace root. [Session-scoped MCP](docs\u002Fdesign\u002Fplugins\u002FTemporaryMcp.md) · [MCP OAuth](docs\u002Fdesign\u002Fappserver\u002Fmcp-oauth.md) |\n| Model providers | Aimux connects the harness to OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini GenerateContent and compatible chat endpoints. The optional Dim account plugin supplies managed login. [Model host](crates\u002Fdim-agent-aimux\u002FREADME.md) · [Dim account plugin](crates\u002Fdim-oauth\u002FREADME.md) |\n\nAn ACP client can also start a source-built binary with an explicit home and model configuration:\n\n```sh\n.\u002Ftarget\u002Fdebug\u002Fdimcode acp \\\n  --home \u002Fabsolute\u002Fpath\u002Fto\u002Fisolated-home \\\n  --model-config \u002Fabsolute\u002Fpath\u002Fto\u002Fmodel.json\n```\n\n## API-key setup\n\nFor Bash, from a source checkout:\n\n```sh\nmkdir -p .dev\ncp crates\u002Fdim-agent-aimux\u002Fexamples\u002Fopenai.json .dev\u002Fmodel.json\nexport OPENAI_API_KEY=your-key\n```\n\nIn `.dev\u002Fmodel.json`, set the provider endpoint and credential environment-variable name. Set both `defaultModel.modelId` and the corresponding model entry’s `id` to a model your account can use. Start the installed alpha with that configuration:\n\n```sh\ndima --model-config \"$PWD\u002F.dev\u002Fmodel.json\" --permission read-only\n```\n\nThe alpha keeps its state in `~\u002F.dimcode-alpha` and can coexist with the earlier CLI. Non-alpha Rust builds use `~\u002F.dimcode` by default. Sessions and account files are not automatically migrated. API-key providers work independently of the account plugin. [Alpha package and platform details](npm\u002FREADME.alpha.md) · [App Server](crates\u002Fdim-app-server\u002FREADME.md)\n\n## Daily development\n\nInstall Rust through rustup. Cargo selects the version pinned in `rust-toolchain.toml`. The native API-key build needs no Node or pnpm. Run the following from the repository root. [Build prerequisites](docs\u002Farchitecture\u002Fbuild.md)\n\n```sh\n.\u002Fdev --model-config \"$PWD\u002F.dev\u002Fmodel.json\"\n```\n\nTo use the same configuration on later runs, copy `.env.example` to the ignored `.env.dev` and set `DIMCODE_MODEL_CONFIG` to the absolute JSON path. Leave `DIMCODE_PROVIDER` and `DIMCODE_MODEL` unset to use its default, or set both to select a catalog entry. The launcher rebuilds the native executable, restarts the development daemon and retains sessions under `~\u002F.dimcode-dev`. Use `DIMCODE_HOME` or `--home` for another isolated home and `--cwd` for another workspace. [Development contract](docs\u002Farchitecture\u002Fdevelopment.md)\n\n```sh\n.\u002Fdev --prompt \"Explain this project\"  # run one turn, then detach\n.\u002Fdev --resume SESSION_ID             # reconnect to the saved session\n.\u002Fdev restart                         # rebuild and restart\n.\u002Fdev stop                            # stop without building\n.\u002Fdev web                             # serve the Web workspace until Ctrl+C\n.\u002Fdev check                           # run formatting and compilation checks\n```\n\nTo build without the launcher:\n\n```sh\ncargo build --locked -p dimcode\n.\u002Ftarget\u002Fdebug\u002Fdimcode --home \u002Fabsolute\u002Fpath\u002Fto\u002Fisolated-home \\\n  --model-config \"$PWD\u002F.dev\u002Fmodel.json\"\n```\n\nThe CLI also accepts redirected stdin for a single turn. Ctrl+C during a turn requests a stop and waits for it to settle. At idle, Ctrl+C or EOF detaches. Empty approval answers deny the action, and a noninteractive run that needs approval exits with a nonzero status. `dimcode --help` and `--version` work without starting a daemon.\n\n### Workspace\n\n| Code | Responsibility |\n| --- | --- |\n| [Runtime](crates\u002Fdim-agent-runtime), [types](crates\u002Fdim-agent-types), [capabilities](crates\u002Fdim-agent-capabilities) | Agent and session lifecycles, Timelines, event contracts, input, model execution, permissions and branches |\n| [App Server](crates\u002Fdim-app-server), [client](crates\u002Fdim-client), [ACP gateway](crates\u002Fdim-acp) | Session hosting, persistence, RPC transport, product events, questions and protocol adapters |\n| [dimcode](crates\u002Fdimcode), [native CLI](crates\u002Fdim-cli), [npm](npm\u002F) | One executable for the CLI and its `app-server` subcommand, plus platform packaging and command aliases |\n| [Model host](crates\u002Fdim-agent-aimux), [Dim account](crates\u002Fdim-oauth) | Model protocols and account-enabled builds. Account OAuth client IDs are supplied at build time |\n| [Tests](tests\u002F), [xtask](xtask\u002F) | Extension and integration flows, architecture boundary checks, generated graphs and measurements |\n\n### Verify\n\n```sh\ncargo fmt --all -- --check\ncargo clippy --workspace --all-targets --locked -- -D warnings\ncargo test --workspace --locked\ncargo run --locked -p xtask -- check\nnode --test scripts\u002F*.test.mjs\n```\n\nPublic source verification uses local HTTP fixtures for model flows. For standalone binaries, `node scripts\u002Fbuild-all.mjs` builds the release targets or accepts a single target such as `--target darwin-arm64`. The resulting `dist\u002Fdimcode-\u003Cplatform>` executable includes the App Server. Web assets can be installed separately or compiled in with the `embedded-web` Cargo feature. Cross-compiling the script’s Linux and Windows targets requires Zig, `cargo-zigbuild` and the corresponding Rust target. GitHub-hosted runners build the draft GitHub Releases. [Build environment](docs\u002Farchitecture\u002Fbuild.md) · [Release packaging and cross-compilation](docs\u002Frelease\u002FREADME.md) · [Release procedure](.agents\u002Fskills\u002Fdim-release\u002FSKILL.md) · [Documentation index](docs\u002FINDEX.md)\n\n## Third-party components and licenses\n\nDim’s original source is licensed under [MIT](LICENSE). The distribution retains upstream licenses and copyright notices. [Distribution notices](NOTICE)\n\n| Component | Use and attribution |\n| --- | --- |\n| rutis | Plugin loading, named services and cross-language bindings. [Dim’s rutis integration](docs\u002Fdesign\u002Frutis-usage.md) |\n| Aimux | Vendored model protocol implementations, distributed under MIT. [Pinned source](vendor\u002Faimux\u002FSOURCE.md) · [Local patches](vendor\u002Faimux\u002FPATCHES.md) · [License](vendor\u002Faimux\u002FLICENSE) |\n| grok-build and Ratatui | The native terminal uses components from xAI’s grok-build, including its Ratatui-derived inline terminal. The distribution carries the Apache-2.0 license and upstream attributions under `licenses\u002Fgrok-build\u002F`. [Source and revision](vendor\u002Fgrok-build\u002FSOURCE.md) · [Notices](vendor\u002Fgrok-build\u002FNOTICE) |\n| Rust, Web and plugin dependencies | Native archives include `licenses\u002FRUST-THIRD-PARTY-NOTICES.txt` and `licenses\u002Faimux\u002F`. The Web workspace ships `THIRD-PARTY-NOTICES.txt`, including the SIL Open Font License for Geist and Geist Mono. Bundled TypeScript plugins retain their npm license files. [Full inventory](NOTICE) |\n","Dim 是一个面向通用智能体的事件驱动型运行范式，核心基于可扩展的时间线（Timeline）和完全插件化的运行时。它支持用 Rust、TypeScript 或 Python 编写的插件动态加载与热重载，使智能体能在运行中自主编写、修改并调用新工具；时间线机制显式建模感知-决策-动作的因果链，支持事件回溯与分支调试。适用于需要强可控性、可审计性与环境自适应能力的本地化智能体场景，如代码工作区自主探索、自动化工程任务编排与安全受限的私有环境智能协作。",2,"2026-11-24 04:33:23","CREATED_QUERY"]