Generated Computers
Locals: an Apple Silicon engine that runs local LLMs up to 3x faster. A product of Generated Computers.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Frontal Code is an internal agentic engineering system
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A high-performance Rust rewrite of the Frontal Code CLI agent harness. Built for speed, safety, and native tool execution.
For a task-oriented guide with copy/paste examples, see ./USAGE.md.
# Install the CLI with Homebrew
brew install --HEAD ./homebrew/Formula/code.rb
# Inspect available commands (npm and Homebrew installs use `frontal-code`; a Cargo build produces `code`)
frontal-code --help
# Run the interactive REPL
frontal-code --model claude-opus-5
# One-shot prompt
frontal-code prompt "explain this codebase"
# JSON output for automation
frontal-code --output-format json prompt "summarize cli/src/main.rs"
If you are developing from source instead of installing the CLI, use cargo build --workspace and run cargo run -p cli -- ....
Set your API credentials:
# Default provider: Frontal's OpenAI-compatible gateway. FRONTAL_API_KEY is sent as a bearer token.
export FRONTAL_API_KEY="frontal-..."
export FRONTAL_BASE_URL="https://ai.frontal.dev/v1"
# Anthropic, or an Anthropic-compatible proxy: select the provider explicitly.
export FRONTAL_API_KEY="sk-ant-..."
export FRONTAL_BASE_URL="https://your-proxy.example.com"
code --provider anthropic prompt "..."
Without --provider anthropic, a sk-ant- key is sent to the gateway as a bearer token.
Or sign in with OAuth instead of a key, after adding an OAuth client to your user settings (see CONFIGURATION.md):
code login --provider openai
code auth status
Frontal Code now uses a centralized configuration system located at config/project.json. This file contains:
The system looks for project.json in this order:
$FRONTAL_CODE_CONFIG_HOME/project.json - Custom config directory$FRONTAL_CODE_HOME/project.json - Frontal Code home directory~/.frontal-code/project.json - User's home directoryconfig/project.json - Project-local configuration{
"project": {
"name": "Frontal Code",
"version": "0.1.0",
"description": "AI-powered development environment and CLI tool"
},
"runtime": {
"default_provider": "frontal",
"max_concurrent_requests": 10,
"request_timeout_seconds": 30,
"permission_mode": "permissive",
"log_level": "info"
},
"features": {
"enable_telemetry": true,
"enable_plugins": true,
"enable_caching": true,
"enable_metrics": true
}
}
use frontal-code_core::config::ProjectConfig;
// Load configuration with fallback to defaults
let config = ProjectConfig::load_or_default();
// Access configuration values
println!("Default provider: {}", config.runtime.default_provider);
println!("Telemetry enabled: {}", config.features.enable_telemetry);
For more details, see the Configuration guide.
The workspace now includes a deterministic Anthropic-compatible mock service and a clean-environment CLI harness for end-to-end parity checks.
# Run the scripted clean-environment harness
./scripts/run_mock_parity_harness.sh
# Or start the mock service manually for ad hoc CLI runs
cargo run -p code-mock-gateway -- --bind 127.0.0.1:0
Harness coverage:
streaming_textread_file_roundtripgrep_chunk_assemblywrite_file_allowedwrite_file_deniedmulti_tool_turn_roundtripbash_stdout_roundtripbash_permission_prompt_approvedbash_permission_prompt_deniedplugin_tool_roundtripPrimary artifacts:
tests/mock-gateway/ — reusable mock Anthropic-compatible servicecli/tests/mock_parity_harness.rs — clean-env CLI harnessscripts/run_mock_parity_harness.sh — reproducible wrapperscripts/run_mock_parity_diff.py — scenario checklist + PARITY mapping runnermock_parity_scenarios.json — scenario-to-PARITY manifest| Feature | Status |
|---|---|
| Anthropic / OpenAI-compatible provider flows + streaming (OpenAI, xAI, Frontal, Bedrock, Azure) | |
| Environment-variable auth (Anthropic/OpenAI/xAI/Frontal/Bedrock/Azure/Ollama) | |
| Interactive REPL (rustyline) | |
| Tool system (bash, read, write, edit, grep, glob) | |
| Web tools (search, fetch) | |
| Sub-agent / agent surfaces | |
| Todo tracking | |
| Notebook editing | |
| AGENTS.md / project memory | |
Config file hierarchy (.frontal-code/settings.json + merged config sections) | |
| Permission system | |
| MCP server lifecycle + inspection | |
| Session persistence + resume | |
| Cost / usage / stats surfaces | |
| Git integration | |
| Markdown terminal rendering (ANSI) | |
| Model aliases (opus/sonnet/haiku) | |
| Provider flag support (anthropic, openai, xai) | |
Direct CLI subcommands (status, sandbox, agents, mcp, skills, doctor) | |
Slash commands (including /skills, /agents, /mcp, /doctor, /plugin, /subagent) | |
Hooks (/hooks, config-backed lifecycle hooks) | |
| Plugin management surfaces | |
| Skills inventory / install surfaces | |
| Machine-readable JSON output across core CLI surfaces | |
| GitHub integration (PRs, issues, check runs) | |
| IDE integration (VS Code, Cursor, Windsurf, Antigravity) | |
| Embedding and semantic memory | |
| Event system and messaging | |
| Training and style adaptation | |
| Webhook processing | |
| Repository lifecycle management |
Short names resolve to the latest model versions:
| Alias | Resolves To |
|---|---|
opus | claude-opus-5 |
sonnet | claude-sonnet-4-6 |
haiku | claude-haiku-4-5 |
Representative current surface:
frontal-code [OPTIONS] [COMMAND]
Flags:
--model MODEL
--output-format text|json
--permission-mode MODE
--dangerously-skip-permissions
--allowedTools TOOLS
--resume [SESSION.jsonl|session-id|latest]
--version, -V
Top-level commands:
prompt <text>
help
version
status
sandbox
dump-manifests
bootstrap-plan
agents
mcp
skills
system-prompt
init
The command surface is moving quickly. For the canonical live help text, run:
cargo run -p cli -- --help
Tab completion expands slash commands, model aliases, permission modes, and recent session IDs.
The REPL now exposes a much broader surface than the original minimal shell:
/help, /status, /sandbox, /cost, /resume, /session, /version, /usage, /stats/compact, /clear, /config, /memory, /init, /diff, /commit, /pr, /issue, /export, /hooks, /files, /branch, /release-notes, /add-dir/mcp, /agents, /skills, /doctor, /tasks, /context, /desktop, /ide/review, /advisor, /insights, /security-review, /subagent, /team, /telemetry, /providers, /cron, and more/plugin (with aliases /plugins, /marketplace)Notable frontal-code-first surfaces now available directly in slash form:
/skills [list|install <path>|help]/agents [list|help]/mcp [list|show <server>|help]/doctor/plugin [list|install <path>|enable <name>|disable <name>|uninstall <id>|update <id>]/subagent [list|steer <target> <msg>|kill <id>]See ./USAGE.md for usage examples and run cargo run -p cli -- --help for the live canonical command list.
.
| Cargo.toml # Workspace root
| Cargo.lock
| crates/
| | api/ # Public API facade re-exporting provider/model APIs
| | agents/ # Agent management and coordination
| | npm/code-cli/ # Main CLI binary (`frontal-code`)
| | commands/ # Shared slash-command registry + help rendering
| | compat-harness/ # TS manifest extraction harness
| | core/ # Shared core capabilities and foundational types
| | embeddings/ # Embedding primitives for semantic memory
| | events/ # Event system and messaging infrastructure
| | github/ # GitHub API client integration
| | integrations/ # MCP interoperability and IDE integration
| | memory/ # Semantic memory and knowledge graph utilities
| | tests/mock-gateway/ # Deterministic local Anthropic-compatible mock
| | observability/ # Structured observability primitives
| | orchestrator/ # Workflow management and resource allocation
| | plugins/ # Plugin metadata, manager, install/enable/disable surfaces
| | providers/ # Provider clients and routing (Anthropic/OpenAI/xAI/Frontal/...)
| | repo/ # Repository lifecycle management
| | runtime/ # Session, config, permissions, MCP, prompts, auth/runtime loop
| | sandbox/ # Sandboxing and isolation capabilities
| | server/ # Hosted control-plane services
| | telemetry/ # Session tracing and usage telemetry types
| | tools/ # Built-in tools, skill resolution, tool search, agent runtime surfaces
| | training/ # Style-learning and adaptation system
| | webhooks/ # Webhook receiving and processing
| tools/ # Repo-level developer tooling suite (doctor, coverage, version, …) — see docs/TOOLS.md
/v1/messages mock for CLI parity tests and local harness runsConversationRuntime, config loading, session persistence, permission policy, MCP client lifecycle, system prompt assembly, usage trackingfrontal-codeclaude-opus-5danger-full-accessOriginally based on ultraworkers/claw-code, a high-performance Rust rewrite of AI agent tooling. This fork has been significantly modified and rebranded as "Frontal Code" by Frontal Labs.
A hermetic, reproducible build foundation is provided via Bzlmod (no
WORKSPACE file). MODULE.bazel is the single source of truth; all build
infrastructure lives under bazel/ and third_party/.
bazel run //:bootstrap # install pre-commit + non-fatal `bazel mod tidy`
bazel build //... # build all Bazel targets
bazel test //... # run all Bazel tests
bazel test //:lint # pre-commit run --all-files (via lint target)
See docs/bazel/ARCHITECTURE.md,
docs/bazel/GETTING-STARTED.md, and
docs/bazel/ROADMAP.md.
See repository root.
| Sandbox and isolation |
| Observability and monitoring |
| Orchestration and workflow management |