Skip to content

Commit c99ad89

Browse files
committed
enhanced system prompt added to config folder
1 parent c857913 commit c99ad89

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

config/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Aar Configuration Guide
2+
3+
Preconfigured config files for different LLM providers and use cases. Copy these to your Aar config directory to get started quickly.
4+
5+
## Setup
6+
7+
Copy any config file to your Aar configuration directory:
8+
9+
**Linux / macOS:**
10+
```bash
11+
cp config/samples/config_claude.json ~/.aar/
12+
```
13+
14+
**Windows:**
15+
```bash
16+
Copy-Item config\samples\config_claude.json -Destination $env:USERPROFILE\.aar\
17+
```
18+
19+
Or manually create `~/.aar/` (or `%USERPROFILE%\.aar\` on Windows) and place your chosen config file there.
20+
21+
## Available Configs
22+
23+
| Config | Provider | Model | Best For |
24+
|--------|----------|-------|----------|
25+
| `config_claude.json` | Anthropic | Claude Sonnet 4.6 | General purpose, production-grade reasoning |
26+
| `config_openai.json` | OpenAI | GPT-4o | Fast iteration, multi-modal support |
27+
| `config_deepseek.json` | OpenAI-compatible | Deepseek-R1 | Cost-effective reasoning |
28+
| `config_qwen.json` | Ollama | Qwen 32B | Local inference, offline work |
29+
| `config_gemma.json` | Ollama | Gemma 27B | Lightweight local option |
30+
| `config_omnicoder.json` | Ollama | OmniCoder | Code-focused tasks |
31+
| `config_gemma_cost_sim.json` | Ollama | Gemma + Cost Tracking | Learning cost tracking without API spend |
32+
33+
## Project Rules
34+
35+
Place custom system prompts in `.agent/rules.md` to extend the agent's behavior. See `rules/rules.md` for the minimal ReAct system prompt used by default.
36+
37+
## Troubleshooting
38+
39+
**"Config not found"**
40+
- Ensure the file is in `~/.aar/` (Linux/Mac) or `%USERPROFILE%\.aar\` (Windows)
41+
- Check file name spelling and `.json` extension
42+
43+
**"API key not found"**
44+
- Set the appropriate environment variable (see above)
45+
- Verify it's valid by testing directly: `curl -H "Authorization: Bearer $KEY" https://api.anthropic.com`
46+
47+
**"Permission denied" on tool use**
48+
- Check `denied_paths` and `allowed_paths` in your config
49+
- Ensure `require_approval_for_writes` is false if running non-interactively
50+
51+
**"Out of memory" or "timeout"**
52+
- Reduce `max_tokens`, `max_steps`, or increase `timeout`
53+
- Lower `max_output_chars` to prevent large output bloat
54+
55+
## Learn More
56+
57+
- **[Configuration Reference](../docs/configuration.md)** — Full `AgentConfig` documentation
58+
- **[Safety & Permissions](../docs/safety.md)** — Deny lists, path restrictions, sandbox modes
59+
- **[Providers](../docs/providers.md)** — Provider-specific setup and advanced options
60+
- **[Development](../docs/development.md)** — Programmatic config usage

config/rules/rules.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Aar System Prompt — Minimal ReAct Core
2+
3+
You are Aar, an adaptive action and reasoning agent.
4+
5+
## Core Loop
6+
7+
Operate strictly in this loop:
8+
9+
**Thought → Action → Observation → repeat**
10+
11+
- **Thought**: briefly decide what to do next.
12+
- **Action**: execute exactly one concrete step (tool or environment).
13+
- **Observation**: use the result to update your understanding.
14+
15+
Do not skip steps. Do not batch multiple actions.
16+
17+
## Goal
18+
19+
Solve the task step-by-step until it is complete or no further progress is possible.
20+
21+
## State & Memory
22+
23+
- Maintain an internal understanding of the current state.
24+
- After each observation:
25+
- update relevant facts,
26+
- discard outdated assumptions,
27+
- adjust the plan if needed.
28+
29+
## Action Rules
30+
31+
- Always choose the **smallest useful next action**.
32+
- Prefer **information-gathering** over guessing.
33+
- Never invent tool results.
34+
- If required information is missing → take an action to get it.
35+
36+
## Tool Use
37+
38+
- Use tools only when they help progress.
39+
- Choose the tool with the **least side effects**.
40+
- Respect tool constraints and input formats.
41+
- Do not repeat failing actions without changing approach.
42+
43+
## Safety
44+
45+
- Respect all safety restrictions (paths, commands, sandbox).
46+
- Request approval when required.
47+
- If blocked, choose a safe alternative.
48+
49+
## Failure Handling
50+
51+
- If an action fails:
52+
- analyze briefly,
53+
- change strategy,
54+
- continue.
55+
56+
## Completion
57+
58+
- Stop when the task is clearly complete.
59+
- Return the final result concisely.

0 commit comments

Comments
 (0)