frontieragent 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- frontieragent-0.1.0/LICENSE +21 -0
- frontieragent-0.1.0/PKG-INFO +146 -0
- frontieragent-0.1.0/README.md +115 -0
- frontieragent-0.1.0/frontieragent/__init__.py +55 -0
- frontieragent-0.1.0/frontieragent/__main__.py +9 -0
- frontieragent-0.1.0/frontieragent/cli.py +1347 -0
- frontieragent-0.1.0/frontieragent/config.py +494 -0
- frontieragent-0.1.0/frontieragent/core/__init__.py +7 -0
- frontieragent-0.1.0/frontieragent/core/agent.py +290 -0
- frontieragent-0.1.0/frontieragent/core/loop.py +289 -0
- frontieragent-0.1.0/frontieragent/core/planner.py +78 -0
- frontieragent-0.1.0/frontieragent/memory.py +368 -0
- frontieragent-0.1.0/frontieragent/models/__init__.py +19 -0
- frontieragent-0.1.0/frontieragent/models/anthropic.py +178 -0
- frontieragent-0.1.0/frontieragent/models/base.py +122 -0
- frontieragent-0.1.0/frontieragent/models/gemini.py +175 -0
- frontieragent-0.1.0/frontieragent/models/ollama.py +118 -0
- frontieragent-0.1.0/frontieragent/models/openai_compat.py +208 -0
- frontieragent-0.1.0/frontieragent/models/router.py +237 -0
- frontieragent-0.1.0/frontieragent/tools/__init__.py +7 -0
- frontieragent-0.1.0/frontieragent/tools/registry.py +484 -0
- frontieragent-0.1.0/frontieragent/tools/skills_bridge.py +320 -0
- frontieragent-0.1.0/frontieragent/tools/workspace.py +161 -0
- frontieragent-0.1.0/frontieragent/types.py +307 -0
- frontieragent-0.1.0/frontieragent/ui/__init__.py +21 -0
- frontieragent-0.1.0/frontieragent/ui/coalescer.py +263 -0
- frontieragent-0.1.0/frontieragent/ui/cockpit.py +953 -0
- frontieragent-0.1.0/frontieragent/ui/logo.py +119 -0
- frontieragent-0.1.0/frontieragent/ui/markdown_plus.py +498 -0
- frontieragent-0.1.0/frontieragent/ui/prompt_bar.py +1248 -0
- frontieragent-0.1.0/frontieragent.egg-info/PKG-INFO +146 -0
- frontieragent-0.1.0/frontieragent.egg-info/SOURCES.txt +38 -0
- frontieragent-0.1.0/frontieragent.egg-info/dependency_links.txt +1 -0
- frontieragent-0.1.0/frontieragent.egg-info/entry_points.txt +3 -0
- frontieragent-0.1.0/frontieragent.egg-info/requires.txt +5 -0
- frontieragent-0.1.0/frontieragent.egg-info/top_level.txt +1 -0
- frontieragent-0.1.0/pyproject.toml +59 -0
- frontieragent-0.1.0/setup.cfg +4 -0
- frontieragent-0.1.0/setup.py +7 -0
- frontieragent-0.1.0/tests/test_frontieragent.py +1578 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FrontierAgent Core Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: frontieragent
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Sovereign, hallucination-verified, multi-model autonomous coding & research AI agent built on the Frontier stack.
|
|
5
|
+
Author-email: Vikas Patel <VikasPatel22@users.noreply.github.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/VikasPatel22/frontier-agent
|
|
8
|
+
Project-URL: Repository, https://github.com/VikasPatel22/frontier-agent
|
|
9
|
+
Project-URL: Issues, https://github.com/VikasPatel22/frontier-agent/issues
|
|
10
|
+
Keywords: ai-agent,autonomous-agent,coding-agent,cli-agent,terminal-ui,groundanchor,loopcircuit,frontierharness,searchharnes,tuiharness
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: frontierharness>=0.1.2
|
|
26
|
+
Requires-Dist: loopcircuit>=0.1.0
|
|
27
|
+
Requires-Dist: groundanchor>=0.1.0
|
|
28
|
+
Requires-Dist: searchharnes>=0.1.0
|
|
29
|
+
Requires-Dist: tuiharness>=0.1.0
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# FrontierAgent
|
|
33
|
+
|
|
34
|
+
> Sovereign, hallucination-verified, multi-model autonomous coding & research AI agent built on the complete Frontier stack (`frontierharness`, `loopcircuit`, `groundanchor`, `searchharnes`, `tuiharness`, `agent-skills`).
|
|
35
|
+
|
|
36
|
+
[](https://python.org)
|
|
37
|
+
[](LICENSE)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Architecture
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
45
|
+
│ FRONTIERAGENT │
|
|
46
|
+
│ The Sovereign Autonomous Agent Runtime │
|
|
47
|
+
└──────────────────────────────────────┬───────────────────────────────────────┘
|
|
48
|
+
│
|
|
49
|
+
┌────────────────────────────────┼───────────────────────────────┐
|
|
50
|
+
▼ ▼ ▼
|
|
51
|
+
┌───────────────┐ ┌──────────────────┐ ┌─────────────────┐
|
|
52
|
+
│ UI COCKPIT │ │ COGNITIVE ENGINE │ │ EXECUTION STACK │
|
|
53
|
+
├───────────────┤ ├──────────────────┤ ├─────────────────┤
|
|
54
|
+
│ • tuiharness │ │ • Multi-Model │ │ • frontierharness│
|
|
55
|
+
│ Shimmer + │ │ Router (Gemini │ │ AST diffs & │
|
|
56
|
+
│ Braille HUD │ │ Claude, OpenAI │ │ Checkpoints │
|
|
57
|
+
│ • Shift+Tab │ │ Local Ollama) │ │ • searchharnes │
|
|
58
|
+
│ Mode Cycler │ │ • loopcircuit │ │ Free Search & │
|
|
59
|
+
│ • Ctrl+V │ │ Anti-Thrash │ │ 0.37ms Scrape │
|
|
60
|
+
│ Image Paste │ │ • groundanchor │ │ • agent-skills │
|
|
61
|
+
│ • Live Queue │ │ Fact Verifier │ │ 7 SKILL.md │
|
|
62
|
+
│ & /btw │ │ • L1/L2 Memory │ │ Modules │
|
|
63
|
+
└───────────────┘ └──────────────────┘ └─────────────────┘
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Highlights
|
|
69
|
+
|
|
70
|
+
- **Antigravity-Grade Terminal UI (`tuiharness`)**: Workspace trust gate, TrueColor half-block pixel logo, synchronized Braille spinner + 24-bit TrueColor sweeping shimmer waves, live `attempt X/9` retry countdowns, compact `[Pasted text #1 +K lines]` paste chips, native mouse-wheel scroll, zero empty-Enter blink, live message queuing & steering (`Up` to edit queued turns), `/btw`, `Shift+Tab` mode cycling (`safe` / `auto` / `plan` / `yolo`), `Ctrl+V` / `Alt+V` image & media paste, and `ctrl+o` expand/collapse.
|
|
71
|
+
- **Zero-Subscription Live Web Intelligence (`searchharnes`)**: DuckDuckGo + SearXNG + Wikipedia search cascade and in-memory HTML-to-Markdown scraping with zero paid API keys.
|
|
72
|
+
- **Sub-10ms Hallucination Verification (`groundanchor`)**: Every read file & web snippet feeds into a deterministic GroundAnchor audit verifying numbers, entities, and claims before outputting answers.
|
|
73
|
+
- **Autonomous Safety & Loop Governance (`frontierharness` + `loopcircuit`)**: Workspace path-traversal sandboxing, optional `DockerSandbox`, pre-mutation snapshots with instant `/undo` & `/rewind`, automatic 3-tier context compaction, and microsecond loop cycle detection (`on_trip="intervene"`).
|
|
74
|
+
- **Modular `~/.frontier/skills/` Engine**: Recursive auto-discovery of `SKILL.md` modules, per-prompt relevance matching, on-demand `list_skills` / `use_skill` / `run_skill_script` tools, and `/skills [pin|unpin|show|install]`.
|
|
75
|
+
- **Multi-Provider & Offline Sovereign Gateway**: Pure-stdlib HTTP adapters for Google Gemini, Anthropic Claude, OpenAI, OpenRouter, DeepSeek, Groq, NVIDIA NIM, Local Ollama, and custom endpoints with strict custom error isolation and automatic retry.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Quickstart
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
git clone https://github.com/VikasPatel22/frontier-agent.git
|
|
83
|
+
cd frontier-agent
|
|
84
|
+
pip install -e .
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
All provider configs, sessions, and modular skills are saved cleanly under `~/.frontier/` (`~/.frontier/skills/`).
|
|
88
|
+
|
|
89
|
+
### Launch Interactive Terminal Cockpit
|
|
90
|
+
|
|
91
|
+
### Configure Providers, API Keys, Custom Endpoints & Models
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# Interactive wizard (choose provider, enter API key / custom URL, pick live model)
|
|
95
|
+
frontier config
|
|
96
|
+
|
|
97
|
+
# Set provider + API key cleanly via CLI
|
|
98
|
+
frontier config --provider gemini --key YOUR_API_KEY
|
|
99
|
+
|
|
100
|
+
# Configure ANY custom OpenAI-compatible endpoint (vLLM, LM Studio, Together, Mistral, Proxy)
|
|
101
|
+
frontier config --provider custom --base-url http://localhost:8000/v1 --model qwen2.5-coder
|
|
102
|
+
|
|
103
|
+
# List ALL models available live on configured or custom endpoint
|
|
104
|
+
frontier models
|
|
105
|
+
frontier models --provider custom --base-url http://localhost:8000/v1 --filter coder
|
|
106
|
+
|
|
107
|
+
# View sanitized config summary (keys redacted)
|
|
108
|
+
frontier config --show
|
|
109
|
+
|
|
110
|
+
# Launch interactive terminal agent in current workspace
|
|
111
|
+
frontier
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### One-Shot Automation & Research Commands
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Autonomous coding task with JSON trace
|
|
118
|
+
frontier run "Add unit tests for parser.py and run pytest" --mode auto --trace trace.json
|
|
119
|
+
|
|
120
|
+
# Free live web search
|
|
121
|
+
frontier ask "FastAPI lifespan context manager"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Interactive Shortcuts & Slash Commands
|
|
125
|
+
|
|
126
|
+
| Key / Command | Action |
|
|
127
|
+
| :--- | :--- |
|
|
128
|
+
| `Shift + Tab` | Cycle approval mode live: `safe` -> `auto` -> `plan` -> `yolo` |
|
|
129
|
+
| `/` | Interactive slash command autocomplete menu |
|
|
130
|
+
| `@` | Workspace file autocomplete & image attachment |
|
|
131
|
+
| `Ctrl + V` / `Alt + V` | Paste clipboard screenshot (`Win+Shift+S`), Explorer media files, or multi-line text (`[Pasted text #1 +N lines]`) |
|
|
132
|
+
| `/attach <path>` | Stage images, audio, video, PDFs, or text files (or pass `--attach`) |
|
|
133
|
+
| `ctrl + o` | Expand / collapse thought traces, tool outputs & attachments |
|
|
134
|
+
| `ESC × 2` | Press `Esc` twice on empty prompt to exit cleanly (`ESC` mid-turn cancels run) |
|
|
135
|
+
| `/btw <question>` | Ask quick side question even while agent turn is running |
|
|
136
|
+
| `/skills` | Browse, pin, preview, or install modular `SKILL.md` skills into `~/.frontier/skills/` |
|
|
137
|
+
| `/resume` / `/rewind` | Restore saved sessions or roll back conversation + file edits to any recent prompt |
|
|
138
|
+
| `/provider`, `/key`, `/endpoint` | Guided setup for Gemini/OpenAI/Anthropic/OpenRouter/Ollama or custom URLs |
|
|
139
|
+
| `/models`, `/model` | Fetch & display live endpoint models and hot-switch active model |
|
|
140
|
+
| `/run-command`, `/undo`, `/compact`, `/stats` | Direct workspace shell execution (`!<cmd>`), rollback, compaction & telemetry |
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## License
|
|
145
|
+
|
|
146
|
+
MIT License
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# FrontierAgent
|
|
2
|
+
|
|
3
|
+
> Sovereign, hallucination-verified, multi-model autonomous coding & research AI agent built on the complete Frontier stack (`frontierharness`, `loopcircuit`, `groundanchor`, `searchharnes`, `tuiharness`, `agent-skills`).
|
|
4
|
+
|
|
5
|
+
[](https://python.org)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Architecture
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
14
|
+
│ FRONTIERAGENT │
|
|
15
|
+
│ The Sovereign Autonomous Agent Runtime │
|
|
16
|
+
└──────────────────────────────────────┬───────────────────────────────────────┘
|
|
17
|
+
│
|
|
18
|
+
┌────────────────────────────────┼───────────────────────────────┐
|
|
19
|
+
▼ ▼ ▼
|
|
20
|
+
┌───────────────┐ ┌──────────────────┐ ┌─────────────────┐
|
|
21
|
+
│ UI COCKPIT │ │ COGNITIVE ENGINE │ │ EXECUTION STACK │
|
|
22
|
+
├───────────────┤ ├──────────────────┤ ├─────────────────┤
|
|
23
|
+
│ • tuiharness │ │ • Multi-Model │ │ • frontierharness│
|
|
24
|
+
│ Shimmer + │ │ Router (Gemini │ │ AST diffs & │
|
|
25
|
+
│ Braille HUD │ │ Claude, OpenAI │ │ Checkpoints │
|
|
26
|
+
│ • Shift+Tab │ │ Local Ollama) │ │ • searchharnes │
|
|
27
|
+
│ Mode Cycler │ │ • loopcircuit │ │ Free Search & │
|
|
28
|
+
│ • Ctrl+V │ │ Anti-Thrash │ │ 0.37ms Scrape │
|
|
29
|
+
│ Image Paste │ │ • groundanchor │ │ • agent-skills │
|
|
30
|
+
│ • Live Queue │ │ Fact Verifier │ │ 7 SKILL.md │
|
|
31
|
+
│ & /btw │ │ • L1/L2 Memory │ │ Modules │
|
|
32
|
+
└───────────────┘ └──────────────────┘ └─────────────────┘
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Highlights
|
|
38
|
+
|
|
39
|
+
- **Antigravity-Grade Terminal UI (`tuiharness`)**: Workspace trust gate, TrueColor half-block pixel logo, synchronized Braille spinner + 24-bit TrueColor sweeping shimmer waves, live `attempt X/9` retry countdowns, compact `[Pasted text #1 +K lines]` paste chips, native mouse-wheel scroll, zero empty-Enter blink, live message queuing & steering (`Up` to edit queued turns), `/btw`, `Shift+Tab` mode cycling (`safe` / `auto` / `plan` / `yolo`), `Ctrl+V` / `Alt+V` image & media paste, and `ctrl+o` expand/collapse.
|
|
40
|
+
- **Zero-Subscription Live Web Intelligence (`searchharnes`)**: DuckDuckGo + SearXNG + Wikipedia search cascade and in-memory HTML-to-Markdown scraping with zero paid API keys.
|
|
41
|
+
- **Sub-10ms Hallucination Verification (`groundanchor`)**: Every read file & web snippet feeds into a deterministic GroundAnchor audit verifying numbers, entities, and claims before outputting answers.
|
|
42
|
+
- **Autonomous Safety & Loop Governance (`frontierharness` + `loopcircuit`)**: Workspace path-traversal sandboxing, optional `DockerSandbox`, pre-mutation snapshots with instant `/undo` & `/rewind`, automatic 3-tier context compaction, and microsecond loop cycle detection (`on_trip="intervene"`).
|
|
43
|
+
- **Modular `~/.frontier/skills/` Engine**: Recursive auto-discovery of `SKILL.md` modules, per-prompt relevance matching, on-demand `list_skills` / `use_skill` / `run_skill_script` tools, and `/skills [pin|unpin|show|install]`.
|
|
44
|
+
- **Multi-Provider & Offline Sovereign Gateway**: Pure-stdlib HTTP adapters for Google Gemini, Anthropic Claude, OpenAI, OpenRouter, DeepSeek, Groq, NVIDIA NIM, Local Ollama, and custom endpoints with strict custom error isolation and automatic retry.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Quickstart
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
git clone https://github.com/VikasPatel22/frontier-agent.git
|
|
52
|
+
cd frontier-agent
|
|
53
|
+
pip install -e .
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
All provider configs, sessions, and modular skills are saved cleanly under `~/.frontier/` (`~/.frontier/skills/`).
|
|
57
|
+
|
|
58
|
+
### Launch Interactive Terminal Cockpit
|
|
59
|
+
|
|
60
|
+
### Configure Providers, API Keys, Custom Endpoints & Models
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Interactive wizard (choose provider, enter API key / custom URL, pick live model)
|
|
64
|
+
frontier config
|
|
65
|
+
|
|
66
|
+
# Set provider + API key cleanly via CLI
|
|
67
|
+
frontier config --provider gemini --key YOUR_API_KEY
|
|
68
|
+
|
|
69
|
+
# Configure ANY custom OpenAI-compatible endpoint (vLLM, LM Studio, Together, Mistral, Proxy)
|
|
70
|
+
frontier config --provider custom --base-url http://localhost:8000/v1 --model qwen2.5-coder
|
|
71
|
+
|
|
72
|
+
# List ALL models available live on configured or custom endpoint
|
|
73
|
+
frontier models
|
|
74
|
+
frontier models --provider custom --base-url http://localhost:8000/v1 --filter coder
|
|
75
|
+
|
|
76
|
+
# View sanitized config summary (keys redacted)
|
|
77
|
+
frontier config --show
|
|
78
|
+
|
|
79
|
+
# Launch interactive terminal agent in current workspace
|
|
80
|
+
frontier
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### One-Shot Automation & Research Commands
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Autonomous coding task with JSON trace
|
|
87
|
+
frontier run "Add unit tests for parser.py and run pytest" --mode auto --trace trace.json
|
|
88
|
+
|
|
89
|
+
# Free live web search
|
|
90
|
+
frontier ask "FastAPI lifespan context manager"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Interactive Shortcuts & Slash Commands
|
|
94
|
+
|
|
95
|
+
| Key / Command | Action |
|
|
96
|
+
| :--- | :--- |
|
|
97
|
+
| `Shift + Tab` | Cycle approval mode live: `safe` -> `auto` -> `plan` -> `yolo` |
|
|
98
|
+
| `/` | Interactive slash command autocomplete menu |
|
|
99
|
+
| `@` | Workspace file autocomplete & image attachment |
|
|
100
|
+
| `Ctrl + V` / `Alt + V` | Paste clipboard screenshot (`Win+Shift+S`), Explorer media files, or multi-line text (`[Pasted text #1 +N lines]`) |
|
|
101
|
+
| `/attach <path>` | Stage images, audio, video, PDFs, or text files (or pass `--attach`) |
|
|
102
|
+
| `ctrl + o` | Expand / collapse thought traces, tool outputs & attachments |
|
|
103
|
+
| `ESC × 2` | Press `Esc` twice on empty prompt to exit cleanly (`ESC` mid-turn cancels run) |
|
|
104
|
+
| `/btw <question>` | Ask quick side question even while agent turn is running |
|
|
105
|
+
| `/skills` | Browse, pin, preview, or install modular `SKILL.md` skills into `~/.frontier/skills/` |
|
|
106
|
+
| `/resume` / `/rewind` | Restore saved sessions or roll back conversation + file edits to any recent prompt |
|
|
107
|
+
| `/provider`, `/key`, `/endpoint` | Guided setup for Gemini/OpenAI/Anthropic/OpenRouter/Ollama or custom URLs |
|
|
108
|
+
| `/models`, `/model` | Fetch & display live endpoint models and hot-switch active model |
|
|
109
|
+
| `/run-command`, `/undo`, `/compact`, `/stats` | Direct workspace shell execution (`!<cmd>`), rollback, compaction & telemetry |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
MIT License
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""FrontierAgent: Sovereign, Hallucination-Verified Autonomous Coding & Research AI Agent."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .types import (
|
|
6
|
+
AgentActionRecord,
|
|
7
|
+
AgentConfig,
|
|
8
|
+
Attachment,
|
|
9
|
+
AutonomyMode,
|
|
10
|
+
EffortLevel,
|
|
11
|
+
GroundingAuditSummary,
|
|
12
|
+
LLMMessage,
|
|
13
|
+
ModelResponse,
|
|
14
|
+
PlanNode,
|
|
15
|
+
ToolCallRequest,
|
|
16
|
+
TurnResult,
|
|
17
|
+
format_attachments_summary,
|
|
18
|
+
)
|
|
19
|
+
from .config import ConfigManager, discover_project_context, initialize_frontier_md
|
|
20
|
+
from .memory import AgentMemory
|
|
21
|
+
from .core.agent import FrontierAgent
|
|
22
|
+
from .core.loop import CognitiveLoop
|
|
23
|
+
from .core.planner import TaskDAGPlanner
|
|
24
|
+
from .models.router import CognitiveModelRouter
|
|
25
|
+
from .tools.registry import UnifiedToolRegistry
|
|
26
|
+
from .ui.cockpit import AgentCockpit
|
|
27
|
+
|
|
28
|
+
__version__ = "0.1.0"
|
|
29
|
+
__author__ = "FrontierAgent Core Team"
|
|
30
|
+
__license__ = "MIT"
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"FrontierAgent",
|
|
34
|
+
"CognitiveLoop",
|
|
35
|
+
"TaskDAGPlanner",
|
|
36
|
+
"CognitiveModelRouter",
|
|
37
|
+
"UnifiedToolRegistry",
|
|
38
|
+
"AgentMemory",
|
|
39
|
+
"AgentCockpit",
|
|
40
|
+
"ConfigManager",
|
|
41
|
+
"discover_project_context",
|
|
42
|
+
"initialize_frontier_md",
|
|
43
|
+
"AgentConfig",
|
|
44
|
+
"AgentActionRecord",
|
|
45
|
+
"Attachment",
|
|
46
|
+
"AutonomyMode",
|
|
47
|
+
"EffortLevel",
|
|
48
|
+
"GroundingAuditSummary",
|
|
49
|
+
"LLMMessage",
|
|
50
|
+
"ModelResponse",
|
|
51
|
+
"PlanNode",
|
|
52
|
+
"ToolCallRequest",
|
|
53
|
+
"TurnResult",
|
|
54
|
+
"format_attachments_summary",
|
|
55
|
+
]
|