This release is a pre-release and may not be stable for production use.
Simplicio Code (simplicio-code)
Simplicio Code é o agente de programação da assinatura Simplicio. Ele une uma interface terminal/ACP em Rust ao Simplicio Runtime: toda leitura de arquivo do projeto feita pelo agente passa pelo contrato MCP do Runtime, com sandbox, controle de contexto e economia de tokens.
Installing the released binary · Building from source · Documentation · Repository layout · Development · Contributing · License
Este é um fork privado de produto. O remoto upstream preserva a origem do
Simplicio Code; integrações próprias vivem neste repositório.
A small SOURCE_REV file at the root records the full monorepo commit SHA
for the version of the code present in this tree.
Estado do produto
Versão atual: 0.3.0-beta.3.
- leitura de arquivos obrigatoriamente via
simplicio_file_read; - handshake MCP valida que o processo é o Simplicio Runtime verdadeiro;
- falha fechada: sem Runtime, o agente não lê diretamente do disco;
- TUI, headless, workspace e ACP compartilham o mesmo backend de leitura;
- ao abrir uma pasta, o Runtime inicia o mapa geral em segundo plano;
- o modelo aparece como Simplicio-1 e usa
tencent/hy3:freevia OpenRouter; - o tema padrão Simplicio Brasil usa verde e amarelo;
- escrita/exclusão usam o Runtime;
apply_patchenvia o plano completo pelo contrato atômicosimplicio_edit, sem fallback local em sessões produtivas.
Para desenvolvimento local, forneça a credencial apenas pelo ambiente:
export OPENROUTER_API_KEY="..."
A chave nunca deve ser gravada no repositório nem distribuída no binário. A sincronização de login e assinatura Simplicio será adicionada numa atualização posterior ao beta, quando o cliente passará a consumir o gateway autenticado.
Veja docs/ARCHITECTURE.md para as fronteiras do produto.
Instalando o binário
A partir da 0.3.0-beta.1, releases assinadas (prerelease no GitHub) passam
a ser publicadas por .github/workflows/release.yml,
com checksum, SBOM e manifest assinado — veja
RELEASE_NOTES_0.3.0-beta.3.md para o que
já funciona e o que ainda falta (chave de assinatura de produção, build
Windows, rollout gradual). Instale com:
curl -fsSL https://raw.githubusercontent.com/wesleysimplicio/simplicio-code/main/install.sh | bash
irm https://raw.githubusercontent.com/wesleysimplicio/simplicio-code/main/install.ps1 | iex
Ambos os scripts baixam apenas releases publicadas por este repositório
(não a infraestrutura x.ai herdada em crates/codegen/xai-grok-pager/scripts/)
e recusam a instalação se o checksum não bater.
simplicio-code --version
Building from source
Requirements:
-
Rust — the toolchain is pinned by
rust-toolchain.toml;rustupinstalls it automatically on first build. -
DotSlash — required so hermetic tools under
bin/(notablybin/protoc) can download and run. Install it and ensuredotslashis on yourPATHbefore building:cargo install dotslash # or: prebuilt packages — https://dotslash-cli.com/docs/installation/ /usr/bin/env dotslash --help # sanity check
-
protoc — proto codegen resolves
bin/protocvia DotSlash, or falls back to aprotoconPATH/$PROTOC. -
ripgrep (
rg) — release builds ofxai-grok-toolsandxai-grok-shellbundle a staticrgbinary for the in-app search/shell tools. Resolution order: (1) an explicit override env var always wins if set —GROK_TOOLS_BUNDLE_RG_PATHforxai-grok-tools,GROK_SHELL_BUNDLE_RG_PATHforxai-grok-shell— pointing at a localrgbinary to bundle; (2) anrgalready onPATHis detected automatically and bundled, no network access needed; (3) otherwise the build script downloads a pinnedrgrelease from GitHub Releases, which requires outbound network access and fails on egress-restricted hosts/proxies. On such hosts, either installripgrepso it's onPATHbefore building, or set the override env var. -
macOS and Linux are supported build hosts; Windows builds are best-effort and not currently tested from this tree.
cargo run -p xai-grok-pager-bin --bin simplicio-code
cargo build -p xai-grok-pager-bin --bin simplicio-code --release
cargo check -p xai-grok-pager-bin # fast validation
O artefato é target/release/simplicio-code. O fluxo de autenticação Simplicio
e o gateway de inferência serão conectados antes da primeira distribuição.
O launcher local tools/simplicio_code_launcher.sh procura primeiro os artefatos
do checkout e, quando não há target/, usa a instalação por usuário em
~/.local/lib/simplicio-code/simplicio-code. Para selecionar outro binário,
defina SIMPLICIO_CODE_BIN explicitamente.
Documentation
Simplicio-specific docs (start here for this fork):
- docs/QUICKSTART.md — install and first run, PT + EN
- docs/ARCHITECTURE.md — client, Runtime, and gateway boundaries
- docs/audits/issue-139-report.md — reproducible issue specification audit and closure decisions; its hash-guarded rewrite bundle provides owner-review drafts without mutating or closing issues
- docs/TROUBLESHOOTING.md — login, Runtime, mapa, rede, updater
- docs/privacy/telemetry.md — what telemetry exists, opt-out,
privacy diagnose - docs/privacy/network-destinations.md — every network destination the client can contact, the telemetry-scoped allowlist, and the network-capture test
- docs/migration/legacy-login-migration.md — design for the future login/entitlement migration (pending #3/#4)
Run python3 scripts/check_doc_links.py to validate every doc link and
referenced cargo -p <crate> command below and under docs/.
Full online documentation for the underlying CLI is available at docs.x.ai/build/overview.
The user guide ships with the pager crate:
crates/codegen/xai-grok-pager/docs/user-guide/
— getting started, keyboard shortcuts, slash commands, configuration, theming,
MCP servers, skills, plugins, hooks, headless mode, sandboxing, and more.
Repository layout
| Path | Contents |
|---|---|
crates/codegen/xai-grok-pager-bin |
Composition-root package; builds the xai-grok-pager binary |
crates/codegen/xai-grok-pager |
The TUI: scrollback, prompt, modals, rendering |
crates/codegen/xai-grok-shell |
Agent runtime + leader/stdio/headless entry points |
crates/codegen/xai-grok-tools |
Tool implementations (terminal, file edit, search, ...) |
crates/codegen/xai-grok-workspace |
Host filesystem, VCS, execution, checkpoints |
crates/codegen/... |
The rest of the CLI crate closure (config, MCP, markdown, sandbox, ...) |
crates/common/, crates/build/, prod/mc/ |
Small shared leaf crates pulled in by the closure |
third_party/ |
Vendored upstream source (Mermaid diagram stack) — see below |
[!IMPORTANT] The root
Cargo.toml(workspace members, dependency versions, lints, profiles) is generated — treat it as read-only. Prefer editing per-crateCargo.tomlfiles.
Development
cargo check -p <crate> # always target specific crates; full-workspace builds are slow
cargo test -p xai-grok-config # per-crate tests
cargo clippy -p <crate> # lint config: clippy.toml at the repo root
cargo fmt --all # rustfmt.toml at the repo root
Contributing
[!NOTE] External contributions are not accepted. See
CONTRIBUTING.md.
License
First-party code in this repository is licensed under the Apache License,
Version 2.0 — see LICENSE.
Third-party and vendored code remains under its original licenses. See:
THIRD-PARTY-NOTICES— crates.io / git dependencies, bundled UI themes, and in-tree source ports (including openai/codex and sst/opencode tool implementations)crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md— crate-local notice for the codex and opencode ports (license texts + Apache §4(b) change notice)third_party/NOTICE— vendored Mermaid-stack index
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simplicio_code-0.3.0b5.tar.gz.
File metadata
- Download URL: simplicio_code-0.3.0b5.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43cf044ccbd15128601394506c0daa8ef02da6b6011133a05ec371beba8e04b4
|
|
| MD5 |
c7ba44777d24c30690ef3895aaca9f1a
|
|
| BLAKE2b-256 |
b37b85917ad79fb02c6b6c495f04abea5a13cdc19284d72f6b173e97f2bfc5dc
|
File details
Details for the file simplicio_code-0.3.0b5-py3-none-any.whl.
File metadata
- Download URL: simplicio_code-0.3.0b5-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cae4c58e9ddc7432a64308c380c6a68ef6b30a0b6d325c08b9af29d8dafdba6
|
|
| MD5 |
5c4c512b18cef7abf4f1889a76725aea
|
|
| BLAKE2b-256 |
365870b599345f841915fbf65c0311503be9fd0ff1e4b18dd4495ffbc756b55d
|